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]; imports = [./syncthing.nix];
config = lib.mkIf config.ar.users.aly.enable { config = lib.mkIf config.ar.users.aly.enable {
home-manager.users.aly = home-manager.users.aly = self.homeManagerModules.aly;
lib.attrsets.optionalAttrs
config.ar.users.aly.manageHome
{imports = [self.homeManagerModules.aly];};
users.users.aly = { users.users.aly = {
description = "Aly Raffauf"; description = "Aly Raffauf";

View file

@ -7,10 +7,7 @@
... ...
}: { }: {
config = lib.mkIf config.ar.users.dustin.enable { config = lib.mkIf config.ar.users.dustin.enable {
home-manager.users.dustin = home-manager.users.dustin = self.homeManagerModules.dustin;
lib.attrsets.optionalAttrs
config.ar.users.dustin.manageHome
{imports = [self.homeManagerModules.dustin];};
users.users.dustin = { users.users.dustin = {
description = "Dustin Raffauf"; description = "Dustin Raffauf";

View file

@ -7,10 +7,7 @@
... ...
}: { }: {
config = lib.mkIf config.ar.users.morgan.enable { config = lib.mkIf config.ar.users.morgan.enable {
home-manager.users.morgan = home-manager.users.morgan = self.homeManagerModules.morgan;
lib.attrsets.optionalAttrs
config.ar.users.morgan.manageHome
{imports = [self.homeManagerModules.morgan];};
users.users.morgan = { users.users.morgan = {
description = "Morgan Tamayo"; description = "Morgan Tamayo";

View file

@ -8,12 +8,6 @@
mkUser = user: { mkUser = user: {
enable = lib.mkEnableOption "${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 { password = lib.mkOption {
description = "Hashed password for ${user}."; description = "Hashed password for ${user}.";
type = lib.types.str; type = lib.types.str;