This repository has been archived on 2023-07-23. You can view files and clone it, but cannot push or open issues or pull requests.
gpd-configurations/global/software-configuration.nix

116 lines
2.9 KiB
Nix
Raw Normal View History

{pkgs, ...}: {
xdg.portal = {
enable = true;
2023-06-30 15:41:28 +00:00
#wlr.enable = true;
2023-06-30 15:08:24 +00:00
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
2023-06-30 15:29:50 +00:00
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
2023-06-30 15:08:24 +00:00
];
2023-06-25 22:18:07 +00:00
};
# Enable automatic login for the user.
services = {
2023-06-27 02:44:31 +00:00
# flatpak dev.deedles.Trayscale
# sudo tailscale up --operator=$USER
# use https://hs.wetofu.me
tailscale.enable = true;
blueman.enable = true;
2023-06-26 00:38:25 +00:00
logrotate.checkConfig = false;
flatpak.enable = true;
2023-06-29 04:42:38 +00:00
ntp = {
enable = true;
servers = [
"ntp.ntsc.ac.cn" # China
];
};
2023-06-26 00:38:25 +00:00
greetd = {
enable = true;
settings = rec {
initial_session = {
user = "user";
command = "${pkgs.greetd.greetd}/bin/agreety --cmd Hyprland";
};
default_session = initial_session;
};
};
xserver = {
layout = "cn";
xkbVariant = "";
libinput = {
mouse = {
accelProfile = "flat";
};
};
};
2023-06-21 08:11:21 +00:00
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
2023-06-29 03:38:56 +00:00
hyprpaper
hyprland-protocols
hyprland-share-picker
];
programs = {
hyprland = {
enable = true;
xwayland = {
enable = true;
hidpi = true;
};
};
2023-06-25 12:38:21 +00:00
2023-06-29 00:39:38 +00:00
proxychains = {
enable = true;
quietMode = true;
proxies = {
default = {
type = "socks5";
port = 1089;
host = "127.0.0.1";
enable = true;
};
};
};
2023-06-25 12:38:21 +00:00
git.enable = true;
2023-06-26 13:20:30 +00:00
zsh.enable = true;
2023-06-27 02:44:31 +00:00
light.enable = true;
2023-06-30 15:00:38 +00:00
dconf.enable = true;
};
2023-06-28 01:30:10 +00:00
virtualisation = {
podman.enable = true;
oci-containers.backend = "podman";
oci-containers.containers = {
wsproxy = {
login.username = "senseab";
login.registry = "ghcr.io";
2023-06-28 01:49:57 +00:00
login.passwordFile = "/var/lib/secrets/podman/ghcr.io"; # should create it manually.
2023-06-28 01:30:10 +00:00
image = "ghcr.io/senseab/wsproxy:master";
autoStart = true;
environment = {
CONFIG_NO_TLS_VERIFY = "true";
CONFIG_ADDR = "wss://dev.wetofu.me/path";
WSPROXY_MODE = "client";
};
ports = [
2023-06-28 14:07:02 +00:00
"127.0.0.1:1089:1089"
2023-06-28 01:30:10 +00:00
];
};
};
};
}