users: Added "gaspard" user

This commit is contained in:
GaspardCulis 2024-09-20 13:16:34 +00:00
parent 9110a59790
commit 4faf40af77
3 changed files with 46 additions and 6 deletions

View file

@ -39,11 +39,22 @@
modules = [ modules = [
./hosts/Zephyrus ./hosts/Zephyrus
disko.nixosModules.disko disko.nixosModules.disko
home-manager.nixosModules.home-manager
]; ];
}; };
}; };
homeConfigurations."culisg@im2ag" = home-manager.lib.homeManagerConfiguration { homeConfigurations = {
"gaspard" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit hy3;};
modules = [
./users/gaspard.nix
];
};
"culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = {inherit hy3;}; extraSpecialArgs = {inherit hy3;};
@ -51,6 +62,7 @@
./users/culisg.nix ./users/culisg.nix
]; ];
}; };
};
devShells.${system}.default = pkgs.mkShell { devShells.${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [

View file

@ -10,4 +10,17 @@
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Paris"; 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
];
}