flake-parts: rename lib' to conf
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
41
conf/colors.nix
Normal file
41
conf/colors.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
#Catpuccin Mocha
|
||||
let
|
||||
colors = rec{
|
||||
rosewater = "#F5E0DC";
|
||||
flamingo = "#F2CDCD";
|
||||
pink = "#F5C2E7";
|
||||
mauve = "#CBA6F7";
|
||||
red = "#F38BA8";
|
||||
maroon = "#EBA0AC";
|
||||
peach = "#FAB387";
|
||||
yellow = "#F9E2AF";
|
||||
green = "#A6E3A1";
|
||||
teal = "#94E2D5";
|
||||
sky = "#89DCEB";
|
||||
sapphire = "#74C7EC";
|
||||
blue = "#89B4FA";
|
||||
lavender = "#B4BEFE";
|
||||
|
||||
text = "#CDD6F4";
|
||||
subtext1 = "#BAC2DE";
|
||||
subtext0 = "#A6ADC8";
|
||||
overlay2 = "#9399B2";
|
||||
overlay1 = "#7F849C";
|
||||
overlay0 = "#6C7086";
|
||||
surface2 = "#585B70";
|
||||
surface1 = "#45475A";
|
||||
surface0 = "#313244";
|
||||
|
||||
base = "#1E1E2E";
|
||||
mantle = "#181825";
|
||||
crust = "#11111B";
|
||||
|
||||
background = base;
|
||||
foreground = text;
|
||||
};
|
||||
in
|
||||
rec {
|
||||
default = with builtins; mapAttrs (_: color: substring 1 6 color) colors; # hex without hash
|
||||
hex = colors; # hex with hash
|
||||
argb = { a ? "ff" }: builtins.mapAttrs (_:color: a + color) default; # ARGB
|
||||
}
|
13
conf/default.nix
Normal file
13
conf/default.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ inputs, self, ... }:
|
||||
{
|
||||
config._module.args.globalArgs = {
|
||||
_module.args = {
|
||||
inherit inputs self;
|
||||
flake = self;
|
||||
conf = {
|
||||
colors = import ./colors.nix;
|
||||
network = import ./network.nix;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
27
conf/network.nix
Normal file
27
conf/network.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
addresses = rec {
|
||||
wireguard = rec {
|
||||
ipPrefix = "10.55.0";
|
||||
prefixLength = 24;
|
||||
ipsWithPrefixLength = "10.55.0.0/24";
|
||||
ips = {
|
||||
remilia = "${ipPrefix}.1";
|
||||
marisa = "${ipPrefix}.2";
|
||||
satori = "${ipPrefix}.3";
|
||||
hina = "${ipPrefix}.4";
|
||||
};
|
||||
};
|
||||
domain = {
|
||||
natto = "weirdnatto.in";
|
||||
};
|
||||
};
|
||||
|
||||
commonSSHKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJHingN2Aho+KGgEvBMjtoez+W1svl9uVoa4vG0d646j"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPX1HDzWpoaOcU8GDEGuDzXgxkCpyeqxRR6gLs/8JgHw"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOSQnDNrNP69tIK7U2D7qaMjycfIjpgx0at4U2D5Ufib"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK5V/hdkTTQSkDLXaEwY8xb/T8+sWtw5c6UjYOPaTrO8"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKFyKi0HYfkgvEDvjzmDRGwAq2z2KOkfv7scTVSnonBh"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICEow6+G9F0JjvVwnyrFoObFAKKBQQ2wwScST0Xzs1l"
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user