Autogenderate XDG Dirs
This commit is contained in:
parent
28d611ae12
commit
87a53e364f
17 changed files with 126 additions and 258 deletions
|
@ -1,11 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"inode/directory" = [ "pcmanfm-qt.desktop" ];
|
||||
"text/plain" = [ "nvim.desktop" ];
|
||||
"image/png" = [ "imv.desktop" ];
|
||||
"image/jpeg" = [ "imv.desktop" ];
|
||||
"image/jp2" = [ "imv.desktop" ];
|
||||
"video/*" = [ "mpv.desktop" ];
|
||||
};
|
||||
imports = [
|
||||
./defaults
|
||||
./folders
|
||||
];
|
||||
}
|
||||
|
|
11
modules/home/settings/xdg/defaults/default.nix
Normal file
11
modules/home/settings/xdg/defaults/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"inode/directory" = [ "pcmanfm-qt.desktop" ];
|
||||
"text/plain" = [ "nvim.desktop" ];
|
||||
"image/png" = [ "imv.desktop" ];
|
||||
"image/jpeg" = [ "imv.desktop" ];
|
||||
"image/jp2" = [ "imv.desktop" ];
|
||||
"video/*" = [ "mpv.desktop" ];
|
||||
};
|
||||
}
|
11
modules/home/settings/xdg/folders/default.nix
Normal file
11
modules/home/settings/xdg/folders/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
desktop = null;
|
||||
music = null;
|
||||
publicShare = null;
|
||||
templates = null;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue