userModules: remove manageHome option

This commit is contained in:
Aly Raffauf 2024-07-09 11:36:22 -04:00
parent 90289cad1d
commit a54098ce92
4 changed files with 3 additions and 18 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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;