diff --git a/modules/features/stylix/serenity-dark.nix b/modules/features/stylix/serenity-dark.nix new file mode 100644 index 0000000..78bae4c --- /dev/null +++ b/modules/features/stylix/serenity-dark.nix @@ -0,0 +1,134 @@ +{ self, inputs, ... }: + +{ + + # autogenerated theme + flake.nixosModules.theme-serenity = + { + config, + lib, + pkgs, + ... + }: + + let + + # set wallpaper here + wallpaper = ../../../assets/media/wallpapers/mimaKirigoe.jpg; + + in + + { + + imports = [ + + # for home manager functionality + inputs.home-manager.nixosModules.home-manager + + # for stylix functionality + inputs.stylix.nixosModules.stylix + + ]; + + stylix = { + + # enables automatic themeing with catpuccin mocha + enable = true; + image = "${wallpaper}"; + #polarity = "dark"; + base16Scheme = { + # theme info + system = "base16"; + name = "serenity-dark"; + author = "Serenity (https://codeberg.org/serenity-F/SerenityOS)"; + variant = "dark"; + + palette = { + base00 = "000000"; + base01 = "f6668e"; + base02 = "73daca"; + base03 = "cfb264"; + base04 = "7a82f7"; + base05 = "a778f8"; + base06 = "7dd8ff"; + base07 = "e4e5e7"; + base08 = "515878"; + base09 = "f7869e"; + base0A = "83eada"; + base0B = "f0bf78"; + base0C = "8ab2f7"; + base0D = "a988f8"; + base0E = "8ddfff"; + base0F = "f4f5f7"; + }; + }; + + # cursor settings + cursor = { + package = with pkgs; bibata-cursors; + name = "Bibata-Modern-Classic"; + size = 25; + }; + + # font settings + fonts = { + + # point sizes for various ui elements + sizes = { + terminal = 12; + desktop = 12; + popups = 12; + applications = 12; + }; + + # emoji font to use + emoji = { + package = with pkgs; noto-fonts-color-emoji; + name = "Noto Color Emoji"; + }; + + # text fonts to use + monospace = { + package = with pkgs; spleen; + name = "Spleen 32x64"; + }; + serif = config.stylix.fonts.monospace; + sansSerif = config.stylix.fonts.monospace; + + }; + }; + + home-manager.users.serenity = { + + # copies avatar from flake into home + home.file."Avatar" = { + source = ../../../assets/media/avatar.png; + target = "/home/serenity/Pictures/Avatars/"; + recursive = true; + }; + + # copies wallpaper from flake into home + home.file."Wallpapers" = { + source = ../../../assets/media/wallpapers; + target = "/home/serenity/Pictures/Wallpapers"; + recursive = true; + }; + + stylix = { + + # skews theme towards dark mode + polarity = "dark"; + + # opacity settings + # 1.0 is opaque, 0.0 is transparent + opacity.applications = 0.8; + + # application icons to use + #icons = { }; + + }; + + }; + + }; +} diff --git a/modules/users/serenity.nix b/modules/users/serenity.nix index 9a24de0..03a4518 100644 --- a/modules/users/serenity.nix +++ b/modules/users/serenity.nix @@ -15,7 +15,7 @@ inputs.home-manager.nixosModules.home-manager # select user theme - self.nixosModules.theme-onedarker + self.nixosModules.theme-serenity ];