45 lines
861 B
Nix
45 lines
861 B
Nix
{
|
|
config,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}:
|
|
# The shared foundation for every host and guest.
|
|
{
|
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
|
|
|
options.user = {
|
|
name = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "alexion";
|
|
description = ''
|
|
Primary interactive user for this system.
|
|
This drives the system account and Home Manager user together.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = {
|
|
system.stateVersion = "26.05";
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
nix.settings.experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
|
|
users.users.${config.user.name} = {
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
"wheel"
|
|
"storage"
|
|
];
|
|
};
|
|
|
|
users.groups.storage.gid = 10000;
|
|
|
|
time.timeZone = "America/New_York";
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
};
|
|
}
|