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,19 +39,31 @@
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; inherit pkgs;
extraSpecialArgs = {inherit hy3;}; extraSpecialArgs = {inherit hy3;};
modules = [ modules = [
./nix/profiles/culisg.nix ./users/gaspard.nix
]; ];
}; };
"culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit hy3;};
modules = [
./users/culisg.nix
];
};
};
devShells.${system}.default = pkgs.mkShell { devShells.${system}.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
git git

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
];
}