add is linux, reformatting

This commit is contained in:
2026-05-11 09:12:54 -05:00
parent f9af5f71fe
commit f24687c060
2 changed files with 27 additions and 26 deletions
+1
View File
@@ -6,6 +6,7 @@
}: let
program = "gpg";
cfg = config.dots.${program};
isLinux = pkgs.stdenv.isLinux;
#sec = sops.secrets;
in {
options.dots.${program} = {
+24 -24
View File
@@ -14,36 +14,36 @@ in {
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [xdg-ninja ];
home.packages = with pkgs; [xdg-ninja];
xdg = {
enable = true;
configHome = "${home_dir}/.config";
cacheHome = "${home_dir}/.cache";
dataHome = "${home_dir}/.local/share";
stateHome = "${home_dir}/.local/state";
userDirs = lib.mkIf isLinux {
enable = true;
# writes ~/.config/user-dirs.dirs
desktop = "${home_dir}/desktop";
download = "${home_dir}/downloads";
documents = "${home_dir}/documents";
pictures = "${home_dir}/pictures";
videos = "${home_dir}/videos";
music = "${home_dir}/music";
publicShare = "${home_dir}/public";
templates = "${home_dir}/templates";
};
configHome = "${home_dir}/.config";
cacheHome = "${home_dir}/.cache";
dataHome = "${home_dir}/.local/share";
stateHome = "${home_dir}/.local/state";
userDirs = lib.mkIf isLinux {
enable = true;
# writes ~/.config/user-dirs.dirs
desktop = "${home_dir}/desktop";
download = "${home_dir}/downloads";
documents = "${home_dir}/documents";
pictures = "${home_dir}/pictures";
videos = "${home_dir}/videos";
music = "${home_dir}/music";
publicShare = "${home_dir}/public";
templates = "${home_dir}/templates";
};
mimeApps = lib.mkIf isLinux {
enable = true;
defaultApplications = {
"application/pdf" = ["org.pwmt.zathura.desktop"];
};
mimeApps = lib.mkIf isLinux {
enable = true;
defaultApplications = {
"application/pdf" = ["org.pwmt.zathura.desktop"];
};
};
};
# misc env variables to get things out of ~ (<3 xdg-ninja)
home.sessionVariables = {