the refactor continues!

This commit is contained in:
martyTF 2026-04-01 16:00:52 +02:00
parent db2103a37d
commit 90513a119c
21 changed files with 216 additions and 234 deletions

View file

@ -7,9 +7,9 @@
{
imports = [
./launcher.nix
./noctalia.nix
./swww.nix
./walker.nix
./waybar.nix
];
}

View 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)
];
};
}

View file

@ -1,23 +0,0 @@
{
config,
pkgs,
inputs,
lib,
...
}:
{
options = {
desktop.shell = {
walker.enable = lib.mkEnableOption "enable walker";
};
};
config = lib.mkIf config.desktop.shell.walker.enable {
programs = {
walker = {
enable = true;
};
};
};
}

View file

@ -6,6 +6,32 @@
}:
{
options = {
keybinds = {
modifier = lib.mkOption {
default = "Meta";
description = "modifier key";
};
hotkeys = {
terminal = lib.mkOption {
default = "Return";
description = "terminal hotkey";
};
launcher = lib.mkOption {
default = "D";
description = "launcher hotkey";
};
browser = lib.mkOption {
default = "O";
description = "browser hotkey";
};
editor = lib.mkOption {
default = "E";
description = "editor hotkey";
};
};
}
};
imports = [
./hyprland.nix
./niri.nix