add desktop base and laptop modules
This commit is contained in:
parent
f43c77d6f3
commit
4ebde5182a
@ -7,14 +7,6 @@
|
|||||||
../../modules/nix/default.nix
|
../../modules/nix/default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
smayzy.virt.enable = true;
|
|
||||||
|
|
||||||
smayzy.nh.enable = true;
|
|
||||||
|
|
||||||
smayzy.nvf.enable = true;
|
|
||||||
|
|
||||||
smayzy.audio.enable = true;
|
|
||||||
|
|
||||||
users.users.smayzy = {
|
users.users.smayzy = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "smayzy";
|
description = "smayzy";
|
||||||
|
|||||||
@ -11,12 +11,8 @@
|
|||||||
|
|
||||||
smayzy = {
|
smayzy = {
|
||||||
nvidia.enable = true;
|
nvidia.enable = true;
|
||||||
steam.enable = true;
|
virt.enable = true;
|
||||||
prism.enable = true;
|
desktop.enable = true;
|
||||||
fzf.enable = true;
|
|
||||||
firefox.enable = true;
|
|
||||||
zsh.enable = true;
|
|
||||||
stylix.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
./browser
|
./browser
|
||||||
./shell
|
./shell
|
||||||
./rice
|
./rice
|
||||||
|
./groups
|
||||||
];
|
];
|
||||||
|
|
||||||
# Timzone and locales (same for all machines so I put it here)
|
# Timzone and locales (same for all machines so I put it here)
|
||||||
|
|||||||
21
modules/nix/groups/base.nix
Normal file
21
modules/nix/groups/base.nix
Normal 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
modules/nix/groups/default.nix
Normal file
8
modules/nix/groups/default.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./desktop.nix
|
||||||
|
./laptop.nix
|
||||||
|
./base.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
22
modules/nix/groups/desktop.nix
Normal file
22
modules/nix/groups/desktop.nix
Normal 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
modules/nix/groups/laptop.nix
Normal file
21
modules/nix/groups/laptop.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user