{ 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 = '' Names the primary user account. Host configuration uses this name for the Home Manager user. ''; }; }; 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"; }; }