map magic

This commit is contained in:
Chris Dombroski 2024-09-21 21:13:46 -04:00
parent 08da5d26be
commit 322e8cad34

View file

@ -66,19 +66,24 @@
}; };
home.users.cdombroski.passInOsConfig = true; home.users.cdombroski.passInOsConfig = true;
home.users.root.importDefault = false; home.users.root.importDefault = false;
nixos.hosts.smolboi.userHomeModules = [ nixos.hosts = builtins.listToAttrs (
"root" builtins.map
"cdombroski" (host: {
]; name = host;
nixos.hosts.zeus.userHomeModules = [ value = {
"root" userHomeModules = [
"cdombroski"
];
nixos.hosts.orangepihole.userHomeModules = [
"root" "root"
"cdombroski" "cdombroski"
]; ];
}; };
})
[
"smolboi"
"zeus"
"orangepihole"
]
);
};
flake = { flake = {
deploy = { deploy = {
sshUser = "root"; sshUser = "root";