char/flake
nixos flake
git clone https://git.t4t.associates/char/flake
8ff99a0
main
1{ pkgs , unstable-pkgs , lib , ...} : 2{ 3nix = { 4package = unstable-pkgs . lix ; 5 6settings . experimental-features = [ 7"nix-command" 8"flakes" 9]; 10gc = { 11automatic = true ; 12dates = "monthly" ; 13}; 14 15registry . nixpkgs-unstable = { 16from = { 17id = "nixpkgs-unstable" ; 18type = "indirect" ; 19}; 20to = { 21type = "github" ; 22owner = "NixOS" ; 23repo = "nixpkgs" ; 24ref = "nixpkgs-unstable" ; 25}; 26}; 27}; 28 29boot . loader . systemd-boot . enable = true ; 30boot . loader . efi . canTouchEfiVariables = true ; 31boot . kernelPackages = lib . mkDefault pkgs . linuxPackages_latest ; 32 33nixpkgs . config . allowUnfree = true ; 34programs . nix-ld . enable = true ; 35 36security . sudo . wheelNeedsPassword = false ; 37services . openssh . enable = true ; 38 39# sakana are geoblocking uk+eea+ch; route via nyc 40networking . hosts . "104.168.4.195" = [ "api.sakana.ai" ]; 41 42services . tailscale . enable = true ; 43services . tailscale . package = unstable-pkgs . tailscale ; 44 45programs . zsh . enable = true ; 46programs . git . enable = true ; 47 48programs . vim = { 49enable = true ; 50package = unstable-pkgs . vim ; 51}; 52 53environment . shells = [ pkgs . zsh ]; 54environment . variables = { 55EDITOR = "hx" ; 56VISUAL = "hx" ; 57SYSTEMD_EDITOR = "hx" ; 58}; 59 60environment . systemPackages = 61with pkgs ; 62[ 63gcc 64binutils 65pkg-config 66glibc 67gnumake 68cmake 69sqlite-interactive 70 71wget 72htop 73tmux 74unzip 75file 76] 77++ [ 78unstable-pkgs . jujutsu 79unstable-pkgs . vim 80unstable-pkgs . helix 81unstable-pkgs . ghostty . terminfo 82]; 83 84environment . etc . certfile = { 85source = "/etc/ssl/certs/ca-bundle.crt" ; 86target = "ssl/cert.pem" ; 87}; 88}