nixos-config/config/common.nix

19 lines
539 B
Nix

{ config, lib, pkgs, ... }:
with lib;
# Config common to all hosts, which don't belong anywhere else
{
config = let
home-generator = pkgs.callPackage ../nix-home {};
host-domain = config.fudo.hosts.${config.instance.hostname}.domain;
in {
nix.nixPath = lib.mkBefore [ "/nix/var/nix/profiles/per-user/$USER/channels" ];
home-manager.users.root = home-generator.generate-config {
username = "root";
home-dir = "/root";
user-email = "root@${config.instance.hostname}.${host-domain}";
} { };
};
}