feat: init

This commit is contained in:
Nick 2025-03-29 23:08:26 -05:00
commit 96c6f790fc
804 changed files with 33411 additions and 0 deletions

View file

@ -0,0 +1,11 @@
let
importList =
let
content = builtins.readDir ./.;
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
in
map (name: ./. + "/${name}") dirContent;
in
{
imports = importList;
}

View file

@ -0,0 +1,21 @@
{
flake,
osConfig,
pkgs,
...
}:
let
inherit (flake.config.aesthetics.themes) fonts;
in
{
confirm-close-surface = false;
window-decoration = true;
font-size = fonts.sizes.terminal.size0;
font-family = fonts.names.name0;
window-padding-x = 10;
window-padding-y = 10;
copy-on-select = true;
bold-is-bright = true;
shell-integration = "detect";
command = "${pkgs.nushell}/bin/nu";
}

View file

@ -0,0 +1,51 @@
{
flake,
config,
...
}:
let
inherit (flake.config.aesthetics.themes) currentTheme palettes;
inherit (flake.config.people) user0 user1 user2;
user = config.home.username;
themeLogic =
if user == user0 then
currentTheme.theme0
else if user == user1 then
currentTheme.theme1
else if user == user2 then
currentTheme.theme2
else
currentTheme.theme0;
el = palettes.${themeLogic}.colours;
in
{
theme = {
background = el.base01;
cursor-color = el.base06;
foreground = el.base05;
palette = [
"0=${el.base03}"
"1=${el.base08}"
"2=${el.base0B}"
"3=${el.base0A}"
"4=${el.base0D}"
"5=${el.base17}"
"6=${el.base0C}"
"7=${el.base05}"
"8=${el.base04}"
"9=${el.base08}"
"10=${el.base03}"
"11=${el.base0A}"
"12=${el.base0D}"
"13=${el.base17}"
"14=${el.base0C}"
"15=${el.base05}"
];
selection-background = el.base04;
selection-foreground = el.base05;
};
}

View file

@ -0,0 +1,27 @@
{
config,
flake,
pkgs,
osConfig,
...
}:
let
configPath = ./config;
settingsPath = import (configPath + /settings.nix) {
inherit
flake
config
osConfig
pkgs
;
};
themesPath = import (configPath + /themes.nix) { inherit config flake; };
in
{
programs.ghostty = {
enable = true;
package = flake.inputs.ghostty.packages.${pkgs.system}.default;
settings = settingsPath;
themes = themesPath;
};
}

View file

@ -0,0 +1,19 @@
{
flake,
...
}:
let
inherit (flake.config.aesthetics.themes)
fonts
;
in
{
programs.kitty = {
enable = true;
font = {
name = fonts.names.name0;
size = fonts.sizes.terminal.size0;
};
themeFile = "Catppuccin-Macchiato";
};
}

View file

@ -0,0 +1,19 @@
{ flake, ... }:
let
inherit (flake.config.aesthetics.themes)
fonts
;
in
''
return {
color_scheme = "Catppuccin Macchiato",
font_size = ${builtins.toString fonts.sizes.terminal.size0},
font = wezterm.font('${fonts.names.name0}'),
enable_tab_bar = false,
window_close_confirmation = 'NeverPrompt',
term = 'wezterm',
enable_wayland = true,
front_end = "WebGpu",
max_fps = 200
}
''

View file

@ -0,0 +1,16 @@
{ flake, ... }:
{
programs.wezterm =
let
configPath = ./config;
extraConfigPath = import (configPath + /extraConfig.nix) {
inherit
flake
;
};
in
{
enable = true;
extraConfig = extraConfigPath;
};
}