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