+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
25665e9
main
1{ pkgs , inputs , lib , config , self , ...} @args :{ 2home . packages = with pkgs ; [ 3# Utils 4ripgrep fd eza sd doggo ouch xh dl rbw pinentry-curses hyperfine heh tokei 5zellij zeco tty-share teamtype rsync magic-wormhole-rs bore-cli cached-path 6zstd pv sshping mdcat rage exiftool resvg get-keys vivid 7ascii unicode-paracode sequin tty-share micro chafa pipe-rename osc # scooter 8# Munge 9jq pup choose datamash numbat lowcharts d-rs mawk csvlens fx # xan tabiew 10# System info 11btop procs smartmontools duf gdu diskus dust 12# Nix 13nix home-manager nh nix-output-monitor nix-tree nix-diff nil comma ragenix 14# Scripting tools 15stylua lua-language-server shfmt shellcheck fish-lsp 16# Fun 17blahaj gay lolcat fortune cowsay neo tmatrix sl pipes ascii-rain pastel tab 18pokedex ttyper solitaire-tui nethack 19]; 20 21programs = { 22helix = { enable = true ; settings = lib . mkForce {}; }; 23bat = { enable = true ; }; 24direnv = { enable = true ; 25nix-direnv . enable = true ; 26config . global . hide_env_diff = true ; 27}; 28ssh = { enable = true ; 29includes = [ "extra-config" ]; 30enableDefaultConfig = false ; 31settings = { 32"*" = { 33serverAliveInterval = 30 ; 34controlPersist = "15h" ; 35controlMaster = "auto" ; 36compression = true ; 37}; 38"pineapple.computer julia.blue Cortana" = { 39hostname = "%h" ; user = "julia" ; port = 28 ; 40}; 41"post.typ.dev" = { port = 34 ; }; 42"u662900.your-storagebox.de backups" = { 43hostname = "u662900.your-storagebox.de" ; user = "u662900" ; port = 23 ; 44}; 45}; 46}; 47}; 48 49imports = [ 50./git.nix ./htop.nix ./shells.nix 51( if builtins . hasAttr "osConfig" args then {} else 52{ nixpkgs = { overlays = [ self . overlays . default ]; config . allowUnfree = true ; }; }) 53inputs . nix-index-database . homeModules . nix-index 54inputs . ragenix . homeManagerModules . default 55inputs . catppuccin . homeModules . catppuccin 56]; 57 58catppuccin = { enable = true ; autoEnable = false ; 59flavor = "mocha" ; accent = "blue" ; 60bat . enable = true ; cava . enable = true ; helix . enable = true ; btop . enable = true ; 61fish . enable = true ; zellij . enable = true ; # fzf.enable = true; 62}; 63 64nix . registry = { 65nixpkgs . flake = inputs . nixpkgs ; 66config . to = { type = "git" ; url = "file://" + config . home . sessionVariables . CONF_DIR ; }; 67}; 68 69systemd . user . startServices = "sd-switch" ; # start/stop services to match config 70age = { 71package = pkgs . rage ; 72secrets . nix-conf = { 73file = ../../secrets/nix-conf.age ; 74path = " ${ config . home . homeDirectory } /.config/nix/extra.conf" ; 75}; 76}; 77 78home = { 79username = lib . mkDefault "julia" ; 80homeDirectory = lib . mkDefault "/home/julia" ; 81stateVersion = "25.11" ; 82preferXdgDirectories = true ; 83 84sessionVariables = { 85NIX_PATH = "nixpkgs=flake:nixpkgs" ; 86CONF_DIR = lib . mkDefault ( config . home . homeDirectory + "/config" ); 87}; 88 89file = builtins . listToAttrs ( map ( path :let 90f = lib . strings . removePrefix (( inputs . self + "/dotfiles/" )) (( toString path )); 91in { 92name = f ; 93value . source = config . lib . file . mkOutOfStoreSymlink 94( config . home . sessionVariables . CONF_DIR + "/dotfiles/" + f ); 95}) ( lib . filesystem . listFilesRecursive ../../dotfiles ) 96); 97}; 98}