mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 14:33:56 -05:00
defaultApps: use builtins.baseNameOf where appropriate (#98)
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* defaultApps: use basenames of executables for session vars * defaultApps: set xfce4 helpers.rc
This commit is contained in:
parent
5b9a79974b
commit
d761532a9b
|
@ -14,11 +14,5 @@
|
|||
xfce.tumbler
|
||||
xfce.xfconf
|
||||
];
|
||||
|
||||
xdg.configFile."xfce4/helpers.rc".text = ''
|
||||
FileManager=thunar
|
||||
TerminalEmulator=kitty
|
||||
WebBrowser=firefox
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,13 +29,19 @@ in {
|
|||
];
|
||||
|
||||
sessionVariables = {
|
||||
BROWSER = "${lib.getExe cfg.webBrowser}";
|
||||
EDITOR = "${lib.getExe cfg.terminalEditor}";
|
||||
TERMINAL = "${lib.getExe cfg.terminal}";
|
||||
BROWSER = "${builtins.baseNameOf (lib.getExe cfg.webBrowser)}";
|
||||
EDITOR = "${builtins.baseNameOf (lib.getExe cfg.terminalEditor)}";
|
||||
TERMINAL = "${builtins.baseNameOf (lib.getExe cfg.terminal)}";
|
||||
};
|
||||
};
|
||||
|
||||
xdg = {
|
||||
configFile."xfce4/helpers.rc".text = ''
|
||||
FileManager=${builtins.baseNameOf (lib.getExe cfg.fileManager)}
|
||||
TerminalEmulator=${builtins.baseNameOf (lib.getExe cfg.terminal)}
|
||||
WebBrowser=${builtins.baseNameOf (lib.getExe cfg.webBrowser)}
|
||||
'';
|
||||
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue