Compare commits

..

No commits in common. "15268487f3ace0a610e224c13cc936720f0c6085" and "6ce116ef71b1e8a861001c7a14e88c802a722294" have entirely different histories.

30 changed files with 288 additions and 463 deletions

View File

@ -10,7 +10,7 @@ general {
background { background {
monitor = monitor =
path = /home/foglar/dotfiles/config/backgrounds/aurora_borealis.png path = /home/foglar/dotfiles/nixos/aurora_borealis.png
color = rgba(25, 20, 20, 1.0) color = rgba(25, 20, 20, 1.0)
# all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations

View File

@ -108,11 +108,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1732437995, "lastModified": 1732248209,
"narHash": "sha256-e+a2fakuHryskUKuupz3ZhwEM9MFD6eUxM7dRJAlOLs=", "narHash": "sha256-Mv8k0VuGdb6YhhKt+8SIvhMdmI4xZhw/3ycSvlAq19Q=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "9fdaef6ec5c8317cee125ea69b5b79fa73a26c69", "rev": "4a8ba00d1be3f3745428ed56efbb32155c548192",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -252,11 +252,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1732420764, "lastModified": 1732025103,
"narHash": "sha256-u6JOOVlnGe8fMekW0BgaHuuZwbJp4ixQaMA5BEvRoDA=", "narHash": "sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "67cd4814a247fd0fe97171acb90659f7e304bcb8", "rev": "a46e702093a5c46e192243edbd977d5749e7f294",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -329,11 +329,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1732416388, "lastModified": 1732242702,
"narHash": "sha256-9kCpC9NtQwm5hrPseqLF8nN2eWZv/3I1KmuvNlxv03w=", "narHash": "sha256-fJ+fGtTRLSMBdaz0q2yi2xlC0gMTo+4cGjcLlwtOGQk=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "55ec8bd512605a014cc322d3419a9cfa72178340", "rev": "b1003445953474b967464d4d0878955d37498647",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -11,7 +11,6 @@
hyprland = { hyprland = {
url = "github:hyprwm/Hyprland"; url = "github:hyprwm/Hyprland";
}; };
#hyprland-plugins = { #hyprland-plugins = {
# url = "github:hyprwm/hyprland-plugins"; # url = "github:hyprwm/hyprland-plugins";
# inputs.hyprland.follows = "hyprland"; # inputs.hyprland.follows = "hyprland";
@ -43,10 +42,6 @@
nix-ld, nix-ld,
... ...
} @ inputs: let } @ inputs: let
username = "foglar";
hostname = "laptop";
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -67,15 +62,13 @@
in { in {
nixosConfigurations = { nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem { laptop = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {inherit inputs system pkgs pkgs-stable;};
inherit inputs system pkgs pkgs-stable username hostname;
};
modules = [ modules = [
./nixos/configuration.nix ./nixos/configuration.nix
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
nix-ld.nixosModules.nix-ld nix-ld.nixosModules.nix-ld
{programs.nix-ld.dev.enable = true;} { programs.nix-ld.dev.enable = true; }
]; ];
}; };
}; };

View File

@ -2,7 +2,6 @@
inputs, inputs,
pkgs, pkgs,
pkgs-stable, pkgs-stable,
username,
... ...
}: { }: {
imports = [ imports = [
@ -29,14 +28,14 @@
WLR_NO_HARDWARE_CURSORS = "1"; WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
EDITOR = "nvim"; EDITOR = "nvim";
FLAKE = "/home/${username}/dotfiles"; FLAKE = "/home/foglar/dotfiles";
DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf"; DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";
}; };
users.users.${username} = { users.users.foglar = {
isNormalUser = true; isNormalUser = true;
description = "${username}"; description = "foglar";
extraGroups = ["wheel"]; extraGroups = ["wheel"];
}; };

View File

@ -148,7 +148,7 @@
"$mod" = "SUPER"; "$mod" = "SUPER";
"$term" = "${pkgs.kitty}/bin/kitty"; "$term" = "${pkgs.kitty}/bin/kitty";
"$editor" = "${pkgs.vscode}/bin/code"; "$editor" = "${pkgs.vscode}/bin/code";
"$file" = "nautilus"; "$file" = "dolphin";
"$browser" = "${pkgs.librewolf}/bin/librewolf"; "$browser" = "${pkgs.librewolf}/bin/librewolf";
animations = { animations = {

View File

@ -5,6 +5,8 @@
hypridle hypridle
hyprpolkitagent hyprpolkitagent
kdePackages.dolphin
dunst dunst
libnotify libnotify
swayosd swayosd
@ -79,6 +81,5 @@
#(writeShellScriptBin "rofilaunch" '''') #(writeShellScriptBin "rofilaunch" '''')
]) ++ (with pkgs-stable; [ ]) ++ (with pkgs-stable; [
pavucontrol pavucontrol
gnome.nautilus
]); ]);
} }

View File

@ -69,7 +69,7 @@
orientation = mkLiteral "vertical"; orientation = mkLiteral "vertical";
children = ["inputbar" "listbox"]; children = ["inputbar" "listbox"];
background-color = mkLiteral "transparent"; background-color = mkLiteral "transparent";
background-image = mkLiteral "url(\"~/dotfiles/config/backgrounds/aurora_borealis.png\", height)"; background-image = mkLiteral "url(\"~/dotfiles/nixos/aurora_borealis.png\", height)";
}; };
# Input bar settings # Input bar settings
@ -79,7 +79,7 @@
padding = mkLiteral "5em"; padding = mkLiteral "5em";
children = ["entry"]; children = ["entry"];
background-color = mkLiteral "transparent"; background-color = mkLiteral "transparent";
background-image = mkLiteral "url(\"~/dotfiles/config/backgrounds/aurora_borealis.png\", width)"; background-image = mkLiteral "url(\"~/dotfiles/nixos/aurora_borealis.png\", width)";
}; };
# Entry field settings # Entry field settings

View File

@ -14,6 +14,37 @@
gtk.enable = true; gtk.enable = true;
programs.bash = {
enable = true;
enableCompletion = true;
shellAliases = {
vim = "nvim";
ls = "exa --icons";
ll = "exa -alh --icons";
tree = "exa --tree --icons";
open = "rifle";
ip = "ip -c";
s = "kitten ssh";
diff = "diff --color";
cd = "z";
respawn = "clear; pfetch";
l = "eza -lh --icons=auto";
mkdir = "mkdir -p";
cat = "bat --style plain";
rasp = "s foglar@192.168.8.140";
hist = "history | awk '{for (i=2; i<=NF; i++) printf \$i\" \"; print \"\"}' | fzf | wl-copy";
packages = "paru -Qe | fzf | wl-copy";
cdx = "zoxide query --interactive";
distrobox-enter = "distrobox-enter --root";
distrobox-create = "distrobox-create --root";
};
bashrcExtra = ''
pfetch'';
};
home.file = { home.file = {
".config/hypr/hyprlock.conf".source = ../config/hyprlock.conf; ".config/hypr/hyprlock.conf".source = ../config/hyprlock.conf;
@ -27,6 +58,14 @@
} }
''; '';
}; };
home.sessionVariables = {
EDITOR = "nvim";
FLAKE = "/home/foglar/dotfiles";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_PICTURES_DIR = "$HOME/Pictures/Screenshots/";
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View File

@ -23,13 +23,13 @@
libreoffice libreoffice
localsend localsend
plasma5Packages.kdeconnect-kde plasma5Packages.kdeconnect-kde
qbittorrent
vlc vlc
openrocket openrocket
spotify spotify
spotube spotube
inkscape inkscape
gnome-disk-utility gnome-disk-utility
qbittorrent
]) ])
++ (with pkgs-stable; [ ++ (with pkgs-stable; [
loupe loupe

View File

@ -12,8 +12,8 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
vitetris vitetris
steam steam
superTuxKart
heroic heroic
gamescope
wine wine
(writeShellScriptBin "nvidia-offload" '' (writeShellScriptBin "nvidia-offload" ''
@ -23,36 +23,6 @@
export __VK_LAYER_NV_optimus=NVIDIA_only export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@" exec "$@"
'') '')
(writeShellScriptBin "gs" ''
set -xeuo pipefail
gamescopeArgs=(
--adaptive-sync # VRR support
--hdr-enabled
--mangoapp # performance overlay
--rt
--steam
)
steamArgs=(
-pipewire-dmabuf
-tenfoot
)
mangoConfig=(
cpu_temp
gpu_temp
ram
vram
)
mangoVars=(
MANGOHUD=1
MANGOHUD_CONFIG="$(IFS=,; echo "''${mangoConfig[*]}")"
)
export "''${mangoVars[@]}"
exec gamescope "''${gamescopeArgs[@]}" -- steam "''${steamArgs[@]}"
'')
]; ];
}; };
} }

View File

@ -30,6 +30,7 @@
"discord" "discord"
"spotify" "spotify"
"webstorm"
"pycharm" "pycharm"
"pycharm-professional" "pycharm-professional"

View File

