diff options
Diffstat (limited to 'configuration/core/users.nix')
-rw-r--r-- | configuration/core/users.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/configuration/core/users.nix b/configuration/core/users.nix new file mode 100644 index 0000000..26703a0 --- /dev/null +++ b/configuration/core/users.nix @@ -0,0 +1,31 @@ +{ pkgs, ... }: +{ + programs.zsh.enable = true; + + security.sudo.execWheelOnly = true; + security.sudo.wheelNeedsPassword = false; + + users.mutableUsers = false; + users.users.jras = { + createHome = true; + hashedPassword = "$6$TznUKJuLwtXUaxhf$aod7gOgTXq4sTg8IPEX3HkiZgFHWCNUl0qmJUKHYQYQG8cPFjxCfmXREZHUYtQD2/estrbuCjIqoiLQKofdel."; + isNormalUser = true; + extraGroups = [ "wheel" ]; + shell = pkgs.zsh; + packages = with pkgs; [ git helix curl ]; + openssh.authorizedKeys.keyFiles = [ ../../keys/id_tarrel.pub ../../keys/id_work.pub ]; + }; + + i18n.defaultLocale = "en_US.UTF-8"; + i18n.extraLocaleSettings = { + LC_ADDRESS = "nl_NL.UTF-8"; + LC_IDENTIFICATION = "nl_NL.UTF-8"; + LC_MEASUREMENT = "nl_NL.UTF-8"; + LC_MONETARY = "nl_NL.UTF-8"; + LC_NAME = "nl_NL.UTF-8"; + LC_NUMERIC = "nl_NL.UTF-8"; + LC_PAPER = "nl_NL.UTF-8"; + LC_TELEPHONE = "nl_NL.UTF-8"; + LC_TIME = "nl_NL.UTF-8"; + }; +} |