nixos-config/config/common.nix

16 lines
460 B
Nix

{ config, lib, pkgs, ... }:
# Config common to all hosts, which don't belong anywhere else
{
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}";
} { };
};
}