Working on reshuffling
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# wofi.nix
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
@@ -7,18 +8,18 @@ let
|
||||
src = "${wofiAssets}/${name}";
|
||||
});
|
||||
|
||||
enableWofi = true; # toggle on/off
|
||||
enableWofi = true;
|
||||
in
|
||||
{
|
||||
options.enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher";
|
||||
|
||||
# Everything is wrapped safely in config
|
||||
config = lib.mkIf enableWofi {
|
||||
# Just symbolic references to files, no pkgs or recursive config
|
||||
programs.wofi = {
|
||||
enable = true;
|
||||
assetsDir = wofiAssets;
|
||||
files = wofiConfs;
|
||||
myApps = {
|
||||
wofi = {
|
||||
enable = true;
|
||||
assetsDir = wofiAssets;
|
||||
files = wofiConfs;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user