2021-02-25 12:45:50 -08:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
# Config common to all hosts, which don't belong anywhere else
|
|
|
|
{
|
2021-09-07 15:39:45 -07:00
|
|
|
config = let
|
2021-09-18 22:56:56 -07:00
|
|
|
home-generator = pkgs.callPackage ../nix-home {};
|
2021-09-07 15:39:45 -07:00
|
|
|
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}";
|
|
|
|
} { };
|
2021-02-25 12:45:50 -08:00
|
|
|
};
|
2021-09-07 15:39:45 -07:00
|
|
|
}
|