feat(ooksphone) add colorscheme
This commit is contained in:
parent
c25f160e81
commit
1bf362e4a0
5 changed files with 82 additions and 9 deletions
|
|
@ -7,10 +7,12 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./minimal
|
./minimal
|
||||||
|
./phone
|
||||||
];
|
];
|
||||||
|
|
||||||
options.theme = {
|
options.theme = {
|
||||||
minimal.enable = lib.mkEnableOption "enable minimal theme";
|
minimal.enable = lib.mkEnableOption "enable minimal theme";
|
||||||
|
phone.enable = lib.mkEnableOption "Enable phone theme";
|
||||||
};
|
};
|
||||||
|
|
||||||
# config = {
|
# config = {
|
||||||
|
|
|
||||||
28
home/profile/themes/phone/default.nix
Normal file
28
home/profile/themes/phone/default.nix
Normal 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" ]; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,16 +1,17 @@
|
||||||
{ inputs, outputs, config, ... }:
|
{ ... }:
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../../modules
|
../../../profiles
|
||||||
];
|
];
|
||||||
|
|
||||||
|
theme.phone.enable = true;
|
||||||
|
|
||||||
homeModules = {
|
homeModules = {
|
||||||
console.editor.helix.enable = true;
|
console.editor.helix.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables.HN = "ooksphone";
|
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ config, lib, pkgs, inputs, outputs, ... }:
|
{ pkgs, inputs, outputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Simply install just the packages
|
imports = [ ./theme.nix ];
|
||||||
|
|
||||||
environment.packages = with pkgs; [
|
environment.packages = with pkgs; [
|
||||||
# User-facing stuff that you really really want to have
|
helix
|
||||||
helix # or some other editor, e.g. nano or neovim
|
|
||||||
git
|
git
|
||||||
killall
|
killall
|
||||||
hostname
|
hostname
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
shell = "${pkgs.fish}/bin/fish";
|
shell = "${pkgs.fish}/bin/fish";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure home-manager
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
backupFileExtension = "hm-bak";
|
backupFileExtension = "hm-bak";
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|
|
||||||
43
system/hosts/ooksphone/theme.nix
Normal file
43
system/hosts/ooksphone/theme.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
fontPackage = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
|
||||||
|
fontPath = "/share/fonts/truetype/NerdFonts/JetBrainsMonoNerdFontMono-Regular.ttf";
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
terminal = {
|
||||||
|
font = fontPackage + fontPath;
|
||||||
|
|
||||||
|
# Gruvbox Material Dark Soft
|
||||||
|
colors = {
|
||||||
|
background = "#32302F";
|
||||||
|
foreground = "#DDC7A1";
|
||||||
|
cursor = "#DDC7A1";
|
||||||
|
|
||||||
|
color0 = "#32302F"; # Black
|
||||||
|
color8 = "#7C6F64"; # Bright Black
|
||||||
|
|
||||||
|
color1 = "#EA6962"; # Red
|
||||||
|
color9 = "#EA6962"; # Bright Red
|
||||||
|
|
||||||
|
color2 = "#A9B665"; # Green
|
||||||
|
color10 = "#A9B665"; # Bright Green
|
||||||
|
|
||||||
|
color3 = "#D8A657"; # Yellow
|
||||||
|
color11 = "#D8A657"; # Bright Yellow
|
||||||
|
|
||||||
|
color4 = "#7DAEA3"; # Blue
|
||||||
|
color12 = "#7DAEA3"; # Bright Blue
|
||||||
|
|
||||||
|
color5 = "#D3869B"; # Magenta
|
||||||
|
color13 = "#D3869B"; # Bright Magenta
|
||||||
|
|
||||||
|
color6 = "#89B482"; # Cyan
|
||||||
|
color14 = "#89B482"; # Bright Cyan
|
||||||
|
|
||||||
|
color7 = "#DDC7A1"; # White
|
||||||
|
color15 = "#FBF1C7"; # Bright White
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue