mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
Refactor home into users
This commit is contained in:
parent
21f6b9f7ae
commit
ac94f79310
7 changed files with 17 additions and 17 deletions
|
|
@ -6,6 +6,5 @@
|
|||
./programs.nix
|
||||
./users
|
||||
./hypr
|
||||
./home
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
6
modules/users/crow/default.nix
Normal file
6
modules/users/crow/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{lib, config, ...}: {
|
||||
imports = [
|
||||
./user.nix
|
||||
./home.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
{config, inputs, pkgs, lib, ...}: {
|
||||
|
||||
home = {
|
||||
username = "crow";
|
||||
homeDirectory = "/home/crow";
|
||||
7
modules/users/crow/user.nix
Normal file
7
modules/users/crow/user.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ lib, config, ...}: {
|
||||
users.users.crow = lib.mkIf config.users.crow.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [ "wheel" "networkmanager" "audio" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue