moved piper to module with enable option
This commit is contained in:
parent
afcf415621
commit
b7dd5328d0
4 changed files with 20 additions and 2 deletions
|
@ -20,7 +20,6 @@ in {
|
||||||
ungoogled-chromium
|
ungoogled-chromium
|
||||||
krita
|
krita
|
||||||
gnomeExtensions.dash-to-panel
|
gnomeExtensions.dash-to-panel
|
||||||
(lib.mkIf hardware.piperMouse.enable piper)
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -61,6 +60,7 @@ in {
|
||||||
makemkv.enable = true;
|
makemkv.enable = true;
|
||||||
signal-desktop-bin.enable = true;
|
signal-desktop-bin.enable = true;
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
|
piper.enable = hardware.piperMouse.enable;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,6 +36,7 @@ in {
|
||||||
protonvpn-gui.enable = true;
|
protonvpn-gui.enable = true;
|
||||||
dbeaver-bin.enable = true;
|
dbeaver-bin.enable = true;
|
||||||
bruno.enable = true;
|
bruno.enable = true;
|
||||||
|
piper.enable = hardware.piperMouse.enable;
|
||||||
})
|
})
|
||||||
(lib.mkIf (hardware.directAccess.enable && config.user.isDesktopUser) {
|
(lib.mkIf (hardware.directAccess.enable && config.user.isDesktopUser) {
|
||||||
anki.enable = true;
|
anki.enable = true;
|
||||||
|
@ -105,7 +106,6 @@ in {
|
||||||
noisetorch
|
noisetorch
|
||||||
|
|
||||||
# hardware management tools
|
# hardware management tools
|
||||||
(lib.mkIf hardware.piperMouse.enable piper)
|
|
||||||
(lib.mkIf hardware.openRGB.enable openrgb)
|
(lib.mkIf hardware.openRGB.enable openrgb)
|
||||||
(lib.mkIf hardware.viaKeyboard.enable via)
|
(lib.mkIf hardware.viaKeyboard.enable via)
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
./makemkv.nix
|
./makemkv.nix
|
||||||
./obs.nix
|
./obs.nix
|
||||||
./anki.nix
|
./anki.nix
|
||||||
|
./piper.nix
|
||||||
./qbittorrent.nix
|
./qbittorrent.nix
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./obsidian.nix
|
./obsidian.nix
|
||||||
|
|
17
modules/home-manager-modules/programs/piper.nix
Normal file
17
modules/home-manager-modules/programs/piper.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.programs.piper = {
|
||||||
|
enable = lib.mkEnableOption "enable piper";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.programs.piper.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
piper
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue