mv mouse's config software to module
This commit is contained in:
parent
3864013e1a
commit
3379ce4c3c
@ -21,7 +21,6 @@
|
|||||||
thunderbird
|
thunderbird
|
||||||
lf
|
lf
|
||||||
arduino-ide
|
arduino-ide
|
||||||
piper
|
|
||||||
calibre
|
calibre
|
||||||
base16-schemes
|
base16-schemes
|
||||||
tor
|
tor
|
||||||
@ -33,6 +32,4 @@
|
|||||||
sl
|
sl
|
||||||
];
|
];
|
||||||
|
|
||||||
services.ratbagd.enable = true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,6 +25,7 @@ in
|
|||||||
sddm.enable = true;
|
sddm.enable = true;
|
||||||
mullvad.enable = true;
|
mullvad.enable = true;
|
||||||
gui-utilities.enable = true;
|
gui-utilities.enable = true;
|
||||||
|
mouse.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,6 +25,7 @@ in
|
|||||||
sddm.enable = true;
|
sddm.enable = true;
|
||||||
mullvad.enable = true;
|
mullvad.enable = true;
|
||||||
gui-utilities.enable = true;
|
gui-utilities.enable = true;
|
||||||
|
mouse.enable = true;
|
||||||
};
|
};
|
||||||
services.logind.lidSwitch = "ignore";
|
services.logind.lidSwitch = "ignore";
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,5 +2,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./gui-utilities.nix
|
./gui-utilities.nix
|
||||||
|
./mouse.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
16
modules/nix/utilities/mouse.nix
Normal file
16
modules/nix/utilities/mouse.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.smayzy.mouse.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "mouse's config software : piper";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.mouse.enable {
|
||||||
|
environment.systemPackages = with pkgs; [ piper ];
|
||||||
|
services.ratbagd.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user