📦 Created config files with common code

- Created common.nix for various configs
- Created theme.nix for theme related configs
- Moved some code to more logical files
- Moved some standalone files into nix multiline strings, in order to
  inject data
This commit is contained in:
2025-01-07 20:18:30 +01:00
parent e223999ae1
commit 1133e01eff
31 changed files with 650 additions and 675 deletions

View File

@ -1,10 +1,13 @@
{ pkgs, ... }:
let
theme = import ../theme.nix;
flavor = theme.flavor;
in
{
environment.systemPackages = with pkgs; [
(catppuccin-sddm.override {
flavor = "mocha";
font = "Noto Sans";
flavor = flavor;
font = "JetBrainsMono";
fontSize = "9";
background = "${../catppuccin_high.png}";
loginBackground = true;
@ -13,7 +16,7 @@
services.displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha";
theme = "catppuccin-${flavor}";
autoNumlock = true; # Enable numlock at login # TODO doesn't work
wayland.enable = true;
package = pkgs.kdePackages.sddm;