diff options
Diffstat (limited to 'system-profiles')
-rw-r--r-- | system-profiles/build-server/default.nix | 14 | ||||
-rw-r--r-- | system-profiles/openssh/default.nix | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/system-profiles/build-server/default.nix b/system-profiles/build-server/default.nix index 20b23a31..ee99e02f 100644 --- a/system-profiles/build-server/default.nix +++ b/system-profiles/build-server/default.nix | |||
@@ -1,8 +1,12 @@ | |||
1 | { customUtils, flake, config, lib, ... }: | 1 | { customUtils, flake, config, lib, pkgs, ... }: |
2 | 2 | ||
3 | { | 3 | with lib; |
4 | |||
5 | let | ||
6 | disallowedSystems = ["armv5tel-linux" config.nixpkgs.system] ++ optional (systems.elaborate config.nixpkgs.system).isx86_64 "i686-linux"; | ||
7 | in { | ||
4 | imports = with flake.nixosModules.systemProfiles; [ openssh ]; | 8 | imports = with flake.nixosModules.systemProfiles; [ openssh ]; |
5 | 9 | ||
6 | config = { | 10 | config = { |
7 | users.groups.nix-ssh-builder = {}; | 11 | users.groups.nix-ssh-builder = {}; |
8 | users.users.nix-ssh-builder = { | 12 | users.users.nix-ssh-builder = { |
@@ -30,8 +34,10 @@ | |||
30 | 34 | ||
31 | users.users.nix-ssh-builder.openssh.authorizedKeys.keys = | 35 | users.users.nix-ssh-builder.openssh.authorizedKeys.keys = |
32 | let | 36 | let |
33 | importKeys = dir: lib.attrValues (customUtils.mapFilterAttrs (_: v: v != null) (n: v: lib.nameValuePair n (if v == "directory" then importKeys' dir n else null)) (builtins.readDir dir)); | 37 | importKeys = dir: attrValues (customUtils.mapFilterAttrs (_: v: v != null) (n: v: nameValuePair n (if v == "directory" then importKeys' dir n else null)) (builtins.readDir dir)); |
34 | importKeys' = dir: host: builtins.readFile (dir + "/${host}/public"); | 38 | importKeys' = dir: host: builtins.readFile (dir + "/${host}/public"); |
35 | in importKeys ./clients; | 39 | in importKeys ./clients; |
40 | |||
41 | boot.binfmt.emulatedSystems = mkDefault (filter (system: (systems.elaborate system).emulatorAvailable pkgs && !(elem system disallowedSystems)) systems.flakeExposed); | ||
36 | }; | 42 | }; |
37 | } | 43 | } |
diff --git a/system-profiles/openssh/default.nix b/system-profiles/openssh/default.nix index 47908682..3d04d9b5 100644 --- a/system-profiles/openssh/default.nix +++ b/system-profiles/openssh/default.nix | |||
@@ -88,7 +88,7 @@ in { | |||
88 | }; | 88 | }; |
89 | 89 | ||
90 | environment.systemPackages = mkIf cfg.enable (with pkgs; [ | 90 | environment.systemPackages = mkIf cfg.enable (with pkgs; [ |
91 | rxvt_unicode.terminfo alacritty.terminfo | 91 | alacritty.terminfo |
92 | ]); | 92 | ]); |
93 | }; | 93 | }; |
94 | } | 94 | } |