summaryrefslogtreecommitdiff
path: root/modules/core/users.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/users.nix')
-rw-r--r--modules/core/users.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/core/users.nix b/modules/core/users.nix
new file mode 100644
index 0000000..b1a30ed
--- /dev/null
+++ b/modules/core/users.nix
@@ -0,0 +1,44 @@
+{ lib, pkgs, inputs, ... }:
+{
+ programs.zsh.enable = true;
+
+ security.sudo.execWheelOnly = lib.mkDefault true;
+ security.sudo.wheelNeedsPassword = lib.mkDefault false;
+
+ users.users.jras = {
+ createHome = true;
+ 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";
+ };
+
+ home-manager.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ home-manager.extraSpecialArgs = { inherit inputs; };
+ home-manager.users.jras = {
+ imports = [ ../home-manager/core ];
+
+ home.username = "jras";
+ home.homeDirectory = "/home/jras";
+
+ programs.git = {
+ userName = lib.mkDefault "Jasper Ras";
+ userEmail = lib.mkDefault "jaspert.ras@gmail.com";
+ };
+ };
+}