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
|
|
@ -48,24 +48,13 @@
|
||||||
boot.tmp.useTmpfs = false;
|
boot.tmp.useTmpfs = false;
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
backupFileExtension = "backup";
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
users.toast = { config, ... }: {
|
users.toast = { config, ... }: {
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "23.05";
|
|
||||||
file = {
|
file = {
|
||||||
# This symlinks the Transmission downloads folder into my user's downloads folder for easy access
|
# This symlinks the Transmission downloads folder into my user's downloads folder for easy access
|
||||||
"Downloads/Transmission".source = config.lib.file.mkOutOfStoreSymlink "/var/lib/transmission/Downloads";
|
"Downloads/Transmission".source = config.lib.file.mkOutOfStoreSymlink "/var/lib/transmission/Downloads";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg = {
|
|
||||||
#enable = true;
|
|
||||||
userDirs = {
|
|
||||||
enable = true;
|
|
||||||
createDirectories = true;
|
|
||||||
publicShare = null; # Disable the public folder
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,21 @@
|
||||||
# Set up time zone.
|
# Set up time zone.
|
||||||
time.timeZone = "Europe/Madrid";
|
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
|
# Set up secrets
|
||||||
age = {
|
age = {
|
||||||
identityPaths = [
|
identityPaths = [
|
||||||
|
|
|
||||||
|
|
@ -25,18 +25,9 @@ in
|
||||||
{
|
{
|
||||||
# I'm only using keepass on my user, so I'm installing it with home-manager
|
# I'm only using keepass on my user, so I'm installing it with home-manager
|
||||||
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; };
|
extraSpecialArgs = { kpxcSettings = kpxcSettings; };
|
||||||
users.toast = { config, pkgs, kpxcSettings, ... }: {
|
users.toast = { config, pkgs, kpxcSettings, ... }: {
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "23.05";
|
|
||||||
packages = [ pkgs.keepassxc ];
|
packages = [ pkgs.keepassxc ];
|
||||||
# No module for KeePassXC config :(
|
# No module for KeePassXC config :(
|
||||||
file = {
|
file = {
|
||||||
|
|
@ -63,7 +54,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue