2023-10-01 19:00:13 +00:00
|
|
|
{ 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.
|
2023-10-24 15:10:49 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
ripgrep
|
|
|
|
fd
|
|
|
|
sd
|
|
|
|
bat
|
|
|
|
just
|
|
|
|
tokei
|
2023-12-05 01:38:38 +00:00
|
|
|
mermaid-cli
|
2023-12-08 12:09:30 +00:00
|
|
|
yazi
|
2023-10-24 15:10:49 +00:00
|
|
|
|
2023-10-25 01:50:34 +00:00
|
|
|
# Elixir
|
|
|
|
elixir
|
|
|
|
elixir-ls
|
|
|
|
|
|
|
|
# Golang
|
2023-10-24 15:10:49 +00:00
|
|
|
go
|
|
|
|
gopls
|
|
|
|
delve
|
|
|
|
gore
|
|
|
|
gotests
|
|
|
|
|
2023-10-25 01:50:34 +00:00
|
|
|
# Node
|
|
|
|
nodejs
|
|
|
|
nodePackages.pnpm
|
|
|
|
nodePackages.typescript
|
|
|
|
nodePackages.typescript-language-server
|
|
|
|
nodePackages.svelte-language-server
|
2023-10-24 15:10:49 +00:00
|
|
|
|
2023-10-25 01:50:34 +00:00
|
|
|
# Python
|
2023-10-31 13:54:11 +00:00
|
|
|
pdm
|
2023-10-25 01:50:34 +00:00
|
|
|
pyright
|
|
|
|
ruff
|
|
|
|
|
2023-12-11 17:07:48 +00:00
|
|
|
# Rust
|
|
|
|
rustup
|
|
|
|
|
2023-10-25 01:50:34 +00:00
|
|
|
# Shell
|
|
|
|
shellcheck
|
|
|
|
shfmt
|
2023-12-03 16:55:43 +00:00
|
|
|
|
|
|
|
# System
|
|
|
|
clang
|
2023-12-08 12:09:37 +00:00
|
|
|
opentofu
|
2023-12-07 23:16:16 +00:00
|
|
|
pass
|
2023-12-11 17:07:48 +00:00
|
|
|
|
|
|
|
# Sway
|
|
|
|
i3status-rust
|
2023-10-01 19:00:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
|
2023-10-01 19:26:44 +00:00
|
|
|
# Shell configurations
|
2023-10-24 01:57:20 +00:00
|
|
|
programs.alacritty = {
|
|
|
|
enable = true;
|
2023-10-31 13:54:11 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-24 01:57:20 +00:00
|
|
|
};
|
|
|
|
|
2023-10-01 19:00:13 +00:00
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
2023-10-24 01:57:20 +00:00
|
|
|
shellInit = ''
|
|
|
|
fish_add_path $HOME/.emacs.d/bin/
|
|
|
|
fish_add_path $HOME/.cargo/bin/
|
|
|
|
'';
|
2023-12-08 12:09:30 +00:00
|
|
|
|
2023-10-01 19:26:44 +00:00
|
|
|
loginShellInit = ''
|
|
|
|
set -x XDG_DATA_DIRS $HOME/.nix-profile/share:$XDG_DATA_DIRS
|
|
|
|
'';
|
2023-12-08 12:09:30 +00:00
|
|
|
|
2023-10-01 19:00:13 +00:00
|
|
|
interactiveShellInit = ''
|
|
|
|
set fish_greeting
|
|
|
|
'';
|
|
|
|
|
2023-12-08 12:09:30 +00:00
|
|
|
functions = {
|
|
|
|
update = "nix-channel --update && home-manager switch";
|
2023-10-01 19:00:13 +00:00
|
|
|
};
|
2023-12-08 12:09:30 +00:00
|
|
|
};
|
2023-10-01 19:00:13 +00:00
|
|
|
|
2024-02-08 22:02:52 +00:00
|
|
|
programs.mise.enable = true;
|
2023-12-08 12:09:30 +00:00
|
|
|
programs.starship.enable = true;
|
|
|
|
programs.zoxide.enable = true;
|
2023-10-01 19:00:13 +00:00
|
|
|
|
2023-10-01 19:26:44 +00:00
|
|
|
# Programming configurations
|
2023-10-01 19:00:13 +00:00
|
|
|
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;
|
2023-12-05 01:38:12 +00:00
|
|
|
package = pkgs.emacs29;
|
2023-10-24 01:57:20 +00:00
|
|
|
|
2023-10-24 15:10:49 +00:00
|
|
|
extraPackages = epkgs: with epkgs; [
|
|
|
|
pdf-tools
|
|
|
|
vterm
|
2023-10-24 01:57:20 +00:00
|
|
|
];
|
2023-10-01 19:00:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
};
|
2023-12-11 17:07:48 +00:00
|
|
|
|
|
|
|
# Services
|
|
|
|
services.syncthing.enable = true;
|
2023-10-01 19:00:13 +00:00
|
|
|
}
|