2022-04-05 10:03:33 +03:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2022-10-08 13:22:46 +03:00
|
|
|
secrets = import ./secrets.nix;
|
2022-04-05 10:03:33 +03:00
|
|
|
in
|
|
|
|
{
|
2022-08-28 15:02:53 +03:00
|
|
|
imports = (import ./ui) ++ (import ./shell) ++ (import ./progs);
|
2022-04-06 14:15:34 +03:00
|
|
|
|
2022-04-05 10:03:33 +03:00
|
|
|
# Home Manager needs a bit of information about you and the
|
|
|
|
# paths it should manage.
|
2022-08-30 04:32:05 +03:00
|
|
|
home.username = secrets.userName;
|
|
|
|
home.homeDirectory = secrets.userDir;
|
2022-04-05 10:03:33 +03:00
|
|
|
|
2022-04-06 14:15:34 +03:00
|
|
|
home.keyboard = {
|
|
|
|
model = "pc105";
|
|
|
|
layout = "us,ru";
|
|
|
|
variant = "dvorak,";
|
2022-08-29 15:40:41 +03:00
|
|
|
options = [ "grp:win_space_toggle" ];
|
2022-04-06 14:15:34 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
2022-08-27 23:41:37 +03:00
|
|
|
kotatogram-desktop
|
2022-09-01 13:29:50 +03:00
|
|
|
nheko
|
2022-08-28 04:54:03 +03:00
|
|
|
docker-compose
|
2022-08-29 14:12:03 +03:00
|
|
|
libreoffice
|
2022-09-03 22:47:05 +03:00
|
|
|
image-roll
|
2022-04-05 17:47:31 +03:00
|
|
|
|
2022-08-29 15:40:41 +03:00
|
|
|
asciinema # record the terminal
|
|
|
|
neofetch # command-line system information
|
2022-08-24 11:43:20 +03:00
|
|
|
|
2022-04-07 17:04:30 +03:00
|
|
|
# tools
|
2022-08-29 15:40:41 +03:00
|
|
|
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
|
2022-09-18 18:29:40 +03:00
|
|
|
ripgrep # a fuzzy finder
|
2022-09-18 22:33:44 +03:00
|
|
|
vnetod # a tool to change env sections
|
2022-04-06 14:15:34 +03:00
|
|
|
|
2022-08-31 11:57:34 +03:00
|
|
|
# nix
|
|
|
|
nixpkgs-fmt
|
2022-09-18 18:29:40 +03:00
|
|
|
nil # lsp server
|
2022-04-06 14:15:34 +03:00
|
|
|
|
2022-04-07 17:04:30 +03:00
|
|
|
# browser
|
2022-09-27 23:52:01 +03:00
|
|
|
# a fork of firefox, focused on privacy, security and freedom
|
|
|
|
(librewolf.override {
|
|
|
|
extraNativeMessagingHosts = [ passff-host ];
|
|
|
|
})
|
2022-08-28 04:54:03 +03:00
|
|
|
|
|
|
|
# for work
|
|
|
|
google-cloud-sdk
|
|
|
|
kubectl
|
2022-08-29 15:40:41 +03:00
|
|
|
postgresql_12 # 🤷 I need only psql
|
2022-04-05 17:18:23 +03:00
|
|
|
];
|
|
|
|
|
2022-08-28 15:02:53 +03:00
|
|
|
# user interface
|
|
|
|
ui = {
|
2022-08-28 23:35:11 +03:00
|
|
|
# windows manager
|
|
|
|
xmonad.enable = true;
|
|
|
|
# bar
|
|
|
|
polybar.enable = true;
|
|
|
|
# lock
|
|
|
|
betterlockscreen.enable = true;
|
2022-08-24 23:54:30 +03:00
|
|
|
};
|
2022-04-23 23:42:26 +03:00
|
|
|
|
2022-04-27 01:17:51 +03:00
|
|
|
# shell
|
2022-08-24 14:02:45 +03:00
|
|
|
shell = {
|
|
|
|
zsh.enable = true;
|
|
|
|
|
|
|
|
prompt.starship.enable = true;
|
|
|
|
};
|
2022-04-07 14:13:44 +03:00
|
|
|
|
2022-04-27 01:17:51 +03:00
|
|
|
# programs
|
|
|
|
progs = {
|
2022-08-28 15:23:16 +03:00
|
|
|
alacritty.enable = true;
|
|
|
|
|
2022-08-30 04:32:05 +03:00
|
|
|
git = {
|
2022-04-07 14:13:44 +03:00
|
|
|
enable = true;
|
2022-08-30 04:32:05 +03:00
|
|
|
gpgKey = secrets.gpgSigningKey;
|
|
|
|
inherit (secrets) userName userEmail;
|
2022-09-01 22:04:00 +03:00
|
|
|
|
|
|
|
git-crypt.enable = true;
|
2022-04-07 14:13:44 +03:00
|
|
|
};
|
2022-04-17 00:35:27 +03:00
|
|
|
|
2022-04-27 01:17:51 +03:00
|
|
|
# password manager
|
|
|
|
pass.enable = true;
|
2022-04-05 10:42:47 +03:00
|
|
|
|
2022-04-27 01:17:51 +03:00
|
|
|
# email manager
|
2022-09-26 15:12:34 +03:00
|
|
|
himalaya.enable = false;
|
|
|
|
aerc.enable = true;
|
2022-04-05 16:40:07 +03:00
|
|
|
|
2022-05-03 23:35:29 +03:00
|
|
|
# finance manager
|
|
|
|
hledger.enable = true;
|
|
|
|
|
2022-08-05 17:45:55 +03:00
|
|
|
# file manager
|
|
|
|
vifm.enable = true;
|
|
|
|
|
2022-04-27 01:17:51 +03:00
|
|
|
# editor
|
|
|
|
nvim = {
|
2022-04-05 16:40:07 +03:00
|
|
|
enable = true;
|
2022-04-27 01:17:51 +03:00
|
|
|
default = true;
|
2022-04-05 16:40:07 +03:00
|
|
|
};
|
2022-04-05 17:02:37 +03:00
|
|
|
|
2022-04-27 01:17:51 +03:00
|
|
|
# tools
|
|
|
|
exa.enable = true;
|
|
|
|
zoxide.enable = true;
|
2022-04-05 16:40:07 +03:00
|
|
|
};
|
|
|
|
|
2022-08-31 13:23:54 +03:00
|
|
|
programs.direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
|
|
|
|
2022-08-30 00:22:29 +03:00
|
|
|
accounts = {
|
|
|
|
email = {
|
2022-09-26 15:12:34 +03:00
|
|
|
maildirBasePath = "${config.xdg.dataHome}/mail";
|
2022-08-30 00:22:29 +03:00
|
|
|
accounts = secrets.emailAccounts;
|
|
|
|
};
|
2022-04-05 11:26:26 +03:00
|
|
|
};
|
|
|
|
|
2022-04-14 16:55:53 +03:00
|
|
|
home.file = {
|
|
|
|
"scripts" = {
|
2022-10-08 13:22:46 +03:00
|
|
|
source = ./scripts;
|
2022-04-14 16:55:53 +03:00
|
|
|
recursive = true;
|
|
|
|
};
|
2022-04-06 14:15:34 +03:00
|
|
|
|
2022-04-14 16:55:53 +03:00
|
|
|
"pictures/wallpapers" = {
|
2022-10-08 13:22:46 +03:00
|
|
|
source = ./wallpapers;
|
2022-04-14 16:55:53 +03:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
2022-04-06 14:15:34 +03:00
|
|
|
|
2022-08-30 00:20:34 +03:00
|
|
|
xdg.enable = true;
|
2022-04-27 01:17:51 +03:00
|
|
|
|
2022-09-21 13:08:01 +03:00
|
|
|
services.wired = {
|
|
|
|
enable = true;
|
|
|
|
config = ./wired.ron;
|
|
|
|
};
|
2022-04-05 10:03:33 +03:00
|
|
|
}
|