feat(ooksphone) add colorscheme

This commit is contained in:
ooks-io 2024-04-20 21:41:28 +12:00
parent c25f160e81
commit 1bf362e4a0
5 changed files with 82 additions and 9 deletions

View file

@ -7,10 +7,12 @@
{
imports = [
./minimal
./phone
];
options.theme = {
minimal.enable = lib.mkEnableOption "enable minimal theme";
phone.enable = lib.mkEnableOption "Enable phone theme";
};
# config = {

View file

@ -0,0 +1,28 @@
{ lib, config, pkgs, inputs, ... }:
let
cfg = config.theme.phone;
inherit (inputs.nix-colors) colorSchemes;
in
{
imports = [ inputs.nix-colors.homeManagerModule ];
config = lib.mkIf cfg.enable {
colorscheme = colorSchemes.gruvbox-material-dark-soft;
home.file.".colorscheme".text = config.colorscheme.slug;
home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}";
homeModules.theme = {
fonts.enable = true;
fonts.regular = {
family = "Fira Sans";
package = pkgs.fira;
};
fonts.monospace = {
family = "JetBrainsMono Nerd Font";
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
};
};
};
}

View file

@ -1,16 +1,17 @@
{ inputs, outputs, config, ... }:
{ ... }:
{
imports = [
../../../modules
../../../profiles
];
theme.phone.enable = true;
homeModules = {
console.editor.helix.enable = true;
};
home.sessionVariables.HN = "ooksphone";
home.stateVersion = "23.11";
}