Compare commits

..

2 commits

Author SHA1 Message Date
GaspardCulis
4faf40af77 users: Added "gaspard" user 2024-09-20 13:16:34 +00:00
GaspardCulis
9110a59790 refactor: Moved user profiles to "users/" 2024-09-20 12:59:33 +00:00
4 changed files with 46 additions and 6 deletions

View file

@ -39,17 +39,29 @@
modules = [
./hosts/Zephyrus
disko.nixosModules.disko
home-manager.nixosModules.home-manager
];
};
};
homeConfigurations."culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
homeConfigurations = {
"gaspard" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit hy3;};
modules = [
./nix/profiles/culisg.nix
];
extraSpecialArgs = {inherit hy3;};
modules = [
./users/gaspard.nix
];
};
"culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit hy3;};
modules = [
./users/culisg.nix
];
};
};
devShells.${system}.default = pkgs.mkShell {

View file

@ -10,4 +10,17 @@
# Set your time zone.
time.timeZone = "Europe/Paris";
# User config
users.groups.gaspard = {
name = "gaspard";
};
users.users.gaspard = {
isNormalUser = true;
extraGroups = [
"wheel"
"video"
];
group = "gaspard";
};
}

15
users/gaspard.nix Normal file
View file

@ -0,0 +1,15 @@
{...}: {
home.username = "gaspard";
home.homeDirectory = "/home/gaspard";
home.stateVersion = "24.05";
programs.home-manager.enable = true;
programs.direnv.enable = true;
imports = [
../../shell
../../term
../../editor
../../de
];
}