nixos: initial bitmap font support

This commit is contained in:
ooks-io 2024-12-08 23:04:16 +11:00
parent 3cb560dfe1
commit 3f11846977
10 changed files with 118 additions and 22 deletions

View file

@ -4,7 +4,7 @@
in {
options.ooknet.workstation = {
theme = mkOption {
type = nullOr (enum ["minimal"]);
type = nullOr (enum ["minimal" "hozen"]);
default = null;
};
profiles = mkOption {

View file

@ -1,5 +1,6 @@
{
imports = [
./minimal.nix
./hozen.nix
];
}

View file

@ -0,0 +1,42 @@
{
config,
lib,
pkgs,
hozen,
...
}: let
inherit (lib) mkIf;
inherit (config.ooknet.workstation) theme;
generatedWallpaper = import ./generated-wallpaper.nix {inherit hozen config pkgs;} {};
in {
config = mkIf (theme == "hozen") {
ooknet.appearance = {
fonts = {
monospace = {
family = "CozetteHiDpi";
package = pkgs.cozette;
size = 22;
fallback = {
family = "JetBrainsMono Nerd Font";
package = pkgs.nerfonts.override {fonts = ["JetBrainsMono"];};
size = 18;
};
};
regular = {
family = "Fira Sans";
package = pkgs.fira;
};
};
cursor = {
name = "Bibata-Modern-Ice";
package = pkgs.bibata-cursors;
size = 22;
};
wallpaper = {
path = "${generatedWallpaper}";
};
};
};
}