Compare commits
3 Commits
8415b856a9
...
f398775552
Author | SHA1 | Date |
---|---|---|
Riley Apeldoorn | f398775552 | |
Riley Apeldoorn | b706942195 | |
Riley Apeldoorn | 60cd61444e |
200
colors.nix
200
colors.nix
|
@ -2,120 +2,120 @@
|
||||||
|
|
||||||
let inherit (builtins) mapAttrs map; in rec {
|
let inherit (builtins) mapAttrs map; in rec {
|
||||||
|
|
||||||
# A simple dark theme with vibrant colors.
|
# A simple dark theme with vibrant colors.
|
||||||
"dark" = rec {
|
"dark" = rec {
|
||||||
|
|
||||||
# Determines the background for applications such as the terminal,
|
# Determines the background for applications such as the terminal,
|
||||||
# status bars or WM elements.
|
# status bars or WM elements.
|
||||||
background = {
|
background = {
|
||||||
|
|
||||||
primary = "1a1a1a";
|
|
||||||
|
|
||||||
normal = "212121";
|
primary = "1a1a1a";
|
||||||
slight = "535353";
|
|
||||||
|
|
||||||
};
|
normal = "212121";
|
||||||
|
slight = "535353";
|
||||||
|
|
||||||
# Determines the foreground color of text.
|
};
|
||||||
foreground = {
|
|
||||||
|
|
||||||
primary = "fafafa";
|
|
||||||
|
|
||||||
normal = "efefef";
|
|
||||||
slight = "bdbdbd";
|
|
||||||
|
|
||||||
};
|
# Determines the foreground color of text.
|
||||||
|
foreground = {
|
||||||
|
|
||||||
grayscales = [
|
primary = "fafafa";
|
||||||
"121212"
|
|
||||||
background.primary
|
|
||||||
background.normal
|
|
||||||
"2a2a2a"
|
|
||||||
"323232"
|
|
||||||
"424242"
|
|
||||||
"4a4a4a"
|
|
||||||
background.slight
|
|
||||||
"646464"
|
|
||||||
"6a6a6a"
|
|
||||||
"757575"
|
|
||||||
"7a7a7a"
|
|
||||||
"868686"
|
|
||||||
"8a8a8a"
|
|
||||||
"979797"
|
|
||||||
"9a9a9a"
|
|
||||||
"a8a8a8"
|
|
||||||
"aaaaaa"
|
|
||||||
"b9b9b9"
|
|
||||||
foreground.slight
|
|
||||||
"cacaca"
|
|
||||||
"dadada"
|
|
||||||
"eaeaea"
|
|
||||||
foreground.normal
|
|
||||||
foreground.primary
|
|
||||||
];
|
|
||||||
|
|
||||||
red = {
|
normal = "efefef";
|
||||||
normal = "ff6161";
|
slight = "bdbdbd";
|
||||||
bright = "ff3b3b";
|
|
||||||
pastel = "ff7588";
|
|
||||||
};
|
|
||||||
|
|
||||||
green = {
|
};
|
||||||
normal = "8aff80";
|
|
||||||
bright = "29f26c";
|
|
||||||
pastel = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
blue = {
|
grayscales = [
|
||||||
normal = "30c7ff";
|
"121212"
|
||||||
bright = "00e1ff";
|
background.primary
|
||||||
pastel = "";
|
background.normal
|
||||||
};
|
"2a2a2a"
|
||||||
|
"323232"
|
||||||
|
"424242"
|
||||||
|
"4a4a4a"
|
||||||
|
background.slight
|
||||||
|
"646464"
|
||||||
|
"6a6a6a"
|
||||||
|
"757575"
|
||||||
|
"7a7a7a"
|
||||||
|
"868686"
|
||||||
|
"8a8a8a"
|
||||||
|
"979797"
|
||||||
|
"9a9a9a"
|
||||||
|
"a8a8a8"
|
||||||
|
"aaaaaa"
|
||||||
|
"b9b9b9"
|
||||||
|
foreground.slight
|
||||||
|
"cacaca"
|
||||||
|
"dadada"
|
||||||
|
"eaeaea"
|
||||||
|
foreground.normal
|
||||||
|
foreground.primary
|
||||||
|
];
|
||||||
|
|
||||||
yellow = {
|
red = {
|
||||||
normal = "fcfc51";
|
normal = "ff6161";
|
||||||
bright = "fcfc51";
|
bright = "ff3b3b";
|
||||||
pastel = "";
|
pastel = "ff7588";
|
||||||
};
|
};
|
||||||
|
|
||||||
purple = {
|
|
||||||
normal = "b58aff";
|
|
||||||
bright = "c97ffa";
|
|
||||||
pastel = "d9b5ff";
|
|
||||||
};
|
|
||||||
|
|
||||||
cyan = {
|
|
||||||
normal = "29f8ff";
|
|
||||||
bright = "26e3fc";
|
|
||||||
pastel = "63e8ff";
|
|
||||||
};
|
|
||||||
|
|
||||||
pink = {
|
green = {
|
||||||
normal = "ee8fff";
|
normal = "8aff80";
|
||||||
bright = "ff63e5";
|
bright = "29f26c";
|
||||||
pastel = "ff96e3";
|
pastel = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
orange = {
|
blue = {
|
||||||
normal = "ff8c26";
|
normal = "30c7ff";
|
||||||
bright = "fca151";
|
bright = "00e1ff";
|
||||||
pastel = "";
|
pastel = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
misc = {
|
yellow = {
|
||||||
blueGrey = "9ccdd9";
|
normal = "fcfc51";
|
||||||
teal = "00ccad";
|
bright = "fcfc51";
|
||||||
lime = "d5ff63";
|
pastel = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
hex = mapAttrs (name: value:
|
purple = {
|
||||||
if name == "grayscales"
|
normal = "b58aff";
|
||||||
then map (v: "#" + v) value
|
bright = "c97ffa";
|
||||||
else if name == "hex"
|
pastel = "d9b5ff";
|
||||||
then value
|
};
|
||||||
else mapAttrs (n: v: "#" + v) value
|
|
||||||
) (dark);
|
|
||||||
|
|
||||||
};
|
cyan = {
|
||||||
|
normal = "29f8ff";
|
||||||
|
bright = "26e3fc";
|
||||||
|
pastel = "63e8ff";
|
||||||
|
};
|
||||||
|
|
||||||
|
pink = {
|
||||||
|
normal = "ee8fff";
|
||||||
|
bright = "ff63e5";
|
||||||
|
pastel = "ff96e3";
|
||||||
|
};
|
||||||
|
|
||||||
|
orange = {
|
||||||
|
normal = "ff8c26";
|
||||||
|
bright = "fca151";
|
||||||
|
pastel = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
blueGrey = "9ccdd9";
|
||||||
|
teal = "00ccad";
|
||||||
|
lime = "d5ff63";
|
||||||
|
};
|
||||||
|
|
||||||
|
hex = mapAttrs (name: value:
|
||||||
|
if name == "grayscales"
|
||||||
|
then map (v: "#" + v) value
|
||||||
|
else if name == "hex"
|
||||||
|
then value
|
||||||
|
else mapAttrs (n: v: "#" + v) value
|
||||||
|
) (dark);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
37
common.nix
37
common.nix
|
@ -1,16 +1,37 @@
|
||||||
# Holds common settings for all systems.
|
# Holds common settings for *all* systems, including both servers and
|
||||||
|
# clients.
|
||||||
|
|
||||||
{ ... }: {
|
{ pkgs, oxalica, ... }: {
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
optimise.automatic = true;
|
optimise.automatic = true;
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs = {
|
||||||
|
config = { allowUnfree = true; };
|
||||||
|
overlays = [
|
||||||
|
|
||||||
boot.cleanTmpDir = true;
|
# Import overlays defined under the `overlays/` directory.
|
||||||
|
(import ./overlays)
|
||||||
|
|
||||||
|
# Clients need Rust for development, servers need Rust for
|
||||||
|
# deployment.
|
||||||
|
oxalica.overlay
|
||||||
|
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.cleanTmpDir = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
|
||||||
|
# Include common packages I use everywhere, like `rg`
|
||||||
|
# and `exa`
|
||||||
|
(import ./env.nix { inherit pkgs; })
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
53
flake.lock
53
flake.lock
|
@ -1,5 +1,20 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1637014545,
|
||||||
|
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
|
@ -48,10 +63,46 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1637453606,
|
||||||
|
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "8afc4e543663ca0a6a4f496262cd05233737e732",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oxalica": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1653273659,
|
||||||
|
"narHash": "sha256-dHXYaNL1axhZZyiZXxt1WKhvZrYXq7bjCs3y5VjgyGI=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "0fa3e01da1ce98e3b40063b8e2678095943402b1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"oxalica": "oxalica"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
15
flake.nix
15
flake.nix
|
@ -2,20 +2,27 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|
||||||
|
# Living on the edge
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
url = github:NixOS/nixpkgs/nixos-unstable;
|
url = github:NixOS/nixpkgs/nixos-unstable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Used for managing dotfiles
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = github:nix-community/home-manager;
|
url = github:nix-community/home-manager;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Rust overlay, for Rust development
|
||||||
|
oxalica = {
|
||||||
|
url = github:oxalica/rust-overlay;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = args: with args.nixpkgs; {
|
outputs = args: with args.nixpkgs; {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
# Desktop
|
# Desktop client
|
||||||
"thor" = lib.nixosSystem {
|
"thor" = lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -25,7 +32,7 @@
|
||||||
specialArgs = args;
|
specialArgs = args;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Laptop
|
# Dell XPS laptop client
|
||||||
"loki" = lib.nixosSystem {
|
"loki" = lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -37,7 +44,7 @@
|
||||||
|
|
||||||
# TODO: Pinebook Pro
|
# TODO: Pinebook Pro
|
||||||
# TODO: Raspberry Pi
|
# TODO: Raspberry Pi
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,6 @@ let themeType =
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
utils = import ../env.nix { inherit pkgs; };
|
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
options.riley = with lib; {
|
options.riley = with lib; {
|
||||||
|
@ -136,9 +134,6 @@ in {
|
||||||
curl
|
curl
|
||||||
git
|
git
|
||||||
|
|
||||||
# Common utils (rg, sk, fd, etc.)
|
|
||||||
utils
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{ theme, lib, pkgs }:
|
{ theme, lib, pkgs }:
|
||||||
|
|
||||||
pkgs.writeTextFile (rec {
|
pkgs.writeTextFile (rec {
|
||||||
name = "colors.kak";
|
name = "colors.kak";
|
||||||
destination = "/share/kak/colors/${name}";
|
destination = "/share/kak/colors/${name}";
|
||||||
text = with theme; ''
|
text = with theme; ''
|
||||||
|
|
||||||
face global comment rgb:828282
|
face global comment rgb:828282
|
||||||
|
|
||||||
face global value rgb:${blue.normal}
|
face global value rgb:${blue.normal}
|
||||||
face global string rgb:${green.normal}
|
face global string rgb:${green.normal}
|
||||||
face global keyword rgb:${cyan.normal}
|
face global keyword rgb:${cyan.normal}
|
||||||
face global operator rgb:${cyan.normal}
|
face global operator rgb:${cyan.normal}
|
||||||
|
@ -17,12 +17,12 @@ pkgs.writeTextFile (rec {
|
||||||
face global meta rgb:${green.bright}
|
face global meta rgb:${green.bright}
|
||||||
face global type rgb:${blue.bright}
|
face global type rgb:${blue.bright}
|
||||||
|
|
||||||
face global LineNumbers rgb:${background.slight}
|
face global LineNumbers rgb:${background.slight}
|
||||||
face global BufferPadding rgb:${background.slight}
|
face global BufferPadding rgb:${background.slight}
|
||||||
face global LineNumberCursor rgb:${foreground.primary}
|
face global LineNumberCursor rgb:${foreground.primary}
|
||||||
face global crosshairs_line "default,rgb:212121"
|
face global crosshairs_line "default,rgb:212121"
|
||||||
face global MenuForeground "default,rgb:${blue.normal}"
|
face global MenuForeground "default,rgb:${blue.normal}"
|
||||||
face global MenuBackground "default,rgb:313131"
|
face global MenuBackground "default,rgb:313131"
|
||||||
|
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue