mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 15:34:13 +01:00
22 lines
290 B
Nix
22 lines
290 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
} @ args:
|
|
with lib; let
|
|
cfg = config.modules.desktop.i3;
|
|
in {
|
|
imports = [
|
|
./options
|
|
];
|
|
|
|
options.modules.desktop.i3 = {
|
|
enable = mkEnableOption "i3 window manager";
|
|
};
|
|
|
|
config = mkIf cfg.enable (
|
|
mkMerge (import ./values args)
|
|
);
|
|
}
|