update: update config for tatara

This commit is contained in:
FabricSoul 2025-06-03 13:08:41 -04:00
parent 8ce9227801
commit 2a177bcb01
9 changed files with 162 additions and 99 deletions

106
flake.lock generated
View file

@ -9,11 +9,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1736090999, "lastModified": 1744557573,
"narHash": "sha256-B5CJuHqfJrzPa7tObK0H9669/EClSHpa/P7B9EuvElU=", "narHash": "sha256-XAyj0iDuI51BytJ1PwN53uLpzTDdznPDQFG4RwihlTQ=",
"owner": "aylur", "owner": "aylur",
"repo": "ags", "repo": "ags",
"rev": "5527c3c07d92c11e04e7fd99d58429493dba7e3c", "rev": "3ed9737bdbc8fc7a7c7ceef2165c9109f336bff6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -31,11 +31,32 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1735172721, "lastModified": 1742571008,
"narHash": "sha256-rtEAwGsHSppnkR3Qg3eRJ6Xh/F84IY9CrBBLzYabalY=", "narHash": "sha256-5WgfJAeBpxiKbTR/gJvxrGYfqQRge5aUDcGKmU1YZ1Q=",
"owner": "aylur", "owner": "aylur",
"repo": "astal", "repo": "astal",
"rev": "6c84b64efc736e039a8a10774a4a1bf772c37aa2", "rev": "dc0e5d37abe9424c53dcbd2506a4886ffee6296e",
"type": "github"
},
"original": {
"owner": "aylur",
"repo": "astal",
"type": "github"
}
},
"astal_2": {
"inputs": {
"nixpkgs": [
"hyprpanel",
"nixpkgs"
]
},
"locked": {
"lastModified": 1748416910,
"narHash": "sha256-FEQcs58HL8Fe4i7XlqVEUwthjxwvRvgX15gTTfW17sU=",
"owner": "aylur",
"repo": "astal",
"rev": "c1bd89a47c81c66ab5fc6872db5a916c0433fb89",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -107,7 +128,7 @@
}, },
"flake-utils_2": { "flake-utils_2": {
"inputs": { "inputs": {
"systems": "systems_2" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1710146030,
@ -130,11 +151,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746413188, "lastModified": 1748830238,
"narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=", "narHash": "sha256-EB+LzYHK0D5aqxZiYoPeoZoOzSAs8eqBDxm3R+6wMKU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a", "rev": "c7fdb7e90bff1a51b79c1eed458fb39e6649a82a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -147,14 +168,15 @@
"hyprpanel": { "hyprpanel": {
"inputs": { "inputs": {
"ags": "ags", "ags": "ags",
"astal": "astal_2",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1745885816, "lastModified": 1748856610,
"narHash": "sha256-yuIb6/gGcII+2YgtTLcYdga0pcL63B18xQ/oitOhg7k=", "narHash": "sha256-uh7dQn+CgGtZXGoF35jEARpZssd6C2eFtSpMepBtLig=",
"owner": "jas-singhfsu", "owner": "jas-singhfsu",
"repo": "hyprpanel", "repo": "hyprpanel",
"rev": "0c82ce9704c8063be8d8f60443071c91943eb68c", "rev": "8be178f5a90ec87665ee048e214d2da4571535c5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -177,27 +199,27 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1737371634, "lastModified": 1748294338,
"narHash": "sha256-fTVAWzT1UMm1lT+YxHuVPtH+DATrhYfea3B0MxG/cGw=", "narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=",
"owner": "NuschtOS", "owner": "NuschtOS",
"repo": "ixx", "repo": "ixx",
"rev": "a1176e2a10ce745ff8f63e4af124ece8fe0b1648", "rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NuschtOS", "owner": "NuschtOS",
"ref": "v0.0.7", "ref": "v0.0.8",
"repo": "ixx", "repo": "ixx",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1736344531, "lastModified": 1748370509,
"narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=", "narHash": "sha256-QlL8slIgc16W5UaI3w7xHQEP+Qmv/6vSNTpoZrrSlbk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912", "rev": "4faa5f5321320e49a78ae7848582f684d64783e9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -209,11 +231,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1746397377, "lastModified": 1748792178,
"narHash": "sha256-5oLdRa3vWSRbuqPIFFmQBGGUqaYZBxX+GGtN9f/n4lU=", "narHash": "sha256-BHmgfHlCJVNisJShVaEmfDIr/Ip58i/4oFGlD1iK6lk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ed30f8aba41605e3ab46421e3dcb4510ec560ff8", "rev": "5929de975bcf4c7c8d8b5ca65c8cd9ef9e44523e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -225,11 +247,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1746397377, "lastModified": 1748792178,
"narHash": "sha256-5oLdRa3vWSRbuqPIFFmQBGGUqaYZBxX+GGtN9f/n4lU=", "narHash": "sha256-BHmgfHlCJVNisJShVaEmfDIr/Ip58i/4oFGlD1iK6lk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ed30f8aba41605e3ab46421e3dcb4510ec560ff8", "rev": "5929de975bcf4c7c8d8b5ca65c8cd9ef9e44523e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -261,14 +283,15 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"nuschtosSearch": "nuschtosSearch" "nuschtosSearch": "nuschtosSearch",
"systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1746536883, "lastModified": 1748884506,
"narHash": "sha256-EJax0aiJIVJlqF7QyAefZ9fi1HgGcm7U1rBkcm2Z3Ps=", "narHash": "sha256-P/ldKE0SCGKH6pEVJoW2MJJo2dZCZe10d/h1ree66c0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "c26f5c2e31c1da895bf9289783ff8e2fe3637ca0", "rev": "d063d0dd5e0b82d8be4dd4bc00b887ac1f92e4b2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -288,11 +311,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745046075, "lastModified": 1748298102,
"narHash": "sha256-8v4y6k16Ra/fiecb4DxhsoOGtzLKgKlS+9/XJ9z0T2I=", "narHash": "sha256-PP11GVwUt7F4ZZi5A5+99isuq39C59CKc5u5yVisU/U=",
"owner": "NuschtOS", "owner": "NuschtOS",
"repo": "search", "repo": "search",
"rev": "066afe8643274470f4a294442aadd988356a478f", "rev": "f8a1c221afb8b4c642ed11ac5ee6746b0fe1d32f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -306,7 +329,7 @@
"fenix": "fenix", "fenix": "fenix",
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",
"systems": "systems_3" "systems": "systems_4"
}, },
"locked": { "locked": {
"lastModified": 1741352034, "lastModified": 1741352034,
@ -380,6 +403,21 @@
} }
}, },
"systems_3": { "systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_4": {
"locked": { "locked": {
"lastModified": 1689347949, "lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",

View file

@ -113,6 +113,7 @@
nerd-fonts.envy-code-r nerd-fonts.envy-code-r
nerd-fonts.droid-sans-mono nerd-fonts.droid-sans-mono
nerd-fonts.departure-mono nerd-fonts.departure-mono
font-awesome
wl-clipboard wl-clipboard
@ -129,12 +130,10 @@
tmuxPlugins.sensible tmuxPlugins.sensible
tmuxPlugins.vim-tmux-navigator tmuxPlugins.vim-tmux-navigator
tmuxPlugins.onedark-theme tmuxPlugins.onedark-theme
nodePackages.prettier
nodePackages.tailwindcss nodePackages.tailwindcss
prettierd
nodejs_23
qbittorrent qbittorrent
go go
go-blueprint
gccgo14 gccgo14
hypridle hypridle
dprint dprint
@ -160,6 +159,14 @@
tree-sitter tree-sitter
heroic heroic
gimp3 gimp3
p7zip
rar
nodePackages.localtunnel
typst
pnpm
nodejs_24
openssl
psmisc
]; ];
# Enable home-manager # Enable home-manager

View file

@ -77,7 +77,7 @@
]; ];
monitor = [ monitor = [
"DP-3, 3440x1440@144.00HZ, 0x0, 1" "DP-5, 3440x1440@144.00HZ, 0x0, 1"
]; ];
}; };
}; };

View file

@ -41,6 +41,7 @@
}; };
}; };
plugins = { plugins = {
hardtime.enable = true;
avante = { avante = {
enable = true; enable = true;
settings = { settings = {
@ -72,11 +73,12 @@
prev = "[["; prev = "[[";
}; };
}; };
# provider = "ollama"; provider = "ollama";
# ollama = { auto_suggestions_provider = "ollama";
# endpoint = "http://127.0.0.1:11434"; ollama = {
# model = "gemma3:12b"; endpoint = "http://127.0.0.1:11434";
# }; model = "kirito1/qwen3-coder";
};
windows = { windows = {
sidebar_header = { sidebar_header = {
align = "center"; align = "center";
@ -173,6 +175,13 @@
".*_templ%.go$" ".*_templ%.go$"
]; ];
hidden = true; hidden = true;
mappings = {
n = {
# Normal mode mappings
q = "close"; # Map 'q' to close the telescope window
};
};
}; };
}; };
}; };
@ -268,31 +277,6 @@
formatters_by_ft = { formatters_by_ft = {
nix = ["alejandra"]; nix = ["alejandra"];
markdown = ["dprint"]; markdown = ["dprint"];
# Use prettierd first, fallback to prettier
javascript = {
__unkeyed-1 = "prettierd";
__unkeyed-2 = "prettier";
stop_after_first = true;
};
typescript = {
__unkeyed-1 = "prettierd";
__unkeyed-2 = "prettier";
stop_after_first = true;
};
javascriptreact = {
__unkeyed-1 = "prettierd";
__unkeyed-2 = "prettier";
stop_after_first = true;
};
typescriptreact = {
__unkeyed-1 = "prettierd";
__unkeyed-2 = "prettier";
stop_after_first = true;
};
css = ["prettier"];
scss = ["prettier"];
html = ["prettier"];
json = ["prettier"];
# Run on all files # Run on all files
"_" = ["trim_whitespace" "trim_newlines"]; "_" = ["trim_whitespace" "trim_newlines"];
}; };
@ -301,24 +285,6 @@
lsp_fallback = true; lsp_fallback = true;
}; };
formatters = { formatters = {
prettier = {
command = "prettier";
args = [
"--plugin=prettier-plugin-tailwindcss"
"--print-width=80"
"--tab-width=2"
"--use-tabs=false"
"--semi=true"
"--single-quote=false"
"--trailing-comma=es5"
"--bracket-spacing=true"
];
};
# Optional: Add prettierd for faster formatting
prettierd = {
command = "prettierd";
args = ["$FILENAME"];
};
}; };
# Additional useful settings from the docs # Additional useful settings from the docs
log_level = "warn"; log_level = "warn";

View file

@ -16,11 +16,12 @@
"vi-mode" "vi-mode"
]; ];
}; };
initExtra = '' initContent = ''
export PATH="/home/fabric/.deno/bin:$PATH" export PATH="/home/fabric/.deno/bin:$PATH"
export PATH="/home/fabric/.local/lib/bin:$PATH" export PATH="/home/fabric/.local/lib/bin:$PATH"
export PATH=$PATH:(go env GOPATH)/bin export PATH=$PATH:(go env GOPATH)/bin
export PATH="/home/fabric/.cargo/bin:$PATH"
GOPATH=$HOME/go GOPATH=$HOME/go
PATH=$PATH:/usr/local/go/bin:$GOPATH/bin PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
PATH="$HOME/.govm/shim:$PATH" PATH="$HOME/.govm/shim:$PATH"
@ -30,6 +31,15 @@
alias n="nvim" alias n="nvim"
alias gmt="go mod tidy" alias gmt="go mod tidy"
alias gmi="go mod init" alias gmi="go mod init"
alias flake="nix flake"
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
''; '';
prezto = { prezto = {
tmux = { tmux = {

View file

@ -16,21 +16,15 @@
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
boot.supportedFilesystems = ["ntfs"];
# Basic system packages # Basic system packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
git git
greetd.greetd greetd.greetd
greetd.tuigreet greetd.tuigreet
libinput
libnotify
kitty
zsh zsh
# ollama
ollama-cuda
usbutils
obs-studio
obs-studio-plugins.input-overlay
]; ];
# Enable the OpenSSH daemon # Enable the OpenSSH daemon
@ -47,12 +41,8 @@
}; };
}; };
# Display manager configuration
services.displayManager.defaultSession = "hyprland";
# Default programs # Default programs
programs = { programs = {
hyprland.enable = true;
zsh.enable = true; zsh.enable = true;
}; };
networking.enableIPv6 = false; networking.enableIPv6 = false;

View file

@ -1,5 +1,6 @@
{...}: { {...}: {
services.tailscale = { services.tailscale = {
enable = true; enable = true;
useRoutingFeatures = "client";
}; };
} }

View file

@ -0,0 +1,35 @@
# hosts/tatara/default.nix
{
config,
lib,
pkgs,
...
}: {
imports = [
# Hardware configuration
./hardware-configuration.nix
# Common configurations
../common/global
../common/optional/docker.nix
];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Networking
networking = {
hostName = "tatara";
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
};
# User configuration
users.users.fabric = {
isNormalUser = true;
description = "fabric";
extraGroups = ["networkmanager" "wheel" "docker"];
shell = pkgs.zsh;
};
}

View file

@ -41,4 +41,20 @@
acceleration = "cuda"; acceleration = "cuda";
host = "0.0.0.0"; host = "0.0.0.0";
}; };
# Display manager configuration
services.displayManager.defaultSession = "hyprland";
programs.hyprland.enable = true;
# Basic system packages
environment.systemPackages = with pkgs; [
libinput
libnotify
kitty
ollama-cuda
usbutils
obs-studio
ntfs3g
];
} }