Update hardcoded xdg paths
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hmConfig = config.home-manager.users.${username};
|
||||
in
|
||||
{
|
||||
virtualisation.docker.rootless = {
|
||||
enable = true;
|
||||
@@ -26,7 +29,9 @@
|
||||
};
|
||||
};
|
||||
|
||||
environment.persistence."/persist".users.${username}.directories = [ ".local/share/docker" ];
|
||||
environment.persistence."/persist".users.${username}.directories = [
|
||||
"${hmConfig.xdg.relativeDataHome}/docker"
|
||||
];
|
||||
|
||||
home-manager.users.${username}.home.packages = with pkgs; [ docker-compose ];
|
||||
}
|
||||
|
@@ -9,7 +9,8 @@
|
||||
}:
|
||||
let
|
||||
userConfig = config.users.users.${username};
|
||||
sopsKeyPath = ".config/sops-nix/key.txt";
|
||||
hmConfig = config.home-manager.users.${username};
|
||||
sopsKeyPath = "${hmConfig.xdg.relativeConfigHome}/sops-nix/key.txt";
|
||||
in
|
||||
{
|
||||
environment.persistence."/persist".users.${username}.files = [ sopsKeyPath ];
|
||||
|
@@ -9,24 +9,28 @@ in
|
||||
{
|
||||
relativeCacheHome = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = ".cache";
|
||||
description = "Relative path to directory holding application caches.";
|
||||
};
|
||||
|
||||
relativeConfigHome = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = ".config";
|
||||
description = "Relative path to directory holding application configurations.";
|
||||
};
|
||||
|
||||
relativeDataHome = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = ".local/share";
|
||||
description = "Relative path to directory holding application data.";
|
||||
};
|
||||
|
||||
relativeStateHome = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = ".local/state";
|
||||
description = "Relative path to directory holding application states.";
|
||||
};
|
||||
@@ -34,42 +38,49 @@ in
|
||||
userDirs = {
|
||||
relativeDesktop = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = "Desktop";
|
||||
description = "Relative path to the Desktop directory.";
|
||||
};
|
||||
|
||||
relativeDocuments = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = "Documents";
|
||||
description = "Relative path to the Documents directory.";
|
||||
};
|
||||
|
||||
relativeDownload = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = "Downloads";
|
||||
description = "Relative path to the Downloads directory.";
|
||||
};
|
||||
|
||||
relativeMusic = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = "Music";
|
||||
description = "Relative path to the Music directory.";
|
||||
};
|
||||
|
||||
relativePictures = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = "Pictures";
|
||||
description = "Relative path to the Pictures directory.";
|
||||
};
|
||||
|
||||
relativeTemplates = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = "Templates";
|
||||
description = "Relative path to the Templates directory.";
|
||||
};
|
||||
|
||||
relativeVideos = mkOption {
|
||||
type = str;
|
||||
readOnly = true;
|
||||
default = "Videos";
|
||||
description = "Relative path to the Videos directory.";
|
||||
};
|
||||
|
Reference in New Issue
Block a user