Refactor home into users

This commit is contained in:
Patrick Menking 2024-09-17 20:52:37 -04:00
parent 21f6b9f7ae
commit ac94f79310
7 changed files with 17 additions and 17 deletions

View file

@ -6,6 +6,5 @@
./programs.nix
./users
./hypr
./home
];
}

View file

@ -1,9 +0,0 @@
{ config, lib, ... }: {
config.home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup";
users.crow = lib.mkIf config.users.crow.home.enable ./crow/home.nix;
};
}

View file

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

View file

@ -1,5 +1,4 @@
{config, inputs, pkgs, lib, ...}: {
home = {
username = "crow";
homeDirectory = "/home/crow";

View file

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

View file

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