{ config, pkgs, ... }: { # Home Manager needs a bit of information about you and the paths it should # manage. home.username = "digyx"; home.homeDirectory = "/var/home/digyx"; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes. # # You should not change this value, even if you update Home Manager. If you do # want to update the value, then make sure to first check the Home Manager # release notes. home.stateVersion = "23.05"; # Please read the comment before changing. # The home.packages option allows you to install Nix packages into your # environment. home.packages = with pkgs; [ ripgrep fd sd bat just tokei mermaid-cli yazi # Elixir elixir elixir-ls # Golang go gopls delve gore gotests # Node nodejs nodePackages.pnpm nodePackages.typescript nodePackages.typescript-language-server nodePackages.svelte-language-server # Python pdm pyright ruff # Rust rustup # Shell shellcheck shfmt # System clang opentofu pass # Sway i3status-rust ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. home.file = { # # Building this configuration will create a copy of 'dotfiles/screenrc' in # # the Nix store. Activating the configuration will then make '~/.screenrc' a # # symlink to the Nix store copy. # ".screenrc".source = dotfiles/screenrc; # # You can also set the file content immediately. # ".gradle/gradle.properties".text = '' # org.gradle.console=verbose # org.gradle.daemon.idletimeout=3600000 # ''; }; # You can also manage environment variables but you will have to manually # source # # ~/.nix-profile/etc/profile.d/hm-session-vars.sh # # or # # /etc/profiles/per-user/digyx/etc/profile.d/hm-session-vars.sh # # if you don't want to manage your shell through Home Manager. home.sessionVariables = { # EDITOR = "emacs"; }; # Let Home Manager install and manage itself. programs.home-manager.enable = true; # Shell configurations programs.alacritty = { enable = true; settings = { font = { normal.family = "Hack Nerd Font Mono"; size = 12.0; }; colors = { primary = { background = "#282828"; foreground = "#ebdbb2"; }; normal = { black = "#282828"; red = "#cc241d"; green = "#98971a"; yellow = "#d79921"; blue = "#458588"; magenta = "#b16286"; cyan = "#689d6a"; white = "#ebdbb2"; }; }; }; }; programs.fish = { enable = true; shellInit = '' fish_add_path $HOME/.emacs.d/bin/ fish_add_path $HOME/.cargo/bin/ ''; loginShellInit = '' set -x XDG_DATA_DIRS $HOME/.nix-profile/share:$XDG_DATA_DIRS ''; interactiveShellInit = '' set fish_greeting ''; functions = { update = "nix-channel --update && home-manager switch"; }; }; programs.mise.enable = true; programs.starship.enable = true; programs.zoxide.enable = true; # Programming configurations programs.git = { enable = true; userName = "Roman Godmaire"; userEmail = "godmaire@twilit.io"; delta = { enable = true; options = { side-by-side = true; }; }; extraConfig = { init = { defaultBranch = "main"; }; }; }; programs.emacs = { enable = true; package = pkgs.emacs29; extraPackages = epkgs: with epkgs; [ pdf-tools vterm ]; }; programs.neovim = { enable = true; defaultEditor = true; }; # Services services.syncthing.enable = true; }