add desktop base and laptop modules

This commit is contained in:
smayzy
2025-07-08 19:03:35 +02:00
parent f43c77d6f3
commit 4ebde5182a
7 changed files with 75 additions and 14 deletions
+21
View File
@@ -0,0 +1,21 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.base = mkOption {
type = types.bool;
default = false;
description = "base settings";
};
config = mkIf config.smayzy.base {
smayzy = {
nvf.enable = true;
nh.enable = true;
fzf.enable = true;
zsh.enable = true;
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{ lib, config, pkgs, ... }:
{
imports = [
./desktop.nix
./laptop.nix
./base.nix
];
}
+22
View File
@@ -0,0 +1,22 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.desktop.enable = mkOption {
type = types.bool;
default = false;
description = "desktop settings";
};
config = mkIf config.smayzy.desktop.enable {
smayzy = {
base = true;
steam.enable = true;
prism.enable = true;
firefox.enable = true;
stylix.enable = true;
audio.enable = true;
};
};
}
+21
View File
@@ -0,0 +1,21 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.laptop.enable = mkOption {
type = types.bool;
default = false;
description = "laptop settings";
};
config = mkIf config.smayzy.laptop.enable {
smayzy = {
base = true;
prism.enable = true;
firefox.enable = true;
stylix.enable = true;
audio.enable = true;
};
};
}