started to configure colors

This commit is contained in:
Rouven Seifert 2023-01-09 13:00:09 +01:00
parent bc562bc58d
commit 3a2d061875
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 90 additions and 58 deletions

View file

@ -15,6 +15,22 @@
"type": "github" "type": "github"
} }
}, },
"base16-schemes": {
"flake": false,
"locked": {
"lastModified": 1665690101,
"narHash": "sha256-J2ZvNaVFkqaTXzYO5L+jyRORfIOavFPKvWItP6UTMKs=",
"owner": "tinted-theming",
"repo": "base16-schemes",
"rev": "a3dc916cf90471a422c0bfe1bb4b1bdd12185ced",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-schemes",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -23,11 +39,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1673089714, "lastModified": 1673211936,
"narHash": "sha256-D58SGNOVe+s7r2iewnCA8q68gyrfQcOnD1TdJo1wFLY=", "narHash": "sha256-ba7jhl5BhLtpSooDHllgC0Y29vc0AiYWWsxQVtjlc7o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9e565f0d9d41c19a94f55af205c328ec5177fc0a", "rev": "684bdb386cec7d4f16e0da9f694c8ab50ad2cf2a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -36,13 +52,32 @@
"type": "github" "type": "github"
} }
}, },
"nix-colors": {
"inputs": {
"base16-schemes": "base16-schemes",
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1672236234,
"narHash": "sha256-dpBIuxcDEvJbLD8fTipE0A0JbQD1lZB94zYFPoh01PI=",
"owner": "Misterio77",
"repo": "nix-colors",
"rev": "7e459f1d88ac54fc2f4b308adb5064863006e4b1",
"type": "github"
},
"original": {
"owner": "Misterio77",
"repo": "nix-colors",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1672968032, "lastModified": 1673163619,
"narHash": "sha256-26Jns3GmHem44a06UN5Rj/KOD9qNJThyQrom02Ijur8=", "narHash": "sha256-B33PFBL64ZgTWgMnhFL3jgheAN/DjHPsZ1Ih3z0VE5I=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2dea8991d89b9f1e78d874945f78ca15f6954289", "rev": "8c54d842d9544361aac5f5b212ba04e4089e8efe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -52,6 +87,21 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib": {
"locked": {
"lastModified": 1655599917,
"narHash": "sha256-kjZbt5WdTrnjMxL79okg9TCoRUdADG50x/TWozbyTsE=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "5fb55578aa2f1a502d636a8ac71aece57cb730bb",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1673100377, "lastModified": 1673100377,
@ -72,6 +122,7 @@
"inputs": { "inputs": {
"awesome-config": "awesome-config", "awesome-config": "awesome-config",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-colors": "nix-colors",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"sops-nix": "sops-nix" "sops-nix": "sops-nix"
} }

View file

@ -7,9 +7,10 @@
sops-nix.url = github:Mic92/sops-nix; sops-nix.url = github:Mic92/sops-nix;
sops-nix.inputs.nixpkgs.follows = "nixpkgs"; sops-nix.inputs.nixpkgs.follows = "nixpkgs";
awesome-config.url=github:therealr5/awesome-config; awesome-config.url=github:therealr5/awesome-config;
nix-colors.url=github:Misterio77/nix-colors;
}; };
outputs = { self, nixpkgs, home-manager, sops-nix, awesome-config }: { outputs = { self, nixpkgs, home-manager, sops-nix, awesome-config, nix-colors }: {
nixosConfigurations = { nixosConfigurations = {
thinkpad = nixpkgs.lib.nixosSystem { thinkpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
@ -20,7 +21,11 @@
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
{ {
home-manager.users.rouven = { home-manager.users.rouven = {
imports = [ awesome-config.nixosModules.awesome ]; imports = [
awesome-config.nixosModules.awesome
nix-colors.homeManagerModule
];
config.colorScheme = nix-colors.colorSchemes.dracula;
}; };
} }
]; ];

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, nix-colors, ... }:
{ {
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
@ -14,8 +14,8 @@
colors = { colors = {
primary = { primary = {
background = "#282a36"; background = "#${config.colorScheme.colors.base00}";
foreground = "#f8f8f2"; foreground = "#${config.colorScheme.colors.base05}";
}; };
cursor = { cursor = {
text = "CellBackground"; text = "CellBackground";
@ -25,57 +25,33 @@
text = "CellBackground"; text = "CellBackground";
cursor = "CellForeground"; cursor = "CellForeground";
}; };
search = { #search = {
matches = { #matches = {
foreground = "#44475a"; #foreground = "#44475a";
background = "#50fa7b"; #background = "#50fa7b";
}; #};
focused_match = { #focused_match = {
foreground = "#44475a"; #foreground = "#44475a";
background = "#ffb86c"; #background = "#ffb86c";
}; #};
footer_bar = { #footer_bar = {
background = "#282a36"; #background = "#282a36";
foreground = "#f8f8f2"; #foreground = "#f8f8f2";
}; #};
}; #};
line_indicator = {
foreground = null;
background = null;
};
selection = { selection = {
text = "CellForeground"; text = "CellForeground";
background = "#44475a"; background = "#${config.colorScheme.colors.base03}";
}; };
normal = { normal = {
black = "#21222c"; black = "#${config.colorScheme.colors.base01}";
red = "#ff5555"; red = "#${config.colorScheme.colors.base08}";
green = "#50fa7b"; green = "#${config.colorScheme.colors.base0A}";
yellow = "#f1fa8c"; yellow = "#${config.colorScheme.colors.base0B}";
blue = "#bd93f9"; blue = "#${config.colorScheme.colors.base0D}";
magenta = "#ff79c6"; magenta = "#${config.colorScheme.colors.base0E}";
cyan = "#8be9fd"; cyan = "#${config.colorScheme.colors.base0C}";
white = "#bfbfbf"; white = "#${config.colorScheme.colors.base05}";
};
bright = {
black = "#4d4d4d";
red = "#ff6e67";
green = "#5af78e";
yellow = "#f4f99d";
blue = "#caa9fa";
magenta = "#ff92d0";
cyan = "#9aedfe";
white = "#e6e6e6";
};
dim = {
black = "#14151b";
red = "#ff2222";
green = "#1ef956";
yellow = "#ebf85b";
blue = "#4d5b86";
magenta = "#ff46b0";
cyan = "#59dffc";
white = "#e6e6d1";
}; };
}; };
}; };