mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-08-04 19:48:29 -07:00
refactor: massively overhaul home manager module system
This commit is contained in:
parent
b2270408fc
commit
a506d2aed4
64 changed files with 5201 additions and 64 deletions
35
hm/modules/linux/var/easyeffects/default.nix
Normal file
35
hm/modules/linux/var/easyeffects/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
osConfig,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.liminalOS.utils.easyeffects;
|
||||
in
|
||||
{
|
||||
options.liminalOS.utils.easyeffects = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Whether to enable EasyEffects.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.easyeffects.enable = true;
|
||||
|
||||
home.file = lib.mkIf (osConfig.liminalOS.flakeLocation != null) {
|
||||
".config/easyeffects/output" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${osConfig.liminalOS.flakeLocation}/hm/modules/linux/var/easyeffects/output";
|
||||
recursive = true;
|
||||
};
|
||||
".config/easyeffects/input" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${osConfig.liminalOS.flakeLocation}/hm/modules/linux/var/easyeffects/input";
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue