added template module file and added beginnings of theme derivations

This commit is contained in:
serenity-F 2024-12-24 17:38:30 +10:00
parent ee897de22a
commit 9a69550389
3 changed files with 50 additions and 5 deletions

View file

@ -1,6 +1,12 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ ## Base desktop theme
let
serenityos-base = import ./serenityos-base.nix { inherit pkgs; };
line-icons = import ./line-icons.nix { inherit pkgs; };
in {
imports = [ imports = [
@ -22,9 +28,7 @@
]; ];
xdg = { xdg = {
mime = { mime = { enable = true; };
enable = true;
};
mimeApps = { mimeApps = {
enable = true; enable = true;
#associations.added = associations; #associations.added = associations;
@ -78,14 +82,18 @@
theme = lib.mkForce { theme = lib.mkForce {
name = "Colloid-Dark"; name = "Colloid-Dark";
package = pkgs.colloid-gtk-theme; package = pkgs.colloid-gtk-theme;
#name = "serenityos-base";
#package = pkgs.serenityos-base;
}; };
font = { font = {
name = "${config.theme.font}"; name = "${config.theme.font}";
size = 10; size = 10;
}; };
iconTheme = { iconTheme = {
package = pkgs.flat-remix-icon-theme;
name = "Flat-Remix-Grey-Darkest"; name = "Flat-Remix-Grey-Darkest";
package = pkgs.flat-remiox-icon-theme;
#name = "line-icons";
#package = pkgs.line-icons;
}; };
gtk3.extraConfig = { gtk-application-prefer-dark-theme = 1; }; gtk3.extraConfig = { gtk-application-prefer-dark-theme = 1; };
gtk4.extraConfig = { gtk-application-prefer-dark-theme = 1; }; gtk4.extraConfig = { gtk-application-prefer-dark-theme = 1; };
@ -103,6 +111,11 @@
home = { home = {
file = {
".icons/bibata".source =
"${pkgs.bibata-cursors}/share/icons/Bibata-Modern-Classic";
};
pointerCursor = { pointerCursor = {
gtk.enable = true; gtk.enable = true;
package = pkgs.bibata-cursors; package = pkgs.bibata-cursors;

View file

@ -0,0 +1,16 @@
{ pkgs }:
pkgs.stdenv.mkDerivation {
name = "line-icons";
src = pkgs.fetchurl {
url = "";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
dontUnpack = true;
installPhase = ''
mkdir -p $out
${pkgs.unzip}/bin/unzip $src -d $out/
'';
}

View file

@ -0,0 +1,16 @@
{ pkgs }:
pkgs.stdenv.mkDerivation {
name = "serenityos-base";
src = pkgs.fetchurl {
url = "";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
dontUnpack = true;
installPhase = ''
mkdir -p $out
${pkgs.unzip}/bin/unzip $src -d $out/
'';
}