format all

This commit is contained in:
Kopatz
2025-10-30 21:59:31 +01:00
parent b1dda4d037
commit 8a78e618bb
188 changed files with 3526 additions and 1825 deletions

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.graphical.audio;

View File

@@ -1,6 +1,13 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.graphical.awesome;
in {
{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.awesome;
in
{
options.custom.graphical.awesome = {
enable = lib.mkEnableOption "Enables awesome";
};

View File

@@ -1,7 +1,15 @@
{ config, pkgs, inputs, lib, ... }:
{
config,
pkgs,
inputs,
lib,
...
}:
with lib;
let cfg = config.custom.graphical.basics;
in {
let
cfg = config.custom.graphical.basics;
in
{
options.custom.graphical.basics = {
enable = mkEnableOption "Enables basics";
};

View File

@@ -1,7 +1,15 @@
{ config, pkgs, inputs, lib, ... }:
{
config,
pkgs,
inputs,
lib,
...
}:
with lib;
let cfg = config.custom.graphical.code.android;
in {
let
cfg = config.custom.graphical.code.android;
in
{
options.custom.graphical.code.android = {
enable = mkEnableOption "Enables code";
};
@@ -10,6 +18,9 @@ in {
documentation.dev.enable = true;
programs.adb.enable = true;
environment.systemPackages = with pkgs; [ android-studio ];
users.users.${config.mainUser.name}.extraGroups = [ "adbusers" "kvm" ];
users.users.${config.mainUser.name}.extraGroups = [
"adbusers"
"kvm"
];
};
}

View File

@@ -1,4 +1,10 @@
{ config, pkgs, inputs, lib, ... }:
{
config,
pkgs,
inputs,
lib,
...
}:
with lib;
let
cfg = config.custom.graphical.code;
@@ -12,23 +18,26 @@ in
config = mkIf cfg.enable {
documentation.dev.enable = true;
environment.systemPackages = with pkgs; [
man-pages
stable.jetbrains.idea-ultimate
typescript
bruno
nodejs_22 # needed for tabby extension
python3
gcc
] ++ lib.optionals cfg.rider [
pkgs.jetbrains.rider
] ++ lib.optionals cfg.clion [
pkgs.jetbrains.clion
];
environment.systemPackages =
with pkgs;
[
man-pages
stable.jetbrains.idea-ultimate
typescript
bruno
nodejs_22 # needed for tabby extension
python3
gcc
]
++ lib.optionals cfg.rider [
pkgs.jetbrains.rider
]
++ lib.optionals cfg.clion [
pkgs.jetbrains.clion
];
#environment.sessionVariables = {
# DOTNET_ROOT = "${pkgs.dotnet-sdk_7}";
#};
};
}

View File

@@ -1,4 +1,10 @@
{ config, pkgs, inputs, lib, ... }:
{
config,
pkgs,
inputs,
lib,
...
}:
let
cfg = config.custom.graphical.cosmic;
in
@@ -13,7 +19,7 @@ in
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = if (config.custom.graphical.sddm.enable == false) then true else false;
services.displayManager.cosmic-greeter.enable =
if (config.custom.graphical.sddm.enable == false) then true else false;
};
}

View File

@@ -1,4 +1,9 @@
{ pkgs, config, lib, ... }:
{
pkgs,
config,
lib,
...
}:
{
imports = [

View File

@@ -1,4 +1,10 @@
{ lib, config, pkgs, inputs, ... }:
{
lib,
config,
pkgs,
inputs,
...
}:
with lib;
let
cfg = config.custom.graphical.emulators;

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.graphical.games;
@@ -22,12 +27,13 @@ in
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall =
true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall =
true; # Open ports in the firewall for Source Dedicated Server
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
gamescopeSession.enable = true;
extraCompatPackages = with pkgs; [ proton-ge-bin steamtinkerlaunch ];
extraCompatPackages = with pkgs; [
proton-ge-bin
steamtinkerlaunch
];
};
programs.gamemode = {
enable = true;
@@ -37,19 +43,28 @@ in
};
};
environment.systemPackages = with pkgs; [ mangohud lutris ]
++ optionals cfg.enablePreinstalled (with pkgs; [
#taisei
#osu-lazer-bin
wineWowPackages.unstableFull
winetricks
heroic
prismlauncher
steamtinkerlaunch
tetrio-desktop
beyond-all-reason
#libs
]) ++ optionals cfg.enableVr (with pkgs; [ bs-manager ]);
environment.systemPackages =
with pkgs;
[
mangohud
lutris
]
++ optionals cfg.enablePreinstalled (
with pkgs;
[
#taisei
#osu-lazer-bin
wineWowPackages.unstableFull
winetricks
heroic
prismlauncher
steamtinkerlaunch
tetrio-desktop
beyond-all-reason
#libs
]
)
++ optionals cfg.enableVr (with pkgs; [ bs-manager ]);
};
}

View File

@@ -1,114 +1,124 @@
{ config, lib, ... }:
let cfg = config.custom.graphical.gnome;
in {
let
cfg = config.custom.graphical.gnome;
in
{
# doesnt work for me.. nothing changes
config = lib.mkIf cfg.enable {
programs.dconf.profiles.user.databases = [{
lockAll = true;
settings = with lib.gvariant; {
"org/gnome/settings-daemon/plugins/media-keys" = {
custom-keybindings = [
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/"
];
};
"org/gnome/desktop/wm/preferences" = {
resize-with-right-button = true;
};
"org/gnome/desktop/sound" = { event-sounds = false; };
"org/gnome/desktop/peripherals/mouse" = { accel-profile = "flat"; };
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" =
{
programs.dconf.profiles.user.databases = [
{
lockAll = true;
settings = with lib.gvariant; {
"org/gnome/settings-daemon/plugins/media-keys" = {
custom-keybindings = [
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/"
];
};
"org/gnome/desktop/wm/preferences" = {
resize-with-right-button = true;
};
"org/gnome/desktop/sound" = {
event-sounds = false;
};
"org/gnome/desktop/peripherals/mouse" = {
accel-profile = "flat";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
name = "nautilus";
command = "nautilus";
binding = "<Super>e";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" =
{
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
name = "kitty super";
command = "kitty";
binding = "<Super>q";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" =
{
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" = {
binding = "<Alt>space";
command = "rofi -show combi";
name = "Open Rofi";
};
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [
"blur-my-shell@aunetx"
"trayIconsReloaded@selfmade.pl"
"Vitals@CoreCoding.com"
"workspace-indicator@gnome-shell-extensions.gcampax.github.com"
"dash-to-dock@micxgx.gmail.com"
"just-perfection-desktop@just-perfection"
"user-theme@gnome-shell-extensions.gcampax.github.com"
"apps-menu@gnome-shell-extensions.gcampax.github.com"
];
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [
"blur-my-shell@aunetx"
"trayIconsReloaded@selfmade.pl"
"Vitals@CoreCoding.com"
"workspace-indicator@gnome-shell-extensions.gcampax.github.com"
"dash-to-dock@micxgx.gmail.com"
"just-perfection-desktop@just-perfection"
"user-theme@gnome-shell-extensions.gcampax.github.com"
"apps-menu@gnome-shell-extensions.gcampax.github.com"
];
};
"org/gnome/mutter" = {
edge-tiling = true;
workspaces-only-on-primary = true;
dynamic-workspaces = false;
};
#"org/gnome/desktop/wm/preferences" = {
# num-workspaces = 9;
# focus-mode = "sloppy";
#};
"org/gnome/desktop/wm/keybindings" = {
#minimize = [ "<Super>comma" ];
maximize = [ "<Super>f" ];
#switch-to-workspace-left = [ "<Super>e" ];
#switch-to-workspace-right = [ "<Super>r" ];
unmaximize = mkEmptyArray type.string;
activate-window-menu = mkEmptyArray type.string;
move-to-monitor-up = mkEmptyArray type.string;
move-to-monitor-down = mkEmptyArray type.string;
#move-to-monitor-left = [ "<Super><Shift>e" ];
#move-to-monitor-right = [ "<Super><Shift>r" ];
move-to-workspace-down = mkEmptyArray type.string;
move-to-workspace-up = mkEmptyArray type.string;
switch-to-workspace-down = [
"<Primary><Super>Down"
"<Primary><Super>j"
];
switch-to-workspace-up = [
"<Primary><Super>Up"
"<Primary><Super>k"
];
toggle-maximized = [ "<Super>f" ];
close = [ "<Alt>F4" ];
switch-to-workspace-1 = [ "<Super>1" ];
switch-to-workspace-2 = [ "<Super>2" ];
switch-to-workspace-3 = [ "<Super>3" ];
switch-to-workspace-4 = [ "<Super>4" ];
switch-to-workspace-5 = [ "<Super>5" ];
switch-to-workspace-6 = [ "<Super>6" ];
switch-to-workspace-7 = [ "<Super>7" ];
switch-to-workspace-8 = [ "<Super>8" ];
switch-to-workspace-9 = [ "<Super>9" ];
move-to-workspace-1 = [ "<Super><Shift>1" ];
move-to-workspace-2 = [ "<Super><Shift>2" ];
move-to-workspace-3 = [ "<Super><Shift>3" ];
move-to-workspace-4 = [ "<Super><Shift>4" ];
move-to-workspace-5 = [ "<Super><Shift>5" ];
move-to-workspace-6 = [ "<Super><Shift>6" ];
move-to-workspace-7 = [ "<Super><Shift>7" ];
move-to-workspace-8 = [ "<Super><Shift>8" ];
move-to-workspace-9 = [ "<Super><Shift>9" ];
};
"org/gnome/shell/keybindings" = {
# Following binds need to be disabled, as their defaults are used for
# the binds above, and will run into conflicts.
switch-to-application-1 = mkEmptyArray type.string;
switch-to-application-2 = mkEmptyArray type.string;
switch-to-application-3 = mkEmptyArray type.string;
switch-to-application-4 = mkEmptyArray type.string;
switch-to-application-5 = mkEmptyArray type.string;
switch-to-application-6 = mkEmptyArray type.string;
switch-to-application-7 = mkEmptyArray type.string;
switch-to-application-8 = mkEmptyArray type.string;
switch-to-application-9 = mkEmptyArray type.string;
};
};
"org/gnome/mutter" = {
edge-tiling = true;
workspaces-only-on-primary = true;
dynamic-workspaces = false;
};
#"org/gnome/desktop/wm/preferences" = {
# num-workspaces = 9;
# focus-mode = "sloppy";
#};
"org/gnome/desktop/wm/keybindings" = {
#minimize = [ "<Super>comma" ];
maximize = [ "<Super>f" ];
#switch-to-workspace-left = [ "<Super>e" ];
#switch-to-workspace-right = [ "<Super>r" ];
unmaximize = mkEmptyArray type.string;
activate-window-menu = mkEmptyArray type.string;
move-to-monitor-up = mkEmptyArray type.string;
move-to-monitor-down = mkEmptyArray type.string;
#move-to-monitor-left = [ "<Super><Shift>e" ];
#move-to-monitor-right = [ "<Super><Shift>r" ];
move-to-workspace-down = mkEmptyArray type.string;
move-to-workspace-up = mkEmptyArray type.string;
switch-to-workspace-down =
[ "<Primary><Super>Down" "<Primary><Super>j" ];
switch-to-workspace-up = [ "<Primary><Super>Up" "<Primary><Super>k" ];
toggle-maximized = [ "<Super>f" ];
close = [ "<Alt>F4" ];
switch-to-workspace-1 = [ "<Super>1" ];
switch-to-workspace-2 = [ "<Super>2" ];
switch-to-workspace-3 = [ "<Super>3" ];
switch-to-workspace-4 = [ "<Super>4" ];
switch-to-workspace-5 = [ "<Super>5" ];
switch-to-workspace-6 = [ "<Super>6" ];
switch-to-workspace-7 = [ "<Super>7" ];
switch-to-workspace-8 = [ "<Super>8" ];
switch-to-workspace-9 = [ "<Super>9" ];
move-to-workspace-1 = [ "<Super><Shift>1" ];
move-to-workspace-2 = [ "<Super><Shift>2" ];
move-to-workspace-3 = [ "<Super><Shift>3" ];
move-to-workspace-4 = [ "<Super><Shift>4" ];
move-to-workspace-5 = [ "<Super><Shift>5" ];
move-to-workspace-6 = [ "<Super><Shift>6" ];
move-to-workspace-7 = [ "<Super><Shift>7" ];
move-to-workspace-8 = [ "<Super><Shift>8" ];
move-to-workspace-9 = [ "<Super><Shift>9" ];
};
"org/gnome/shell/keybindings" = {
# Following binds need to be disabled, as their defaults are used for
# the binds above, and will run into conflicts.
switch-to-application-1 = mkEmptyArray type.string;
switch-to-application-2 = mkEmptyArray type.string;
switch-to-application-3 = mkEmptyArray type.string;
switch-to-application-4 = mkEmptyArray type.string;
switch-to-application-5 = mkEmptyArray type.string;
switch-to-application-6 = mkEmptyArray type.string;
switch-to-application-7 = mkEmptyArray type.string;
switch-to-application-8 = mkEmptyArray type.string;
switch-to-application-9 = mkEmptyArray type.string;
};
};
}];
}
];
};
}

View File

@@ -1,16 +1,24 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
with lib;
let cfg = config.custom.graphical.gnome;
in {
options.custom.graphical.gnome = { enable = mkEnableOption "Enables gnome"; };
let
cfg = config.custom.graphical.gnome;
in
{
options.custom.graphical.gnome = {
enable = mkEnableOption "Enables gnome";
};
config = mkIf cfg.enable {
services.xserver = {
xkb.layout = config.mainUser.layout;
xkb.variant = config.mainUser.variant;
enable = true;
displayManager.gdm.enable =
lib.mkIf (!config.custom.graphical.sddm.enable) true;
displayManager.gdm.enable = lib.mkIf (!config.custom.graphical.sddm.enable) true;
desktopManager.gnome.enable = true;
};
@@ -21,23 +29,26 @@ in {
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
cheese
gedit # text editor
gnome-music
gnome-terminal
epiphany # web browser
#geary # email reader
evince # document viewer
gnome-characters
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
environment.gnome.excludePackages = (
with pkgs;
[
gnome-photos
gnome-tour
cheese
gedit # text editor
gnome-music
gnome-terminal
epiphany # web browser
#geary # email reader
evince # document viewer
gnome-characters
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]
);
environment.systemPackages = with pkgs; [
wmctrl

View File

@@ -1,6 +1,14 @@
{ config, pkgs, lib, inputs, ... }:
let cfg = config.custom.graphical.hyprland;
in {
{
config,
pkgs,
lib,
inputs,
...
}:
let
cfg = config.custom.graphical.hyprland;
in
{
options.custom.graphical.hyprland = {
enable = lib.mkEnableOption "Enables hyprland";
};
@@ -14,8 +22,7 @@ in {
xkb.variant = config.mainUser.variant;
enable = true;
};
services.displayManager.sddm.enable =
!config.services.xserver.displayManager.gdm.enable;
services.displayManager.sddm.enable = !config.services.xserver.displayManager.gdm.enable;
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
@@ -30,7 +37,9 @@ in {
pkgs.xdg-desktop-portal-hyprland
];
programs.hyprland = { enable = true; };
programs.hyprland = {
enable = true;
};
security.pam.services.hyprlock = { };
systemd = {
@@ -41,8 +50,7 @@ in {
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart =
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
@@ -72,9 +80,8 @@ in {
#xdg-utils
#xwayland
(writeShellScriptBin "copyfiletoclip" ''
echo "file://$(realpath $1)" | wl-copy -t text/uri-list
''
)
echo "file://$(realpath $1)" | wl-copy -t text/uri-list
'')
];
};

View File

@@ -1,6 +1,13 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.graphical.i3;
in {
{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.i3;
in
{
options = {
custom.graphical.i3.enable = lib.mkOption {
@@ -24,14 +31,18 @@ in {
};
services = {
displayManager = { defaultSession = "none+i3"; };
displayManager = {
defaultSession = "none+i3";
};
xserver = {
enable = true;
xkb.layout = config.mainUser.layout;
xkb.variant = config.mainUser.variant;
desktopManager = { xterm.enable = false; };
desktopManager = {
xterm.enable = false;
};
windowManager.i3 = {
enable = true;
@@ -53,8 +64,7 @@ in {
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart =
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;

View File

@@ -1,8 +1,17 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
let cfg = config.custom.graphical.ime;
in {
options.custom.graphical.ime = { enable = mkEnableOption "Enables ime"; };
let
cfg = config.custom.graphical.ime;
in
{
options.custom.graphical.ime = {
enable = mkEnableOption "Enables ime";
};
config = mkIf cfg.enable {
i18n.inputMethod = {

View File

@@ -1,6 +1,13 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.graphical.lightdm;
in {
{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.lightdm;
in
{
options = {
custom.graphical.lightdm.enable = lib.mkOption {

View File

@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.custom.graphical.lxqt;

View File

@@ -1,6 +1,13 @@
{ config, lib, pkgs, ... }:
let cfg = config.custom.graphical.nightlight;
in {
{
config,
lib,
pkgs,
...
}:
let
cfg = config.custom.graphical.nightlight;
in
{
options.custom.graphical.nightlight = {
enable = lib.mkEnableOption "Enables nightlight";
};

View File

@@ -1,6 +1,13 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.graphical.niri;
in {
{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.niri;
in
{
options = {
custom.graphical.niri.enable = lib.mkOption {
@@ -11,7 +18,9 @@ in {
};
config = lib.mkIf cfg.enable {
programs.niri = { enable = true; };
programs.niri = {
enable = true;
};
environment.systemPackages = with pkgs; [ xwayland-satellite ];
};
}

View File

@@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.noise-supression;
in

View File

@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.custom.graphical.obs;

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.graphical.openrgb;

View File

@@ -1,7 +1,14 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
with lib;
let cfg = config.custom.graphical.plasma;
in {
let
cfg = config.custom.graphical.plasma;
in
{
options.custom.graphical.plasma = {
enable = mkEnableOption "Enables plasma";
};

View File

@@ -1,6 +1,13 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.graphical.sddm;
in {
{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.sddm;
in
{
options = {
custom.graphical.sddm.enable = lib.mkOption {
@@ -11,12 +18,12 @@ in {
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ (pkgs.sddm-astronaut.override { embeddedTheme = "pixel_sakura";}) ];
environment.systemPackages = [ (pkgs.sddm-astronaut.override { embeddedTheme = "pixel_sakura"; }) ];
services = {
displayManager.sddm = {
enable = true;
theme = "sddm-astronaut-theme";
extraPackages = [ (pkgs.sddm-astronaut.override { embeddedTheme = "pixel_sakura";}) ];
extraPackages = [ (pkgs.sddm-astronaut.override { embeddedTheme = "pixel_sakura"; }) ];
#wayland.enable = true;
#sddm.theme = "breeze";
};

View File

@@ -1,7 +1,15 @@
{ config, pkgs, inputs, lib, ... }:
{
config,
pkgs,
inputs,
lib,
...
}:
with lib;
let cfg = config.custom.graphical.shared;
in {
let
cfg = config.custom.graphical.shared;
in
{
options.custom.graphical.shared = {
enable = mkEnableOption "Enables shared";
};
@@ -39,16 +47,21 @@ in {
networking.firewall = {
enable = true;
allowedTCPPorts = [ 53317 ]; # localsend
allowedUDPPorts = [ 1194 53317 ]; # openvpn, localsend
allowedTCPPortRanges = [{
from = 1714;
to = 1764;
} # KDE Connect
allowedUDPPorts = [
1194
53317
]; # openvpn, localsend
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
} # KDE Connect
];
allowedUDPPortRanges = [{
from = 1714;
to = 1764;
} # KDE Connect
allowedUDPPortRanges = [
{
from = 1714;
to = 1764;
} # KDE Connect
];
};

View File

@@ -1,6 +1,13 @@
{ lib, config, pkgs, ... }:
let cfg = config.custom.graphical.stylix;
in {
{
lib,
config,
pkgs,
...
}:
let
cfg = config.custom.graphical.stylix;
in
{
options.custom.graphical.stylix = with lib; {
enable = mkEnableOption "Enables stylix";
image = mkOption {
@@ -11,7 +18,13 @@ in {
'';
};
base16Scheme = mkOption {
type = with lib.types; nullOr (oneOf [ path lines attrs ]);
type =
with lib.types;
nullOr (oneOf [
path
lines
attrs
]);
default = null;
description = ''
The base16 scheme to use.

View File

@@ -1,6 +1,13 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.graphical.sway;
in {
{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.sway;
in
{
options = {
custom.graphical.sway.enable = lib.mkOption {

View File

@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.custom.graphical.xfce;