This commit is contained in:
parent
1a871e074e
commit
0b73d173f6
2 changed files with 183 additions and 146 deletions
|
@ -33,7 +33,14 @@
|
|||
restic
|
||||
];
|
||||
|
||||
config = {
|
||||
options = {
|
||||
family-account = {
|
||||
enable = lib.mkEnableOption "Enable a user account for family members";
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
{
|
||||
lyte.shell.enable = lib.mkDefault true;
|
||||
nixpkgs = {
|
||||
config.allowUnfree = lib.mkDefault true;
|
||||
|
@ -180,5 +187,29 @@
|
|||
default
|
||||
];
|
||||
};
|
||||
}
|
||||
// lib.mkIf config.family-account.enable {
|
||||
|
||||
users.groups.flanfam = { };
|
||||
users.users.flanfam = {
|
||||
isNormalUser = true;
|
||||
home = "/home/flanfam";
|
||||
description = "Flanagan Family";
|
||||
createHome = true;
|
||||
openssh.authorizedKeys.keys = [ self.outputs.pubkey ];
|
||||
group = "flanfam";
|
||||
shell = lib.mkIf config.lyte.shell.enable pkgs.fish;
|
||||
extraGroups = [
|
||||
"users"
|
||||
"video"
|
||||
];
|
||||
packages = [ ];
|
||||
};
|
||||
home-manager.users.flanfam = {
|
||||
home.stateVersion = lib.mkDefault config.system.stateVersion;
|
||||
imports = with self.outputs.homeManagerModules; [
|
||||
default
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -64,4 +64,10 @@
|
|||
lyte.shell.enable = true;
|
||||
lyte.desktop.enable = true;
|
||||
};
|
||||
|
||||
family-account.enable = true;
|
||||
home-manager.users.flanfam = {
|
||||
lyte.shell.enable = true;
|
||||
lyte.desktop.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue