dotfiles-mirror/etc/nixos/home.nix

74 lines
2.4 KiB
Nix
Raw Normal View History

2025-10-03 08:06:43 +03:30
{ config, pkgs, ... }: let
dotDir = "${config.home.homeDirectory}/.local/src/config/";
2025-10-04 17:47:25 +03:30
mkSl = path: config.lib.file.mkOutOfStoreSymlink path;
2025-10-03 08:06:43 +03:30
configs = {
sway = "sway";
kitty = "kitty";
foot = "foot";
2025-10-04 17:47:25 +03:30
qtile = "qtile";
2025-10-03 08:06:43 +03:30
mako = "mako";
2025-10-04 17:47:25 +03:30
nvim = "nvim";
2025-10-03 09:55:56 +03:30
};
in {
2025-09-30 15:29:42 +03:30
home.username = "coast";
home.homeDirectory = "/home/coast";
home.stateVersion = "25.05";
2025-10-03 08:06:43 +03:30
2025-10-04 17:47:25 +03:30
xdg.configFile = builtins.mapAttrs (name: subpath: { source = mkSl "${dotDir}/${subpath}"; recursive = true; }) configs;
2025-10-03 09:55:56 +03:30
2025-10-06 04:02:59 +03:30
home.packages = with pkgs; [
alsa-utils nix-search-cli neofetch dysk nsxiv tree wl-clipboard appimage-run libnotify grim slurp yazi mate.caja htop nixpkgs-fmt
swaybg wmenu mako nwg-look xorg.xkill
mpv vesktop wlr-randr rtorrent tor-browser
nodejs gcc gnumake clang-tools ruby_3_4 pkg-config
];
2025-10-03 09:55:56 +03:30
programs.zsh = {
enable = true;
history = {
path = "/home/coast/.cache/zsh/history";
size = 100000000;
save = 100000000;
append = true;
};
enableCompletion = true;
shellAliases = {
nf = "neofetch";
nrs = "doas nixos-rebuild switch";
emoji = "cat ~/.local/src/local/share/emoji | grep";
ls = "ls --color=auto";
smi = "nvidia-smi";
battery = "sb-battery";
weather = "curl wttr.in/masjedsoleyman";
las = "ls";
c = "clear";
cear = "clear";
".." = "cd ..";
hotp = "htop";
main = "man";
mian = "man";
mna = "man";
dias = "doas";
delgen = "doas nix-env --delete-generations old --profile /nix/var/nix/profiles/system";
alsamixer = "alsamixer -c 0 --no-color";
la = "ls --color=auto -la";
};
initContent = ''
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
comp_options+=(globdots)
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12"
autoload -U colors && colors && setopt prompt_subst
2025-10-04 17:47:25 +03:30
PROMPT="[%n@%m %~]%% "
2025-10-03 09:55:56 +03:30
export LIBCLANG_PATH=/usr/lib/llvm/20/lib64
export PATH=$PATH:/home/coast/.spicetify
source ~/.local/src/zsh.d/zsh-autosuggestions.zsh
export PATH="/usr/bin:$PATH"
2025-10-04 17:47:25 +03:30
export PATH="$HOME/.local/bin:$PATH"
2025-10-03 09:55:56 +03:30
'';
};
2025-09-30 15:29:42 +03:30
}