feat: XDG module

This commit is contained in:
2025-06-17 04:21:41 -06:00
parent da1fda7eda
commit 7b527e27b9
2 changed files with 14 additions and 6 deletions

13
modules/home/xdg.nix Normal file
View File

@@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.xdg;
in {
options.sydnix.xdg = {
enable = lib.mkEnableOption "XDG things";
};
config = lib.mkIf cfg.enable {
xdg.enable = true;
home.preferXdgDirectories = true;
};
}

View File

@@ -17,14 +17,9 @@
./files.nix
];
# A few settings without a home:
xdg.enable = true;
home.preferXdgDirectories = true;
home.packages = [ pkgs.sioyek ];
sydnix = {
gpg.enable = true;
xdg.enable = true;
sops = {
enable = true;
keyFile = "/persist/private-keys/age/${config.home.username}";