@ -5,10 +5,10 @@
... ...
}: { }: {
options = { options = {
programming.vscode.enable = lib.mkEnableOption "enable vscode"; vscode.enable = lib.mkEnableOption "enable vscode";
}; };
config = lib.mkIf config.programming.vscode.enable { config = lib.mkIf config.vscode.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
vscode vscode
gopls gopls
@ -37,7 +37,6 @@
"security.workspace.trust.enabled" = false; "security.workspace.trust.enabled" = false;
"terminal.external.linuxExec" = "kitty"; "terminal.external.linuxExec" = "kitty";
"terminal.integrated.stickyScroll.enabled" = true; "terminal.integrated.stickyScroll.enabled" = true;
"terminal.integrated.inheritEnv"= false;
"telemetry.telemetryLevel" = "off"; "telemetry.telemetryLevel" = "off";
"workbench.activityBar.location" = "hidden"; # bottom "workbench.activityBar.location" = "hidden"; # bottom
"workbench.iconTheme" = "material-icon-theme"; "workbench.iconTheme" = "material-icon-theme";

View File

@ -6,10 +6,10 @@
}: }:
{ {
options = { options = {
programming.git.enable = lib.mkEnableOption "enable git"; git.enable = lib.mkEnableOption "enable git";
}; };
config = lib.mkIf config.programming.git.enable { config = lib.mkIf config.git.enable {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "foglar"; userName = "foglar";

View File

@ -17,8 +17,8 @@
config = lib.mkIf config.programming.enable { config = lib.mkIf config.programming.enable {
programming.vscode.enable = lib.mkDefault true; vscode.enable = lib.mkDefault true;
programming.git.enable = lib.mkDefault true; git.enable = lib.mkDefault true;
home.packages = with pkgs; [ home.packages = with pkgs; [
neovim neovim
@ -27,6 +27,7 @@
go go
jq jq
conda conda
jetbrains.webstorm
jetbrains.pycharm-professional jetbrains.pycharm-professional
dotnet-sdk_8 dotnet-sdk_8
nodejs nodejs

View File

@ -15,8 +15,7 @@
config = lib.mkIf config.terminal_tools.enable { config = lib.mkIf config.terminal_tools.enable {
shell.bash.enable = lib.mkDefault true; oh-my-posh.enable = lib.mkDefault true;
shell.bash.oh-my-posh.enable = lib.mkDefault true;
programs = { programs = {
bat.enable = true; bat.enable = true;

View File

@ -5,10 +5,10 @@
... ...
}: { }: {
options = { options = {
shell.oh-my-posh.enable = lib.mkEnableOption "enable oh-my-posh"; oh-my-posh.enable = lib.mkEnableOption "enable oh-my-posh";
}; };
config = lib.mkIf config.shell.oh-my-posh.enable { config = lib.mkIf config.oh-my-posh.enable {
programs.oh-my-posh = { programs.oh-my-posh = {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;

View File

@ -1,47 +0,0 @@
{lib, ...}: {
options = {
shell.enable =
lib.mkEnableOption "enables shell tools";
};
config = lib.mkIf lib.config.shell.enable {
programs.bash = {
enable = true;
enableCompletion = true;
shellAliases = {
vim = "nvim";
ls = "exa --icons";
ll = "exa -alh --icons";
tree = "exa --tree --icons";
open = "rifle";
ip = "ip -c";
s = "kitten ssh";
diff = "diff --color";
cd = "z";
respawn = "clear; pfetch";
l = "eza -lh --icons=auto";
mkdir = "mkdir -p";
cat = "bat --style plain";
rasp = "s foglar@192.168.8.140";
hist = "history | awk '{for (i=2; i<=NF; i++) printf \$i\" \"; print \"\"}' | fzf | wl-copy";
cdx = "zoxide query --interactive";
distrobox-enter = "distrobox-enter --root";
distrobox-create = "distrobox-create --root";
distrobox-list = "distrobox-list --root";
};
bashrcExtra = ''
pfetch'';
};
home.sessionVariables = {
EDITOR = "nvim";
FLAKE = "/home/foglar/dotfiles";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_PICTURES_DIR = "$HOME/Pictures/Screenshots/";
};
};
}

View File

@ -13,7 +13,6 @@
tor.enable = lib.mkDefault true; tor.enable = lib.mkDefault true;
virt-manager.enable = lib.mkDefault true; virt-manager.enable = lib.mkDefault true;
}; };
desktop.steamdeck.enable = lib.mkDefault false;
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
programs.wireshark.enable = true; programs.wireshark.enable = true;
} }

View File

@ -1,7 +1,6 @@
{ {
lib, lib,
config, config,
username,
... ...
}: { }: {
options = { options = {
@ -17,6 +16,6 @@
}; };
}; };
users.users.${username}.extraGroups = [ "docker" ]; users.users.foglar.extraGroups = [ "docker" ];
}; };
} }

View File

@ -1,33 +1,18 @@
{ {
lib, lib,
config, config,
pkgs,
username,
... ...
}: { }: {
options = { options = {
package.steam.enable = lib.mkEnableOption "Enable Steam module"; package.steam.enable = lib.mkEnableOption "Enable Steam module";
desktop.steamdeck.enable = lib.mkEnableOption "Enable Steam desktop integration";
}; };
config = lib.mkMerge [ config = lib.mkIf config.package.steam.enable {
(lib.mkIf config.package.steam.enable {
programs.steam = { programs.steam = {
enable = true; enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
}; };
})
(lib.mkIf config.desktop.steamdeck.enable {
services.getty.autologinUser = "${username}";
environment = {
systemPackages = [pkgs.mangohud];
loginShellInit = ''
[[ "$(tty)" = "/dev/tty1" ]] && gs
'';
}; };
})
];
} }

View File

@ -1,11 +1,5 @@
{...}:
{ {
lib,
config,
...
}: {
options.sys.audio.enable = lib.mkEnableOption "Enable audio support";
config = lib.mkIf config.sys.audio.enable {
# Enable sound with pipewire. # Enable sound with pipewire.
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
@ -21,5 +15,4 @@
# no need to redefine it in your config for now) # no need to redefine it in your config for now)
#media-session.enable = true; #media-session.enable = true;
}; };
};
} }

View File

@ -1,19 +1,30 @@
{ {
lib,
config,
inputs, inputs,
pkgs, pkgs,
... ...
}: { }:
options = { {
sys.desktop.plasma.enable = lib.mkEnableOption "Plasma Desktop";
sys.desktop.gnome.enable = lib.mkEnableOption "GNOME Desktop";
sys.desktop.hyprland.enable = lib.mkEnableOption "Hyprland Desktop";
};
config = lib.mkMerge [
(lib.mkIf config.sys.desktop.plasma.enable {
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
#services.xserver.desktopManager.gnome.enable = true;
#environment.gnome.excludePackages = with pkgs; [
# gnome-tour
# gnome-connections
# epiphany # web browser
# geary # email reader. Up to 24.05. Starting from 24.11 the package name is just geary.
# #evince # document viewer
# gnome-weather
# gnome-contacts
# gnome-maps
# gnome-logs
# gnome-music
# gnome-system-monitor
# gnome-text-editor
# yelp
# totem
# snapshot
# seahorse
#];
environment.plasma6.excludePackages = with pkgs.kdePackages; [ environment.plasma6.excludePackages = with pkgs.kdePackages; [
ark ark
@ -27,38 +38,11 @@
krdp krdp
khelpcenter khelpcenter
]; ];
})
(lib.mkIf config.sys.desktop.gnome.enable {
services.xserver.desktopManager.gnome.enable = true;
environment.gnome.excludePackages = with pkgs; [
gnome-tour
gnome-connections
epiphany # web browser
geary # email reader. Up to 24.05. Starting from 24.11 the package name is just geary.
#evince # document viewer
gnome-weather
gnome-contacts
gnome-maps
gnome-logs
gnome-music
gnome-system-monitor
gnome-text-editor
yelp
totem
snapshot
seahorse
];
})
(lib.mkIf config.sys.desktop.hyprland.enable {
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
package = inputs.hyprland.packages."${pkgs.system}".hyprland; package = inputs.hyprland.packages."${pkgs.system}".hyprland;
portalPackage = pkgs.xdg-desktop-portal-hyprland; portalPackage = pkgs.xdg-desktop-portal-hyprland;
}; };
})
];
} }

View File

@ -1,19 +1,8 @@
{ {pkgs, ...}: {
config,
lib,
pkgs,
...
}: {
options = {
sys.fonts.packages = pkgs.lib.mkEnableOption "Install fonts";
};
config = lib.mkIf config.sys.fonts.packages {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-emoji
(nerdfonts.override {fonts = ["JetBrainsMono"];}) (nerdfonts.override {fonts = ["JetBrainsMono"];})
monaspace monaspace
]; ];
};
} }

View File

@ -1,15 +1,4 @@
{ {...}: {
lib,
config,
...
}: {
options = {
sys.locales = {
enable = lib.mkEnableOption "Enable locales configuration";
};
};
config = lib.mkIf config.sys.locales.enable {
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Prague"; time.timeZone = "Europe/Prague";
# Select internationalisation properties. # Select internationalisation properties.
@ -31,5 +20,4 @@
xkb.layout = "us,cz"; xkb.layout = "us,cz";
xkb.options = "grp:win_space_toggle"; xkb.options = "grp:win_space_toggle";
}; };
};
} }

