32 lines
532 B
Nix
32 lines
532 B
Nix
{
|
|
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;
|
|
power = "desktop";
|
|
audio.enable = true;
|
|
sddm.enable = true;
|
|
wireguard.enable = true;
|
|
tor.enable = true;
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
firejail
|
|
android-tools
|
|
];
|
|
};
|
|
}
|