Compare commits

...
2 Commits
Author SHA1 Message Date
hektor 84e0866c19 feat(xdg): declare 'xdg' module
check / lint (push) Successful in 15s
2026-11-01 18:17:20 +01:00
hektor f55d5a8149 fix(backups): scope restic password per host 2026-11-01 18:17:20 +01:00
5 changed files with 38 additions and 19 deletions

No files matched your search

+1 -3
View File
@@ -16,9 +16,6 @@
homeDirectory = "/home/${config.host.username}";
};
xdg.userDirs.createDirectories = false;
xdg.userDirs.download = "${config.home.homeDirectory}/dl";
modules."3d".printing.enable = true;
ai-tools = {
claude-code.enable = true;
@@ -64,6 +61,7 @@
taskwarrior.enable = true;
terminal.enable = true;
torrenting.enable = true;
my.xdg.enable = true;
my.yubikey.enable = true;
zk.enable = true;
+1 -5
View File
@@ -15,11 +15,6 @@
homeDirectory = "/home/${config.host.username}";
};
xdg.userDirs = {
enable = false;
createDirectories = false;
};
modules."3d".printing.enable = true;
ai-tools = {
claude-code.enable = true;
@@ -44,6 +39,7 @@
keepassxc.enable = true;
music.enable = true;
newsboat.enable = true;
my.xdg.enable = true;
my.yubikey.enable = true;
nfc.enable = true;
nvim.enable = true;
+6 -9
View File
@@ -16,13 +16,7 @@
nixpkgs.config.allowUnfree = true;
xdg = {
systemDirs.config = [ "/etc/xdg" ];
userDirs = {
createDirectories = false;
download = "${config.home.homeDirectory}/dl";
};
};
xdg.systemDirs.config = [ "/etc/xdg" ];
home = {
stateVersion = "25.05";
@@ -70,8 +64,11 @@
k8s.enable = true;
keepassxc.enable = true;
music.enable = true;
my.dconf.enable = true;
my.stylix.enable = true;
my = {
dconf.enable = true;
stylix.enable = true;
xdg.enable = true;
};
nvim = {
enable = true;
colorscheme = "vscode";
+28
View File
@@ -0,0 +1,28 @@
{
config,
lib,
...
}:
let
inherit (config.home) homeDirectory;
in
{
options.my.xdg.enable = lib.mkEnableOption "XDG user directories";
config = lib.mkIf config.my.xdg.enable {
xdg.userDirs = {
enable = true;
createDirectories = false;
download = "${homeDirectory}/dl";
documents = "${homeDirectory}/doc";
desktop = homeDirectory;
music = homeDirectory;
pictures = homeDirectory;
projects = homeDirectory;
publicShare = homeDirectory;
templates = homeDirectory;
videos = homeDirectory;
};
};
}
+2 -2
View File
@@ -14,7 +14,7 @@ in
passwordFile = lib.mkOption {
type = lib.types.str;
default = config.sops.secrets."restic/password".path;
default = config.sops.secrets."${host}-restic/password".path;
};
paths = lib.mkOption {
@@ -30,7 +30,7 @@ in
config = lib.mkIf cfg.enable {
secrets = {
restic = [ "password" ];
"${host}-restic" = [ "password" ];
backblaze-b2 = [
"bucket-name"
"account-id"