Regenerated
This commit is contained in:
+365
-429
File diff suppressed because it is too large
Load Diff
+1
-59
@@ -753,7 +753,7 @@ in
|
|||||||
; Text/icons: Use @text for readability
|
; Text/icons: Use @text for readability
|
||||||
contrastingUIColor=#cdd6f4
|
contrastingUIColor=#cdd6f4
|
||||||
showDesktopNotification=true
|
showDesktopNotification=true
|
||||||
savePath=${config.xdg.picturesDir}/Screenshots
|
savePath=~/Pictures/Screenshots
|
||||||
filenamePattern=$Y-$m-$d_$H-$M-$S
|
filenamePattern=$Y-$m-$d_$H-$M-$S
|
||||||
copyPathAfterCapture=true
|
copyPathAfterCapture=true
|
||||||
'';
|
'';
|
||||||
@@ -1999,64 +1999,6 @@ in
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/modules/traveldroid/system/xdg-user-dirs.nix=
|
|
||||||
This sets the dbus implementation
|
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/xdg-user-dirs.nix :noweb yes :mkdirp yes :eval never
|
|
||||||
{ lib, config, pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.xdg.userDirs;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.xdg.userDirs = {
|
|
||||||
enable = lib.mkEnableOption "XDG User Directories";
|
|
||||||
|
|
||||||
directories = lib.mkOption {
|
|
||||||
type = lib.types.attrsOf lib.types.str;
|
|
||||||
default = {
|
|
||||||
DESKTOP = "Desktop";
|
|
||||||
DOWNLOAD = "Downloads";
|
|
||||||
TEMPLATES = "Templates";
|
|
||||||
PUBLICSHARE = "Public";
|
|
||||||
DOCUMENTS = "Documents";
|
|
||||||
MUSIC = "Music";
|
|
||||||
PICTURES = "Pictures";
|
|
||||||
VIDEOS = "Videos";
|
|
||||||
};
|
|
||||||
description = ''
|
|
||||||
XDG User Directories.
|
|
||||||
Specify the subdirectory names for each XDG user directory type.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
environment.sessionVariables = lib.genAttrs cfg.directories (
|
|
||||||
dirName: dirValue:
|
|
||||||
let
|
|
||||||
dirUpper = builtins.toUpper dirName;
|
|
||||||
dataHome = config.xdg.dataHome or ("/home/" + (config.defaultUser or "henrov"));
|
|
||||||
in
|
|
||||||
"XDG_${dirUpper}_DIR" -> "${dataHome}/${dirValue}"
|
|
||||||
);
|
|
||||||
|
|
||||||
system.activationScripts.xdgUserDirs = let
|
|
||||||
dataHome = config.xdg.dataHome or ("/home/" + (config.defaultUser or "henrov"));
|
|
||||||
userName = builtins.elemAt (builtins.attrNames config.users.users) or "henrov";
|
|
||||||
in ''
|
|
||||||
mkdir -p ${builtins.toJSON (
|
|
||||||
builtins.attrValues (
|
|
||||||
builtins.mapAttrs (dirName: dirValue: "${dataHome}/${dirValue}")
|
|
||||||
cfg.directories
|
|
||||||
)
|
|
||||||
)}
|
|
||||||
chown -R ${userName}: "${dataHome}"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
|
|
||||||
* generated/users
|
* generated/users
|
||||||
|
|
||||||
** =generated/users/=
|
** =generated/users/=
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ in
|
|||||||
; Text/icons: Use @text for readability
|
; Text/icons: Use @text for readability
|
||||||
contrastingUIColor=#cdd6f4
|
contrastingUIColor=#cdd6f4
|
||||||
showDesktopNotification=true
|
showDesktopNotification=true
|
||||||
savePath=${config.xdg.picturesDir}/Screenshots
|
savePath=~/Pictures/Screenshots
|
||||||
filenamePattern=$Y-$m-$d_$H-$M-$S
|
filenamePattern=$Y-$m-$d_$H-$M-$S
|
||||||
copyPathAfterCapture=true
|
copyPathAfterCapture=true
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user