Move home-manager settings to common role
This commit is contained in:
parent
8c35cda8e9
commit
6f59bd3d6d
3 changed files with 15 additions and 21 deletions
|
|
@ -49,6 +49,21 @@
|
|||
# Set up time zone.
|
||||
time.timeZone = "Europe/Madrid";
|
||||
|
||||
home-manager = {
|
||||
backupFileExtension = "hm-backup";
|
||||
useGlobalPkgs = true;
|
||||
users.toast = { config, ... }: {
|
||||
home.stateVersion = "23.05";
|
||||
xdg = {
|
||||
userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
publicShare = null; # Disable the public folder
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Set up secrets
|
||||
age = {
|
||||
identityPaths = [
|
||||
|
|
|
|||
|
|
@ -25,18 +25,9 @@ in
|
|||
{
|
||||
# I'm only using keepass on my user, so I'm installing it with home-manager
|
||||
home-manager = {
|
||||
/*
|
||||
TODO: move home-manager settings into the common role
|
||||
They are not keepass specific, so they really should
|
||||
not be here. I'm too lazy to do it now tho :P
|
||||
*/
|
||||
backupFileExtension = "backup";
|
||||
useGlobalPkgs = true;
|
||||
|
||||
extraSpecialArgs = { kpxcSettings = kpxcSettings; };
|
||||
users.toast = { config, pkgs, kpxcSettings, ... }: {
|
||||
home = {
|
||||
stateVersion = "23.05";
|
||||
packages = [ pkgs.keepassxc ];
|
||||
# No module for KeePassXC config :(
|
||||
file = {
|
||||
|
|
@ -63,7 +54,6 @@ in
|
|||
'';
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue