home.nix

Branches > main > d3c0a10 > files / nixos / machines / chromebook / home.nix

{ config, pkgs, ... }:

{
  programs.git = {
    enable = true;
    settings = {
      user.name  = "Grahp";
      user.email = "git@grahp.dev";
    };
  };
  programs.fish = {
    enable = true;
    shellAliases = {
      rb = "sudo nixos-rebuild switch --flake ~/.config/nixos#chromebook";
      ed = "rlwrap ed -vEp:";
      ll = "lsd -1ANF --group-directories-first --blocks=name,date,size --date=relative";
      l  = "lsd -lANF --group-directories-first --date=relative";
      ls = "lsd -ANF --group-directories-first";
    };
    interactiveShellInit = ''
      set -g fish_greeting

      fish_vi_key_bindings
      function fish_prompt
        string join "" -- (set_color blue) (prompt_pwd --full-length-dirs 5) (set_color normal) " chromebook> "
      end
      function fish_mode_prompt
      end
    '';
  };

  home.sessionVariables.SHELL = "/run/current-system/sw/bin/fish";

  home.stateVersion = "23.11";
  home.packages = with pkgs; [
    nerd-fonts.jetbrains-mono
    ghostty

    obsidian
    # vesktop

    neovim
    tree-sitter
    fennel-ls
    fnlfmt
    clj-kondo
    clojure-lsp
    cljfmt
    lua-language-server
    fzf

    acpi
    brightnessctl

    claude-code

    qutebrowser

    jdk25
    clojure
    babashka

    luajit
    lua54Packages.fennel

    pavucontrol

    maim
    xclip

    usbutils
    inotify-tools

    unzip
    git
    lazygit
    rlwrap
    ed # It's the standard editor, you know?
    fish
    lsd
    dig
    ripgrep
    dmenu

    bluez

    killall
  ];
}