Require user to import their own home.nix

This commit is contained in:
Patrick Menking 2024-09-17 20:56:48 -04:00
parent 974b3e2d48
commit 6c34c8f62e
3 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,5 @@
{lib, config, ...}: {
imports = [
./user.nix
./home.nix
];
}

View file

@ -1,7 +1,9 @@
{ lib, config, ...}: {
users.users.crow = lib.mkIf config.users.crow.enable {
config.users.users.crow = lib.mkIf config.users.crow.enable {
isNormalUser = true;
initialPassword = "changeme";
extraGroups = [ "wheel" "networkmanager" "audio" ];
};
config.home-manager.users.crow = lib.mkIf config.users.crow.home.enable ./crow/home.nix;
}

View file

@ -1,5 +1,11 @@
{
{config, ...}: {
imports = [
./crow
];
config.home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup";
};
}