diff --git a/flake.nix b/flake.nix index c27a4b1..9cc1ead 100644 --- a/flake.nix +++ b/flake.nix @@ -83,7 +83,7 @@ ./orexin/configuration.nix ./orexin/hardware-configuration.nix ]; - } + }; gastrin = nixos-unstable.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { diff --git a/orexin/configuration.nix b/orexin/configuration.nix index 28f0ba4..b83b9cb 100644 --- a/orexin/configuration.nix +++ b/orexin/configuration.nix @@ -24,7 +24,7 @@ interfaces.enp59s0.ipv4.addresses = [ {address = "192.168.1.77"; prefixLength = 24; - }; + } ]; }; @@ -36,15 +36,36 @@ # wget # ]; + users = { + users = { + dockremap = { + isSystemUser = true; + uid = 100000; + group = "dockremap"; + subUidRanges = [ + { + startUid = 100000; + count = 65536; + } + ]; + subGidRanges = [ + { + startGid = 100000; + count = 65536; + } + ]; + }; + }; + }; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; # programs. programs = { gnupg.agent = { -# enable = true; -# enableSSHSupport = true; -# }; + enable = true; + enableSSHSupport = true; + }; nh = { enable = true; @@ -92,4 +113,3 @@ system.stateVersion = "24.05"; # Did you read the comment? } - diff --git a/orexin/hardware-configuration.nix b/orexin/hardware-configuration.nix index 9eac5ff..46cc2e3 100644 --- a/orexin/hardware-configuration.nix +++ b/orexin/hardware-configuration.nix @@ -52,7 +52,6 @@ networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp59s0.useDHCP = lib.mkDefault true; services.btrfs.autoScrub.enable = true; - networking.useDHCP = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }