Move more things to xdg paths
This commit is contained in:
parent
04560dfbc5
commit
c41543edcf
23 changed files with 491 additions and 566 deletions
|
@ -1,9 +1,11 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./defaults
|
||||
./folders
|
||||
];
|
||||
|
||||
xdg.enable = config.home.desktop.enable;
|
||||
|
||||
home.preferXdgDirectories = true;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,21 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
# Media
|
||||
"image/*" = [ "imv.desktop" ];
|
||||
"image/gif" = [ "mpv.desktop" ];
|
||||
"video/*" = [ "mpv.desktop" ];
|
||||
xdg.mimeApps = {
|
||||
enable = config.xdg.enable;
|
||||
defaultApplications = {
|
||||
# Media
|
||||
"image/*" = [ "imv.desktop" ];
|
||||
"image/gif" = [ "mpv.desktop" ];
|
||||
"video/*" = [ "mpv.desktop" ];
|
||||
|
||||
# Apps
|
||||
"inode/directory" = [ "pcmanfm-qt.desktop" ];
|
||||
"text/plain" = [ "nvim.desktop" ];
|
||||
# Apps
|
||||
"inode/directory" = [ "pcmanfm-qt.desktop" ];
|
||||
"text/plain" = [ "nvim.desktop" ];
|
||||
|
||||
# Browser
|
||||
"application/x-mswinurl" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/http" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/https" = [ "librewolf.desktop" ];
|
||||
# Browser
|
||||
"application/x-mswinurl" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/http" = [ "librewolf.desktop" ];
|
||||
"x-scheme-handler/https" = [ "librewolf.desktop" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
xdg.userDirs = {
|
||||
enable = config.home.desktop.enable;
|
||||
xdg.userDirs = with config.home; {
|
||||
enable = config.xdg.enable;
|
||||
createDirectories = true;
|
||||
|
||||
desktop = null;
|
||||
pictures = "${config.home.homeDirectory}/Photos";
|
||||
music = null;
|
||||
pictures = "${homeDirectory}/Photos";
|
||||
publicShare = null;
|
||||
templates = null;
|
||||
|
||||
extraConfig = {
|
||||
XDG_PERSIST_DIR = if !config.targets.genericLinux.enable then "/persist${config.home.homeDirectory}" else "${config.home.homeDirectory}/.stow";
|
||||
XDG_GAMES_DIR = "${homeDirectory}/Games";
|
||||
XDG_KEEPERS_DIR = "${homeDirectory}/Keepers";
|
||||
XDG_PERSIST_DIR = if !config.targets.genericLinux.enable then "/persist${homeDirectory}" else "${homeDirectory}/.stow";
|
||||
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
|
||||
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue