diff options
| -rw-r--r-- | hosts/enode/default.nix | 1 | ||||
| -rw-r--r-- | hosts/enode/impermenance.nix | 12 | ||||
| -rw-r--r-- | share/home/niri.nix | 9 |
3 files changed, 13 insertions, 9 deletions
diff --git a/hosts/enode/default.nix b/hosts/enode/default.nix index 27e141f..1a68703 100644 --- a/hosts/enode/default.nix +++ b/hosts/enode/default.nix @@ -18,6 +18,7 @@ in ./headscale.nix ./caddy.nix ./disko.nix + ./impermenance.nix ]; # disable local builds of anything, machine doesn't have enough RAM diff --git a/hosts/enode/impermenance.nix b/hosts/enode/impermenance.nix index 627ecd2..ba55264 100644 --- a/hosts/enode/impermenance.nix +++ b/hosts/enode/impermenance.nix @@ -1,11 +1,10 @@ { config, ... }: let - ssh-host-keys = map (k: k.path) (builtins.attrValues config.services.openssh.hostKeys); + ssh-host-keys = map (k: k.path) config.services.openssh.hostKeys; in { - # Use /var/lib/persist as the persistence root, matching Disko's mountpoint environment.persistence."/var/lib/persist" = { - hideMounts = true; + # hideMounts = true; directories = [ "/var/lib/nixos" "/var/lib/systemd/coredump" @@ -14,13 +13,8 @@ in "/var/lib/backups" "/var/lib/headscale" + "/var/lib/tailscale" "/var/lib/caddy" # for certs - { - directory = "/var/lib/secrets"; - user = "root"; - group = "root"; - mode = "u=rwx,g=,o="; - } ]; files = [ "/var/lib/systemd/random-seed" diff --git a/share/home/niri.nix b/share/home/niri.nix index 9b27a33..9c909a0 100644 --- a/share/home/niri.nix +++ b/share/home/niri.nix @@ -42,6 +42,7 @@ in pkgs.bemoji pkgs.grim pkgs.slurp + pkgs.brightnessctl ]; home.sessionVariables = { BEMOJI_PICKER_CMD = "${pkgs.tofi}/bin/tofi"; @@ -219,6 +220,14 @@ in allow-when-locked = true; action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }; + "XF86MonBrightnessUp" = { + allow-when-locked = true; + action = spawn "brightnessctl" "set" "10%+"; + }; + "XF86MonBrightnessDown" = { + allow-when-locked = true; + action = spawn "brightnessctl" "set" "10%-"; + }; # general window management "Mod+Shift+C".action = close-window; |
