From a54098ce926f7d6efeba72f33c566b73c36bc63e Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 9 Jul 2024 11:36:22 -0400 Subject: [PATCH] userModules: remove manageHome option --- userModules/aly/default.nix | 5 +---- userModules/dustin/default.nix | 5 +---- userModules/morgan/default.nix | 5 +---- userModules/options.nix | 6 ------ 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/userModules/aly/default.nix b/userModules/aly/default.nix index f38ebb14..769053c1 100644 --- a/userModules/aly/default.nix +++ b/userModules/aly/default.nix @@ -9,10 +9,7 @@ imports = [./syncthing.nix]; config = lib.mkIf config.ar.users.aly.enable { - home-manager.users.aly = - lib.attrsets.optionalAttrs - config.ar.users.aly.manageHome - {imports = [self.homeManagerModules.aly];}; + home-manager.users.aly = self.homeManagerModules.aly; users.users.aly = { description = "Aly Raffauf"; diff --git a/userModules/dustin/default.nix b/userModules/dustin/default.nix index ffac0e0f..6bae4a33 100644 --- a/userModules/dustin/default.nix +++ b/userModules/dustin/default.nix @@ -7,10 +7,7 @@ ... }: { config = lib.mkIf config.ar.users.dustin.enable { - home-manager.users.dustin = - lib.attrsets.optionalAttrs - config.ar.users.dustin.manageHome - {imports = [self.homeManagerModules.dustin];}; + home-manager.users.dustin = self.homeManagerModules.dustin; users.users.dustin = { description = "Dustin Raffauf"; diff --git a/userModules/morgan/default.nix b/userModules/morgan/default.nix index 28c5532e..a0b9b991 100644 --- a/userModules/morgan/default.nix +++ b/userModules/morgan/default.nix @@ -7,10 +7,7 @@ ... }: { config = lib.mkIf config.ar.users.morgan.enable { - home-manager.users.morgan = - lib.attrsets.optionalAttrs - config.ar.users.morgan.manageHome - {imports = [self.homeManagerModules.morgan];}; + home-manager.users.morgan = self.homeManagerModules.morgan; users.users.morgan = { description = "Morgan Tamayo"; diff --git a/userModules/options.nix b/userModules/options.nix index bb0ac541..934c4395 100644 --- a/userModules/options.nix +++ b/userModules/options.nix @@ -8,12 +8,6 @@ mkUser = user: { enable = lib.mkEnableOption "${user}."; - manageHome = lib.mkOption { - description = "Whether to manage ${user}'s home directory."; - type = lib.types.bool; - default = true; - }; - password = lib.mkOption { description = "Hashed password for ${user}."; type = lib.types.str;