nixos-config/config/common.nix

16 lines
460 B
Nix
Raw Normal View History

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
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}";
} { };
2021-02-25 12:45:50 -08:00
};
2021-09-07 15:39:45 -07:00
}