From f723a9966af0a76663bdf502796eb8aa73539bea Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Mon, 11 May 2026 13:14:19 +0200 Subject: Made the ssh-keys usb have ownership from group ssh-keys and added user mun to group ssh-keys --- system/encryption.nix | 4 ++++ system/users.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/encryption.nix b/system/encryption.nix index 45de309..a3b60d4 100644 --- a/system/encryption.nix +++ b/system/encryption.nix @@ -25,4 +25,8 @@ sudo systemctl stop systemd-cryptsetup@ssh\\x2dkeys.service '') ]; + + systemd.tmpfiles.rules = [ + "d /mnt/ssh-keys 0770 root ssh-keys -" + ]; } diff --git a/system/users.nix b/system/users.nix index 3b589b8..87b8e98 100644 --- a/system/users.nix +++ b/system/users.nix @@ -1,7 +1,7 @@ {pkgs, ...}: { users.users.mun = { isNormalUser = true; - extraGroups = ["wheel" "bluetooth" "networkmanager" "kvm" "nixos"]; + extraGroups = ["wheel" "bluetooth" "networkmanager" "kvm" "nixos" "ssh-keys"]; shell = pkgs.zsh; }; } -- cgit v1.2.3