dotfiles/nix-conf/home/includes/common.nix

167 lines
3.2 KiB
Nix
Raw Normal View History

2022-09-10 14:51:06 +00:00
{ config, pkgs, ... }:
2022-10-28 19:59:49 +00:00
let
hcr = pkgs.callPackage ./scripts/hm-changes-report.nix { inherit config pkgs; };
scr = pkgs.callPackage ./scripts/system-changes-report.nix { inherit config pkgs; };
in
2022-09-10 14:51:06 +00:00
{
imports = [
./zsh.nix
];
home.packages = with pkgs; [
2022-10-28 19:59:49 +00:00
hcr
scr
2022-09-15 09:39:15 +00:00
aspell
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
2022-09-10 14:51:06 +00:00
bat
2022-11-12 21:13:04 +00:00
bat-extras.batdiff
bat-extras.batgrep
bat-extras.batman
bat-extras.batwatch
#bat-extras.batpipe # wait for 22.11
2022-09-10 14:51:06 +00:00
bottom
2022-09-13 06:48:02 +00:00
broot
2022-09-10 14:51:06 +00:00
curl
difftastic
duf
du-dust
elinks
2022-11-12 21:13:04 +00:00
entr
2022-09-10 14:51:06 +00:00
exa
fd
2022-11-15 13:11:56 +00:00
file
2022-09-10 14:51:06 +00:00
fzf
git
gnupg
gopass
2022-11-15 13:11:56 +00:00
inetutils
2022-09-15 09:39:15 +00:00
ispell
2022-09-10 14:51:06 +00:00
isync
jq
2022-11-15 13:11:56 +00:00
libqalculate
2022-09-10 14:51:06 +00:00
lscolors
2022-09-13 06:48:02 +00:00
lsd
2022-09-10 14:51:06 +00:00
lynx
2022-09-20 12:15:17 +00:00
nixfmt
2022-09-10 14:51:06 +00:00
nix-info
2022-09-13 06:48:02 +00:00
nix-prefetch-git
nix-prefetch-github
2022-10-26 10:17:57 +00:00
nvd
2022-09-15 09:39:15 +00:00
pinentry
2022-10-17 15:20:44 +00:00
pass
2022-09-10 14:51:06 +00:00
ripgrep
rlwrap
sd
tealdeer
ugrep
2022-11-15 13:11:56 +00:00
uni
2022-09-10 14:51:06 +00:00
w3m
];
programs.gpg.enable = true;
2022-11-05 16:17:36 +00:00
programs.nix-index = {
enable = true;
enableZshIntegration = false;
enableBashIntegration = false;
};
2022-11-14 16:35:21 +00:00
programs.vim = {
enable = true;
extraConfig = ''
colorscheme molokai
2022-11-16 20:47:02 +00:00
" highlight doesn't work properly without this
2022-11-14 16:35:21 +00:00
syntax enable
highlight Normal ctermfg=white ctermbg=black
set hlsearch
set showmatch
'';
plugins = [ pkgs.vimPlugins.sensible
pkgs.vimPlugins.auto-pairs
pkgs.vimPlugins.ctrlp
pkgs.vimPlugins.inkpot
2022-11-16 20:54:15 +00:00
pkgs.vimPlugins.molokai
2022-11-14 16:35:21 +00:00
pkgs.vimPlugins.surround
pkgs.vimPlugins.vim-lastplace
pkgs.vimPlugins.vim-pasta
pkgs.vimPlugins.vim-sleuth
];
settings = {
background = "dark";
copyindent = true;
expandtab = true;
ignorecase = true;
number = true;
shiftwidth = 4;
smartcase = true;
tabstop = 4;
};
};
2022-11-14 21:23:39 +00:00
programs.ssh = {
enable = true;
extraConfig = ''
Host *
AddKeysToAgent yes
IgnoreUnknown UseKeychain
UseKeychain yes
'';
includes = [ "~/.ssh/config_local" ];
matchBlocks = {
"djm.ovh" = {
hostname = "v.djm.ovh";
port = 2222;
};
"devio" = {
hostname = "devio.us";
user = "deejayem";
port = 2222;
};
"sdf" = {
hostname = "sdf.org";
user = "deejayem";
};
"sdfeu" = {
hostname = "sdf-eu.org";
user = "deejayem";
};
"grex" = {
hostname = "grex.org";
user = "deejayem";
};
"blinkenshell" = {
hostname = "ssh.blinkenshell.org";
port = 2222;
};
"hashbang" = {
hostname = "de1.hashbang.sh";
};
"o1" = {
hostname = "130.162.163.108";
};
"o2" = {
hostname = "143.47.239.39";
};
"tilde.institute" = {
hostname = "tilde.institute";
};
"tilde.team" = {
hostname = "tilde.team";
};
"ctrl-c.club" = {
hostname = "ctrl-c.club";
};
"github.com" = {
hostname = "github.com";
user = "git";
identityFile = "~/.ssh/id_ed25519";
identitiesOnly = true;
};
};
};
2022-09-10 14:51:06 +00:00
}