nixos-config/config/common.nix

19 lines
549 B
Nix
Raw Normal View History

2021-02-25 12:45:50 -08:00
{ config, lib, pkgs, ... }:
with lib;
2021-02-25 12:45:50 -08:00
# 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 {
nix.nixPath = lib.mkBefore [ "/nix/var/nix/profiles/per-user/$USER/channels" ];
2021-09-30 17:14:20 -07:00
# 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
}