diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-10-02 14:22:35 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-10-02 21:50:15 -0400 |
| commit | a726e22695ada34a3981040ff0175574050fc995 (patch) | |
| tree | 3f2edddfcbb8ee9c23dd295463188a17b230204c /modules/users.nix | |
| parent | a2c6dcc045a2e5bfd51f1b8f9569d1149202cb67 (diff) | |
hamano stuff
Diffstat (limited to 'modules/users.nix')
| -rw-r--r-- | modules/users.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/users.nix b/modules/users.nix new file mode 100644 index 0000000..53fce69 --- /dev/null +++ b/modules/users.nix @@ -0,0 +1,37 @@ +{ pkgs, ... }: + +let + home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"; + host = import ../host.nix; +in +{ + imports = [ "${home-manager}/nixos" ]; + + users.users.grace = { + isNormalUser = true; + description = "grace"; + extraGroups = [ + "wheel" + "networkmanager" + ]; + + shell = pkgs.fish; + }; + + programs.fish.enable = true; + + security.sudo.wheelNeedsPassword = false; + + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + backupFileExtension = "backup"; + + users.grace = { + imports = [ ../home.nix ]; + + home.username = host.user; + home.homeDirectory = host.home; + }; + }; +} |
