feat: add desktop system role and enable themes only if enabled
This commit is contained in:
parent
f2f778891c
commit
f0df5cf1a7
5 changed files with 39 additions and 14 deletions
|
@ -33,6 +33,8 @@
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
system = {
|
system = {
|
||||||
|
roles.desktop.enable = true;
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
"DP-2" = {
|
"DP-2" = {
|
||||||
resX = 1920;
|
resX = 1920;
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
media.enableAll = true;
|
media.enableAll = true;
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
|
roles.desktop.enable = true;
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
eDP-1 = {
|
eDP-1 = {
|
||||||
resX = 3840;
|
resX = 3840;
|
||||||
|
|
|
@ -1,16 +1,23 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
qt = {
|
pkgs,
|
||||||
enable = true;
|
lib,
|
||||||
platformTheme = "gtk2";
|
config,
|
||||||
#platformTheme = "qt5ct";
|
...
|
||||||
#style = "kvantum";
|
}:
|
||||||
};
|
{
|
||||||
|
config = lib.mkIf config.modules.system.roles.desktop.enable {
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme = "gtk2";
|
||||||
|
#platformTheme = "qt5ct";
|
||||||
|
#style = "kvantum";
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
#vimix-icon-theme
|
#vimix-icon-theme
|
||||||
#pop-icon-theme
|
#pop-icon-theme
|
||||||
catppuccin-papirus-folders
|
catppuccin-papirus-folders
|
||||||
#catppuccin-kvantum
|
#catppuccin-kvantum
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,6 @@
|
||||||
{ imports = [ ./terminal.nix ]; }
|
{
|
||||||
|
imports = [
|
||||||
|
./terminal.nix
|
||||||
|
./desktop.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
9
options/system/roles/desktop.nix
Normal file
9
options/system/roles/desktop.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.system.roles.desktop = {
|
||||||
|
enable = mkEnableOption "desktop usage features";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue