summaryrefslogtreecommitdiff
path: root/users/seth/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/seth/default.nix')
-rw-r--r--users/seth/default.nix69
1 files changed, 33 insertions, 36 deletions
diff --git a/users/seth/default.nix b/users/seth/default.nix
index 1476323..140eac8 100644
--- a/users/seth/default.nix
+++ b/users/seth/default.nix
@@ -1,42 +1,39 @@
{
- config,
pkgs,
- home-manager,
- desktop,
- ...
-}: {
- users.users.seth = {
- extraGroups = ["wheel"];
- isNormalUser = true;
- hashedPassword = "***REMOVED***";
- shell = pkgs.fish;
+ specialArgs,
+ user,
+ system ? "x86_64-linux",
+ nixpkgsStable,
+}: let
+ common = {
+ username = "seth";
+ stateVersion = "23.05";
};
-
- programs.fish.enable = true;
-
- home-manager = {
- useGlobalPkgs = true;
- useUserPackages = true;
- users.seth = {
- imports =
- [
- ./home.nix
- ./shell
- ]
- ++ (
- if (desktop != "")
- then [./desktop]
- else []
- );
-
- home.stateVersion = config.system.stateVersion;
-
- nixpkgs.config = {
- allowUnfree = true;
- allowUnsupportedSystem = true;
+in
+ with user; {
+ hm.seth = mkHMUser {
+ inherit (common) username stateVersion;
+ inherit system;
+ channel = pkgs;
+ extraSpecialArgs = {
+ inherit nixpkgsStable;
+ standalone = true;
+ desktop = "";
};
+ };
- systemd.user.startServices = true;
+ system = mkUser {
+ inherit (common) username stateVersion;
+ inherit system;
+ extraGroups = ["wheel"];
+ extraModules = [
+ {
+ programs.fish.enable = true;
+ }
+ ];
+ extraSpecialArgs = specialArgs;
+ hashedPassword = "***REMOVED***";
+ shell = pkgs.legacyPackages.${system}.fish;
+ hm = true;
};
- };
-}
+ }