feat(OVHCloud): Added normal user config

This commit is contained in:
GaspardCulis 2024-09-26 10:17:09 +02:00
parent 7f5dcd9190
commit b8345d5e06
2 changed files with 38 additions and 0 deletions

View file

@ -59,6 +59,7 @@
modules = [ modules = [
./hosts/OVHCloud ./hosts/OVHCloud
disko.nixosModules.disko disko.nixosModules.disko
home-manager.nixosModules.home-manager
]; ];
}; };
}; };

View file

@ -1,4 +1,6 @@
{ {
inputs,
config,
pkgs, pkgs,
lib, lib,
... ...
@ -31,4 +33,39 @@
helix helix
git git
]; ];
# User config
users.groups.gaspard = {
name = "gaspard";
};
users.users.gaspard = {
isNormalUser = true;
extraGroups = [
"wheel"
];
group = "gaspard";
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
# FIX: No user config file
"gaspard" = {
home.username = "gaspard";
home.homeDirectory = "/home/gaspard";
home.stateVersion = "24.05";
programs.home-manager.enable = true;
programs.direnv.enable = true;
imports = [
../../shell
../../editor
];
};
};
};
system.stateVersion = "24.11";
} }