wip(home): refactor home modules *WILL NOT BUILD*

This commit is contained in:
ooks-io 2024-06-04 21:19:35 +12:00
parent 2033810429
commit 6a591ecbf7
115 changed files with 1028 additions and 791 deletions

View file

@ -1,17 +1,6 @@
{ lib, ... }:
{
imports = [
./gammastep
./tools
./gammastep.nix
./tools.nix
];
options.ooknet.desktop.wayland.utility = {
tools = {
enable = lib.mkEnableOption "Enable wayland specific tools";
};
gammastep = {
enable = lib.mkEnableOption "Enable gammastep module";
};
};
}

View file

@ -1,11 +1,12 @@
{ lib, config, ... }:
let
cfg = config.ooknet.desktop.wayland.utility.gammastep;
inherit (lib) mkIf;
cfg = config.ooknet.wayland;
in
{
config = lib.mkIf cfg.enable {
config = mkIf cfg.enable {
services.gammastep = {
enable = true;
enableVerboseLogging = true;

View file

@ -1,7 +1,8 @@
{ lib, config, pkgs, ... }:
let
cfg = config.ooknet.desktop.wayland.utility.tools;
inherit (lib) mkIf;
cfg = config.ooknet.wayland;
in
{