View File

@ -1,18 +1,5 @@
{ {...}: {
lib, networking.hostName = "laptop"; # Define your hostname.
config,
hostname,
username,
...
}: {
options = {
sys.network.enable = lib.mkEnableOption "Enable networking";
sys.bluetooth.enable = lib.mkEnableOption "Enable Bluetooth support";
};
config = lib.mkMerge [
(lib.mkIf config.sys.network.enable {
networking.hostName = "${hostname}"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary
@ -21,14 +8,9 @@
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
users.users.${username}.extraGroups = ["networkmanager"];
})
(
lib.mkIf config.sys.bluetooth.enable {
hardware.bluetooth.enable = true; # enables support for Bluetooth hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
services.blueman.enable = true; services.blueman.enable = true;
}
) users.users.foglar.extraGroups = [ "networkmanager" ];
];
} }

View File

@ -1,13 +1,4 @@
{ {config, ...}: {
lib,
config,
...
}: {
options = {
sys.nvidia.enable = lib.mkEnableOption "Enable Nvidia graphics support";
};
config = lib.mkIf config.sys.nvidia.enable {
hardware = { hardware = {
graphics.enable = true; graphics.enable = true;
}; };
@ -51,5 +42,4 @@
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.stable;
}; };
};
} }

View File

@ -1,15 +1,5 @@
{ {pkgs, ...}: {
lib, # Printing
config,
pkgs,
username,
...
}: {
options = {
sys.printing.enable = lib.mkEnableOption "Enable printing support";
};
config = lib.mkIf config.sys.printing.enable {
services.printing.enable = true; services.printing.enable = true;
services.printing.drivers = with pkgs; [gutenprint hplip splix]; services.printing.drivers = with pkgs; [gutenprint hplip splix];
hardware.printers = { hardware.printers = {
@ -32,6 +22,5 @@
services.ipp-usb.enable = true; services.ipp-usb.enable = true;
hardware.sane.extraBackends = [pkgs.hplipWithPlugin]; hardware.sane.extraBackends = [pkgs.hplipWithPlugin];
users.users.${username}.extraGroups = ["lp" "scanner"]; users.users.foglar.extraGroups = ["lp" "scanner"];
};
} }

View File

@ -1,14 +1,10 @@
{ {
lib,
config,
pkgs, pkgs,
lib,
... ...
}: { }:
options = { {
sys.sddm.enable = lib.mkEnableOption "Enable SDDM login";
};
config = lib.mkIf config.sys.sddm.enable {
services.displayManager = { services.displayManager = {
defaultSession = "hyprland"; defaultSession = "hyprland";
sddm = { sddm = {
@ -29,5 +25,4 @@
}; };
}) })
]; ];
};
} }

