system/home/home.nix

134 lines
2.6 KiB
Nix

{ config, pkgs, ... }:
let
secrets = import ../secrets.nix;
in
{
imports = (import ./ui) ++ (import ./shell) ++ (import ./progs);
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = secrets.userName;
home.homeDirectory = secrets.userDir;
home.keyboard = {
model = "pc105";
layout = "us,ru";
variant = "dvorak,";
options = [ "grp:win_space_toggle" ];
};
home.packages = with pkgs; [
kotatogram-desktop
docker-compose
libreoffice
asciinema # record the terminal
neofetch # command-line system information
# tools
xh # friendly and fast tool for sending HTTP requests
fd # a simple, fast and user-friendly alternative to find
bat # a cat clone with syntax highlighting and git integration
# nix
nixpkgs-fmt
# browser
librewolf # a fork of firefox, focused on privacy, security and freedom
# for work
google-cloud-sdk
kubectl
postgresql_12 # 🤷 I need only psql
];
# user interface
ui = {
# windows manager
xmonad.enable = true;
# bar
polybar.enable = true;
# lock
betterlockscreen.enable = true;
};
# shell
shell = {
zsh.enable = true;
prompt.starship.enable = true;
};
# programs
progs = {
alacritty.enable = true;
git = {
enable = true;
gpgKey = secrets.gpgSigningKey;
inherit (secrets) userName userEmail;
};
# password manager
pass.enable = true;
# email manager
himalaya.enable = true;
# finance manager
hledger.enable = true;
# file manager
vifm.enable = true;
# editor
nvim = {
enable = true;
default = true;
};
# tools
exa.enable = true;
zoxide.enable = true;
};
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
accounts = {
email = {
accounts = secrets.emailAccounts;
};
};
home.file = {
"scripts" = {
source = ../scripts;
recursive = true;
};
"pictures/wallpapers" = {
source = ../wallpapers;
recursive = true;
};
};
xdg.enable = true;
# 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 can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}