diff --git a/desktop/configuration.nix b/desktop/configuration.nix index aa5f649..171dc0b 100644 --- a/desktop/configuration.nix +++ b/desktop/configuration.nix @@ -1,4 +1,10 @@ -{ config, pkgs, ... }: { +{ + config, + lib, + pkgs, + ... +}: +{ boot.kernelParams = [ "hibernate.compressor=lz4" ]; environment.systemPackages = with pkgs; [ android-tools @@ -11,7 +17,7 @@ ]; hardware = { bluetooth.enable = true; - graphics.enable32Bit = true; + steam-hardware.enable = lib.mkForce false; }; imports = [ ../mods/host.nix @@ -34,8 +40,15 @@ }; wg-quick.interfaces.awg0.configFile = config.sops.templates.awg2-conf.path; }; + nixpkgs.config.allowUnfreePredicate = + pkg: + builtins.elem (lib.getName pkg) [ + "steam" + "steam-unwrapped" + ]; programs = { niri.enable = true; + steam.enable = true; virt-manager.enable = true; }; services = { diff --git a/home/mods/noctalia.toml b/home/mods/noctalia.toml index 6ba490d..51a1ef5 100644 --- a/home/mods/noctalia.toml +++ b/home/mods/noctalia.toml @@ -22,15 +22,15 @@ type = "power_profile" [[control_center.shortcuts]] type = "weather" [idle] -behavior_order = [ "lock", "screen-off" ] - [idle.behavior.lock] - action = "lock" - enabled = true - timeout = 300.0 +behavior_order = [ "screen-off", "lock" ] [idle.behavior.screen-off] action = "screen_off" enabled = true timeout = 300.0 + [idle.behavior.lock] + action = "lock" + enabled = true + timeout = 450.0 [location] address = "Chita" [notification] diff --git a/mods/vps-init.nix b/mods/vps-init.nix index 91aa2cb..3cc70e6 100644 --- a/mods/vps-init.nix +++ b/mods/vps-init.nix @@ -79,7 +79,7 @@ done export DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:amnezia/ppa - apt-get install -y gnupg2 amneziawg amneziawg-tools iptables-persistent python3-launchpadlib linux-headers-$(uname -r) software-properties-common + apt-get install -y gnupg2 amneziawg amneziawg-tools iptables-persistent python3-launchpadlib linux-headers-generic software-properties-common mv ~/awg0.conf /etc/amnezia/amneziawg systemctl enable awg-quick@awg0 apt-get autoremove --purge -y diff --git a/server/mods/web.nix b/server/mods/web.nix index 9616bec..e46b755 100644 --- a/server/mods/web.nix +++ b/server/mods/web.nix @@ -53,9 +53,9 @@ database.createLocally = true; enable = true; hostName = "nextcloud-local"; + maxUploadSize = "4G"; poolSettings = phpSettings; settings = { - htaccess.RewriteBase = "/nextcloud"; overwritewebroot = "/nextcloud"; trusted_domains = [ "bogaledev.ru" @@ -64,6 +64,7 @@ }; }; nginx = { + clientMaxBodySize = "4G"; enable = true; recommendedBrotliSettings = true; recommendedGzipSettings = true;