add is linux, reformatting
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
}: let
|
}: let
|
||||||
program = "gpg";
|
program = "gpg";
|
||||||
cfg = config.dots.${program};
|
cfg = config.dots.${program};
|
||||||
|
isLinux = pkgs.stdenv.isLinux;
|
||||||
#sec = sops.secrets;
|
#sec = sops.secrets;
|
||||||
in {
|
in {
|
||||||
options.dots.${program} = {
|
options.dots.${program} = {
|
||||||
|
|||||||
@@ -14,37 +14,37 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [xdg-ninja ];
|
home.packages = with pkgs; [xdg-ninja];
|
||||||
|
|
||||||
xdg = {
|
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;
|
enable = true;
|
||||||
|
# writes ~/.config/user-dirs.dirs
|
||||||
configHome = "${home_dir}/.config";
|
desktop = "${home_dir}/desktop";
|
||||||
cacheHome = "${home_dir}/.cache";
|
download = "${home_dir}/downloads";
|
||||||
dataHome = "${home_dir}/.local/share";
|
documents = "${home_dir}/documents";
|
||||||
stateHome = "${home_dir}/.local/state";
|
pictures = "${home_dir}/pictures";
|
||||||
|
videos = "${home_dir}/videos";
|
||||||
userDirs = lib.mkIf isLinux {
|
music = "${home_dir}/music";
|
||||||
enable = true;
|
publicShare = "${home_dir}/public";
|
||||||
# writes ~/.config/user-dirs.dirs
|
templates = "${home_dir}/templates";
|
||||||
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)
|
# misc env variables to get things out of ~ (<3 xdg-ninja)
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
GOPATH = "$XDG_DATA_HOME/go";
|
GOPATH = "$XDG_DATA_HOME/go";
|
||||||
|
|||||||
Reference in New Issue
Block a user