mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:53:55 -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.tumbler
|
||||||
xfce.xfconf
|
xfce.xfconf
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile."xfce4/helpers.rc".text = ''
|
|
||||||
FileManager=thunar
|
|
||||||
TerminalEmulator=kitty
|
|
||||||
WebBrowser=firefox
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,13 +29,19 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
BROWSER = "${lib.getExe cfg.webBrowser}";
|
BROWSER = "${builtins.baseNameOf (lib.getExe cfg.webBrowser)}";
|
||||||
EDITOR = "${lib.getExe cfg.terminalEditor}";
|
EDITOR = "${builtins.baseNameOf (lib.getExe cfg.terminalEditor)}";
|
||||||
TERMINAL = "${lib.getExe cfg.terminal}";
|
TERMINAL = "${builtins.baseNameOf (lib.getExe cfg.terminal)}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg = {
|
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 = {
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue