feat(desktop): move launcher config to homes and use home-manager modules
This commit is contained in:
parent
6d84bd00fe
commit
e6a60c257c
6 changed files with 25 additions and 26 deletions
16
modules/nixos/desktop/launcher/default.nix
Normal file
16
modules/nixos/desktop/launcher/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (lib) singleton mkEnableOption;
|
||||
cfg = config.desktop.launcher;
|
||||
in
|
||||
{
|
||||
options.desktop.launcher = {
|
||||
fuzzel.enable = mkEnableOption "";
|
||||
wofi.enable = mkEnableOption "";
|
||||
};
|
||||
|
||||
config.home-manager.sharedModules = singleton {
|
||||
programs.fuzzel.enable = cfg.fuzzel.enable;
|
||||
programs.wofi.enable = cfg.wofi.enable;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue