the refactor continues!
This commit is contained in:
parent
db2103a37d
commit
90513a119c
21 changed files with 216 additions and 234 deletions
31
modules/desktop/shell/launcher.nix
Normal file
31
modules/desktop/shell/launcher.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
desktop.shell = {
|
||||
walker.enable = lib.mkEnableOption "enable walker";
|
||||
rofi.enable = lib.mkEnableOption "enable rofi";
|
||||
launcher = lib.mkOption {
|
||||
default = (lib.mkIf config.desktop.shell.walker.enable "walker");
|
||||
description = "default launcher"
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
programs = {
|
||||
walker = lib.mkIf config.desktop.shell.walker.enable {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.mkIf (config.desktop.shell.rofi.enable) rofi)
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue