Trying something else

This commit is contained in:
2026-02-16 13:36:17 -07:00
parent 5db8d35a2f
commit c2694f46a2
11 changed files with 232 additions and 126 deletions

16
modules/home/default.nix Normal file
View File

@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.atridad = { pkgs, ... }: {
imports = [
./zed.nix
];
home.stateVersion = "25.11";
};
};
}

51
modules/home/zed.nix Normal file
View File

@@ -0,0 +1,51 @@
{ pkgs, ... }:
{
programs.zed-editor = {
enable = true;
extensions = [
"nix"
"catppuccin"
"catppuccin-icons"
"toml"
"elixir"
"make"
"astro"
"vue"
"latex"
"mermaid"
];
userSettings = {
icon_theme = "Catppuccin Macchiato";
title_bar = {
show_sign_in = false;
};
collaboration_panel = {
button = false;
};
status_bar = {
cursor_position_button = false;
};
disable_ai = true;
telemetry = {
diagnostics = false;
metrics = false;
};
ui_font_size = 16;
buffer_font_size = 15;
theme = {
mode = "system";
light = "One Light";
dark = "Catppuccin Macchiato";
};
languages = {
"Nix" = {
language_servers = [ "nil" "nixd" ];
format_on_save = "on";
};
};
};
};
}

28
modules/homebrew.nix Normal file
View File

@@ -0,0 +1,28 @@
{ ... }:
{
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
cleanup = "zap";
};
brews = [
"gamdl"
"knock"
"snort"
];
casks = [
"android-platform-tools"
"flutter"
"ghostty"
"librewolf"
"ngrok"
"pearcleaner"
"zulu@17"
];
};
}

26
modules/packages/cli.nix Normal file
View File

@@ -0,0 +1,26 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
helix
micro
lazygit
ripgrep
fnm
cmake
ninja
gradle
netcat-gnu
bitwarden-cli
pwgen
qrencode
sl
upx
wakeonlan
magic-wormhole
httpie
gh
doctl
qemu
];
}

View File

@@ -0,0 +1,21 @@
{ pkgs, ... }:
let
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analyzer" ];
targets = [ "aarch64-apple-darwin" ];
};
in
{
environment.systemPackages = with pkgs; [
rustToolchain
python313
openjdk
openjdk17
lua
luajit
perl
ruby
go
];
}

View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
ffmpeg
tesseract
tectonic
];
}

View File

@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
freerdp
openmpi
];
}

View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
nmap
nikto
john
rustscan
];
}

17
modules/system.nix Normal file
View File

@@ -0,0 +1,17 @@
{ rust-overlay, ... }:
{
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
};
nixpkgs = {
hostPlatform = "aarch64-darwin";
config.allowUnfree = true;
overlays = [ rust-overlay.overlays.default ];
};
programs.zsh.enable = true;
system.primaryUser = "atridad";
system.stateVersion = 6;
}