spun out user config and home config.
This commit is contained in:
29
modules/users/lily/home.nix
Normal file
29
modules/users/lily/home.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{inputs, self, ...}:{
|
||||
flake.homeConfigurations."lily" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
|
||||
modules = [ self.homeModules.lily ];
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
flake.homeModules.lily = { pkgs, ... }:{
|
||||
home = {
|
||||
username = "lily";
|
||||
homeDirectory = "/home/lily";
|
||||
stateVersion = "25.05";
|
||||
packages = [ ];
|
||||
file = { };
|
||||
sessionVariables = { };
|
||||
};
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
bash.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
name = "Lily Anderson";
|
||||
email = "lilylanderson@zoho.com";
|
||||
};
|
||||
lfs.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
modules/users/lily/lily.nix
Normal file
11
modules/users/lily/lily.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
flake.nixosModules.lily = { pkgs, ... }: {
|
||||
users.users.lily = {
|
||||
isNormalUser = true;
|
||||
description = "Lily Luna Anderson";
|
||||
extraGroups = [ "wheel" "lily" ];
|
||||
packages = with pkgs; [ ];
|
||||
};
|
||||
users.groups.lily = { };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user