populated configuration
This commit is contained in:
39
machines/base.nix
Normal file
39
machines/base.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ pkgs, lib, config, systemSettings, userSettings, ... }:
|
||||
{
|
||||
imports = [
|
||||
../system/hardware/audio.nix
|
||||
../system/hardware/time.nix
|
||||
../system/services/network-manager.nix
|
||||
../system/utils.nix
|
||||
];
|
||||
|
||||
time.timeZone = systemSettings.timezone;
|
||||
|
||||
networking.hostName = systemSettings.hostname;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
i18n.defaultLocale = systemSettings.locale;
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = systemSettings.locale;
|
||||
LC_IDENTIFICATION = systemSettings.locale;
|
||||
LC_MEASUREMENT = systemSettings.locale;
|
||||
LC_MONETARY = systemSettings.locale;
|
||||
LC_NAME = systemSettings.locale;
|
||||
LC_NUMERIC = systemSettings.locale;
|
||||
LC_PAPER = systemSettings.locale;
|
||||
LC_TELEPHONE = systemSettings.locale;
|
||||
LC_TIME = systemSettings.locale;
|
||||
};
|
||||
|
||||
users.users.${userSettings.username} = {
|
||||
isNormalUser = true;
|
||||
description = userSettings.name;
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [];
|
||||
uid = 1000;
|
||||
};
|
||||
|
||||
envirnment.shells = with pkgs; [ bash ];
|
||||
users.defaultUserShell = pkgs.bash;
|
||||
}
|
||||
Reference in New Issue
Block a user