Pass hostname and username to modules

This commit is contained in:
Gene Liverman 2023-12-15 23:13:25 -05:00
parent 65efd22cb3
commit 70c2dc4e2f
4 changed files with 17 additions and 18 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, pkgs, hostname, username, ... }: {
imports = [
./internationalisation.nix
];
@ -26,7 +26,10 @@
})
];
networking.hostName = "${hostname}";
nix.settings = {
allowed-users = [ "${username}" ];
experimental-features = [
"flakes"
"nix-command"
@ -46,4 +49,4 @@
time.timeZone = "America/New_York";
users.defaultUserShell = pkgs.zsh;
}
}