Add fudo-pkgs submodule
This commit is contained in:
+10
-3
@@ -2,7 +2,14 @@
|
||||
|
||||
# Config common to all hosts, which don't belong anywhere else
|
||||
{
|
||||
config = {
|
||||
home-manager.users.root = import ../home-manager/root.nix { inherit config lib pkgs; };
|
||||
config = let
|
||||
home-generator = pkgs.callPackage ../niten-home-generator.nix {};
|
||||
host-domain = config.fudo.hosts.${config.instance.hostname}.domain;
|
||||
in {
|
||||
home-manager.users.root = home-generator.generate-config {
|
||||
username = "root";
|
||||
home-dir = "/root";
|
||||
user-email = "root@${config.instance.hostname}.${host-domain}";
|
||||
} { };
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user