From cbcc4d8df66dde8263441a90d9d31c6583ba03fe Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Tue, 31 Dec 2024 18:22:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B0=20Styled=20SDDM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Catppuccin theme for SDDM - Moved SDDM config to sddm.nix - Removed unused toml file --- configuration.nix | 7 +------ sddm.nix | 21 +++++++++++++++++++++ terminal/mocha.toml | 27 --------------------------- 3 files changed, 22 insertions(+), 33 deletions(-) create mode 100644 sddm.nix delete mode 100644 terminal/mocha.toml diff --git a/configuration.nix b/configuration.nix index 38fdac5..ca9d1ca 100644 --- a/configuration.nix +++ b/configuration.nix @@ -18,6 +18,7 @@ ./development.nix ./security.nix ./locale.nix + ./sddm.nix ]; # Bootloader. @@ -105,12 +106,6 @@ # services.openssh.enable = true; services = { - displayManager.sddm = { - enable = true; - autoNumlock = true; # Enable numlock at login # TODO doesn't work - wayland.enable = true; - }; - flatpak.enable = true; gnome.gnome-keyring.enable = true; diff --git a/sddm.nix b/sddm.nix new file mode 100644 index 0000000..2420052 --- /dev/null +++ b/sddm.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + (catppuccin-sddm.override { + flavor = "mocha"; + font = "Noto Sans"; + fontSize = "9"; + background = "${./catppuccin.png}"; + loginBackground = true; + }) + ]; + + services.displayManager.sddm = { + enable = true; + theme = "catppuccin-mocha"; + autoNumlock = true; # Enable numlock at login # TODO doesn't work + wayland.enable = true; + package = pkgs.kdePackages.sddm; + }; +} diff --git a/terminal/mocha.toml b/terminal/mocha.toml deleted file mode 100644 index 511149f..0000000 --- a/terminal/mocha.toml +++ /dev/null @@ -1,27 +0,0 @@ -[palettes.catppuccin_mocha] -rosewater = "#f5e0dc" -flamingo = "#f2cdcd" -pink = "#f5c2e7" -mauve = "#cba6f7" -red = "#f38ba8" -maroon = "#eba0ac" -peach = "#fab387" -yellow = "#f9e2af" -green = "#a6e3a1" -teal = "#94e2d5" -sky = "#89dceb" -sapphire = "#74c7ec" -blue = "#89b4fa" -lavender = "#b4befe" -text = "#cdd6f4" -subtext1 = "#bac2de" -subtext0 = "#a6adc8" -overlay2 = "#9399b2" -overlay1 = "#7f849c" -overlay0 = "#6c7086" -surface2 = "#585b70" -surface1 = "#45475a" -surface0 = "#313244" -base = "#1e1e2e" -mantle = "#181825" -crust = "#11111b"