Refactor the whole configuration

Reviewed-on: #1
This commit is contained in:
caem 2025-02-01 14:05:15 +01:00
parent fb5d4d46f8
commit 6cb66d86d2
153 changed files with 2078 additions and 3094 deletions

View file

@ -0,0 +1,32 @@
{ config, pkgs, inputs, ... }:
{
sops.secrets.upasswd = {
neededForUsers = true;
sopsFile = inputs.secrets.paths.upasswd;
};
environment.persistence."/nix/persist" = {
users.caem = {
directories = [
"documents"
"download"
"music"
"images"
"videos"
"programming"
];
};
};
users.users.caem = {
isNormalUser = true;
shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets.upasswd.path;
extraGroups = [
"wheel"
];
};
home-manager.users.caem = import ../../home/caem;
}