Fixed for deploy again
This commit is contained in:
parent
05ba61cb4e
commit
c71b07a903
@ -14,4 +14,5 @@
|
||||
profile = "desktop";
|
||||
domain = "sea.fudo.org";
|
||||
site = "seattle";
|
||||
android-dev = true;
|
||||
}
|
||||
|
@ -14,4 +14,5 @@
|
||||
profile = "desktop";
|
||||
domain = "sea.fudo.org";
|
||||
site = "seattle";
|
||||
android-dev = true;
|
||||
}
|
||||
|
@ -14,4 +14,5 @@
|
||||
profile = "desktop";
|
||||
domain = "sea.fudo.org";
|
||||
site = "seattle";
|
||||
android-dev = true;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ in {
|
||||
./config
|
||||
./packages
|
||||
"${home-manager-package}/nixos"
|
||||
] ++ pkgs.lib.optional host-config.nixos-system [
|
||||
] ++ [
|
||||
(./. + "/config/hardware/${hostname}.nix")
|
||||
(./. + "/config/host-config/${hostname}.nix")
|
||||
(./. + "/config/profile-config/${host-config.profile}.nix")
|
||||
|
@ -149,9 +149,13 @@ let
|
||||
description = "System architecture of the system.";
|
||||
default = "x86_64-linux";
|
||||
};
|
||||
|
||||
android-dev = mkEnableOption "Enable ADB on the host.";
|
||||
};
|
||||
};
|
||||
|
||||
system = import ../system.nix { inherit config lib; };
|
||||
|
||||
in {
|
||||
options.fudo.hosts = with types;
|
||||
mkOption {
|
||||
@ -246,6 +250,11 @@ in {
|
||||
user = "root";
|
||||
};
|
||||
|
||||
programs.adb.enable = host-cfg.android-dev;
|
||||
users.groups.adbusers = mkIf host-cfg.android-dev {
|
||||
members = system.local-admins;
|
||||
};
|
||||
|
||||
programs.ssh.knownHosts = let
|
||||
keyed-hosts =
|
||||
filterAttrs (host: opts: opts.ssh-pubkey != null) config.fudo.hosts;
|
||||
|
Loading…
Reference in New Issue
Block a user