nix/sini: set homeMode for git user
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jul 2024 12:23:16 +0300
1 files changed,
13 insertions(+),
13 deletions(-)
jump to
M
hosts/sini/configuration.nix
→
hosts/sini/configuration.nix
@@ -9,12 +9,12 @@
boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.initrd.luks.devices."luks-0ae4be28-55a1-4a0c-8518-c6d53540cb26".device = "/dev/disk/by-uuid/0ae4be28-55a1-4a0c-8518-c6d53540cb26"; networking.hostName = "sini"; # Define your hostname. boot.kernelParams = [ "ip=dhcp" ]; boot.initrd = let interface = "wlp3s0"; in { + luks.devices."luks-0ae4be28-55a1-4a0c-8518-c6d53540cb26".device = "/dev/disk/by-uuid/0ae4be28-55a1-4a0c-8518-c6d53540cb26"; availableKernelModules = [ "ccm" "ctr" "iwlmvm" "iwlwifi" ]; systemd = {@@ -28,19 +28,18 @@ # prevent WPA supplicant from requiring `sysinit.target`.
services."wpa_supplicant@".unitConfig.DefaultDependencies = false; users.root.shell = "/bin/systemd-tty-ask-password-agent"; - - network = { + }; + network = { + enable = true; + ssh = { enable = true; - ssh = { - enable = true; - port = 22; - authorizedKeys = [ "ssh-rsa AAAAyourpublic-key-here..." ]; - hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" ]; - }; - networks = { - matchConfig.Name = interface; - networkConfig.DHCP = "yes"; - }; + port = 22; + authorizedKeys = [ "ssh-rsa AAAAyourpublic-key-here..." ]; + hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" ]; + }; + networks = { + matchConfig.Name = interface; + networkConfig.DHCP = "yes"; }; }; };@@ -98,6 +97,7 @@ users.users.git = {
isNormalUser = true; description = "git"; extraGroups = [ "networkmanager" "wheel" ]; + homeMode = "755"; packages = with pkgs; [ ]; };