From 43de6e4c5b26a4886076dde0542aba89d5e29b31 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 4 Jul 2024 15:28:36 -0300 Subject: [PATCH 1/4] hyprland: use bitdepth 10 so I can screenshare See https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/172 --- programs/hyprland/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/hyprland/default.nix b/programs/hyprland/default.nix index d8358e9..7d8cadf 100644 --- a/programs/hyprland/default.nix +++ b/programs/hyprland/default.nix @@ -75,8 +75,8 @@ autogenerated = 0 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ - monitor = DP-3, 1920x1080@75, 2560x0, 1 - monitor = DP-2, 2560x1440@165, 0x0, 1 + monitor = DP-3, 1920x1080@75, 2560x0, 1, bitdepth, 10 + monitor = DP-2, 2560x1440@165, 0x0, 1, bitdepth, 10 # See https://wiki.hyprland.org/Configuring/Keywords/ for more From 122997fb825fafb1b169e78e27980b9af4cbbef7 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 4 Jul 2024 15:29:00 -0300 Subject: [PATCH 2/4] archisteamfarm: point password files in a more friendlier place --- services/archi.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/archi.nix b/services/archi.nix index 5f3c632..6c44fb8 100644 --- a/services/archi.nix +++ b/services/archi.nix @@ -7,7 +7,7 @@ bots.wizardlink = { enabled = true; - passwordFile = /var/lib/archisteamfarm/bots/wizardlink.password; + passwordFile = /home/wizardlink/.local/share/archisteamfarm/bots/wizardlink.password; username = "master1891891"; settings = { @@ -17,7 +17,7 @@ bots.zak = { enabled = true; - passwordFile = /var/lib/archisteamfarm/bots/zak.password; + passwordFile = /home/wizardlink/.local/share/archisteamfarm/bots/zak.password; username = "matheuszak"; }; }; From 9c5008a9657c1fa49a14730cd20b64c2299b75d3 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 4 Jul 2024 15:42:55 -0300 Subject: [PATCH 3/4] nixos: add nh and use it's gc --- nixos.nix | 14 +++++++++----- switch | 12 ------------ 2 files changed, 9 insertions(+), 17 deletions(-) delete mode 100755 switch diff --git a/nixos.nix b/nixos.nix index 9c18a15..c853b2f 100644 --- a/nixos.nix +++ b/nixos.nix @@ -24,11 +24,15 @@ "flakes" ]; - # Enable automatic garbage collection. - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 1w"; + # Enable nh, a bundle of CLI utilities for NixOS + programs.nh = { + enable = true; + + # Enable automatic garbage collection. + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; + + flake = "/home/wizardlink/.system"; }; # Optimize storage diff --git a/switch b/switch deleted file mode 100755 index dc20a6f..0000000 --- a/switch +++ /dev/null @@ -1,12 +0,0 @@ -#!/etc/profiles/per-user/wizardlink/bin/fish - -function build - sudo nixos-rebuild switch --flake ~/.system\#nixos $argv[1] -end - -if test "--fast" = "$argv[1]" - build --fast -else - build -end - From 3cca209ed81ebe4972beeead973824ee998a8afc Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 4 Jul 2024 15:43:30 -0300 Subject: [PATCH 4/4] flake: update --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index f584a7a..e0325df 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1719827439, - "narHash": "sha256-tneHOIv1lEavZ0vQ+rgz67LPNCgOZVByYki3OkSshFU=", + "lastModified": 1720045378, + "narHash": "sha256-lmE7B+QXw7lWdBu5GQlUABSpzPk3YBb9VbV+IYK5djk=", "owner": "nix-community", "repo": "home-manager", - "rev": "59ce796b2563e19821361abbe2067c3bb4143a7d", + "rev": "0a30138c694ab3b048ac300794c2eb599dc40266", "type": "github" }, "original": {