View File

@ -1,14 +1,8 @@
{ {
lib,
config,
pkgs, pkgs,
... ...
}: { }:
options = { {
sys.style.enable = lib.mkEnableOption "Enable the Stylix theme manager.";
};
config = lib.mkIf config.sys.style.enable {
stylix = { stylix = {
enable = true; enable = true;
image = ../../../config/backgrounds/aurora_borealis.png; image = ../../../config/backgrounds/aurora_borealis.png;
@ -39,5 +33,4 @@
}; };
}; };
}; };
};
} }

View File

@ -1,4 +1,5 @@
{lib, ...}: { {...}:
{
imports = [ imports = [
./sys/audio.nix ./sys/audio.nix
./sys/desktops.nix ./sys/desktops.nix
@ -10,21 +11,4 @@
./sys/sddm.nix ./sys/sddm.nix
./sys/style.nix ./sys/style.nix
]; ];
sys = {
audio.enable = lib.mkDefault true;
desktop = {
plasma.enable = lib.mkDefault true;
gnome.enable = lib.mkDefault false;
hyprland.enable = lib.mkDefault true;
};
fonts.packages = lib.mkDefault true;
locales.enable = lib.mkDefault true;
network.enable = lib.mkDefault true;
bluetooth.enable = lib.mkDefault true;
nvidia.enable = lib.mkDefault true;
printing.enable = lib.mkDefault true;
sddm.enable = lib.mkDefault true;
style.enable = lib.mkDefault true;
};
} }