From 0008fb79b9faac6e1f96379241b6556f02866143 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Tue, 29 Oct 2024 21:58:59 +0100 Subject: use local theme file --- flake.nix | 5 ----- modules/nixos/sils/default.nix | 2 +- modules/nixos/sils/theming.nix | 17 ----------------- modules/nixos/sils/theming/default.nix | 17 +++++++++++++++++ modules/nixos/sils/theming/tokyo-night-dark.yaml | 18 ++++++++++++++++++ 5 files changed, 36 insertions(+), 23 deletions(-) delete mode 100644 modules/nixos/sils/theming.nix create mode 100644 modules/nixos/sils/theming/default.nix create mode 100644 modules/nixos/sils/theming/tokyo-night-dark.yaml diff --git a/flake.nix b/flake.nix index 0a6793d..1f49f16 100644 --- a/flake.nix +++ b/flake.nix @@ -98,11 +98,6 @@ }; }; - base16-tokyo-night-scheme = { - url = "git+https://git.michaelball.name/gid/base16-tokyo-night-scheme.git"; - flake = false; - }; - systems = { url = "git+https://codeberg.org/sils/systems"; # specify systems to evaluate }; diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index 922d706..65d2a19 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -15,6 +15,6 @@ ./roles.nix ./sudo.nix ./sway.nix - ./theming.nix + ./theming ]; } diff --git a/modules/nixos/sils/theming.nix b/modules/nixos/sils/theming.nix deleted file mode 100644 index 5e7d197..0000000 --- a/modules/nixos/sils/theming.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ - config, - lib, - base16-tokyo-night-scheme, - ... -}: let - cfg = config.sils.theming; -in { - options.sils.theming.enable = lib.mkEnableOption "theming"; - config = lib.mkIf cfg.enable { - stylix = { - base16Scheme = "${base16-tokyo-night-scheme}/tokyo-night-dark.yaml"; - image = ../../../files/wallpaper.jpg; - polarity = "dark"; - }; - }; -} diff --git a/modules/nixos/sils/theming/default.nix b/modules/nixos/sils/theming/default.nix new file mode 100644 index 0000000..e8cf7bf --- /dev/null +++ b/modules/nixos/sils/theming/default.nix @@ -0,0 +1,17 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.theming; +in { + options.sils.theming.enable = lib.mkEnableOption "theming"; + config = lib.mkIf cfg.enable { + stylix = { + enable = true; + base16Scheme = ./tokyo-night-dark.yaml; + image = ../../../../files/wallpaper.jpg; + polarity = "dark"; + }; + }; +} diff --git a/modules/nixos/sils/theming/tokyo-night-dark.yaml b/modules/nixos/sils/theming/tokyo-night-dark.yaml new file mode 100644 index 0000000..ec29944 --- /dev/null +++ b/modules/nixos/sils/theming/tokyo-night-dark.yaml @@ -0,0 +1,18 @@ +scheme: "Tokyo Night Dark" +author: "Michaël Ball" +base00: "1A1B26" +base01: "16161E" +base02: "2F3549" +base03: "444B6A" +base04: "787C99" +base05: "A9B1D6" +base06: "CBCCD1" +base07: "D5D6DB" +base08: "C0CAF5" +base09: "A9B1D6" +base0A: "0DB9D7" +base0B: "9ECE6A" +base0C: "B4F9F8" +base0D: "2AC3DE" +base0E: "BB9AF7" +base0F: "F7768E" -- cgit 1.4.1