fix home-manager and misc changes
This commit is contained in:
106
modules/home/home/default.nix
Normal file
106
modules/home/home/default.nix
Normal file
@@ -0,0 +1,106 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib.mine) enabled;
|
||||
|
||||
imp = config.mine.home.impermanence.enable;
|
||||
in {
|
||||
config = {
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
dig
|
||||
duf
|
||||
du-dust
|
||||
eltclsh
|
||||
fzf
|
||||
idracclient
|
||||
inetutils
|
||||
jq
|
||||
neofetch
|
||||
nerdfonts
|
||||
nodejs_18
|
||||
p7zip
|
||||
poppler_utils
|
||||
pv
|
||||
qrencode
|
||||
restic
|
||||
rclone
|
||||
ripgrep
|
||||
switchssh
|
||||
unzip
|
||||
yq
|
||||
zip
|
||||
];
|
||||
sessionPath = ["$HOME/bin" "$HOME/.local/bin"];
|
||||
shellAliases = {
|
||||
# "df" = "duf -only local";
|
||||
# "du" = "dust -xd1 --skip-total";
|
||||
# # "ducks" = "du -chs * 2>/dev/null | sort -rh | head -11 && du -chs .* 2>/dev/null | sort -rh | head -11";
|
||||
# "gmount" = "rclone mount google:/ ~/Drive/";
|
||||
"df" = "df -h";
|
||||
"nano" = "vim";
|
||||
};
|
||||
stateVersion = "24.05";
|
||||
};
|
||||
# manual = {
|
||||
# html.enable = false;
|
||||
# manpages.enable = false;
|
||||
# json.enable = false;
|
||||
# };
|
||||
programs = {
|
||||
bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableVteIntegration = true;
|
||||
};
|
||||
dircolors = enabled;
|
||||
direnv = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
nix-direnv = enabled;
|
||||
};
|
||||
gpg = {
|
||||
enable = true;
|
||||
settings = {
|
||||
personal-cipher-preferences = "AES256 AES192 AES";
|
||||
personal-digest-preferences = "SHA512 SHA384 SHA256";
|
||||
personal-compress-preferences = "ZLIB BZIP2 ZIP Uncompressed";
|
||||
default-preference-list = "SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed";
|
||||
cert-digest-algo = "SHA512";
|
||||
s2k-digest-algo = "SHA512";
|
||||
s2k-cipher-algo = "AES256";
|
||||
charset = "utf-8";
|
||||
fixed-list-mode = true;
|
||||
no-comments = true;
|
||||
no-emit-version = true;
|
||||
no-greeting = true;
|
||||
keyid-format = "0xlong";
|
||||
list-options = "show-uid-validity";
|
||||
verify-options = "show-uid-validity";
|
||||
with-fingerprint = true;
|
||||
require-cross-certification = true;
|
||||
no-symkey-cache = true;
|
||||
use-agent = true;
|
||||
throw-keyids = true;
|
||||
};
|
||||
};
|
||||
home-manager = enabled;
|
||||
};
|
||||
services = {
|
||||
gpg-agent = {
|
||||
enable = true;
|
||||
enableScDaemon = true;
|
||||
enableSshSupport = true;
|
||||
extraConfig = ''
|
||||
ttyname $GPG_TTY
|
||||
'';
|
||||
defaultCacheTtl = 10800;
|
||||
maxCacheTtl = 21600;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.my-namespace) mkEnableOption mkIf;
|
||||
cfg = config.my-namespace.home.stream-tools;
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.mine.home.stream-tools;
|
||||
in {
|
||||
options.my-namespace.home.stream-tools = {
|
||||
enable = mkEnableOption "Enable the Stream Machine Tools";
|
||||
Reference in New Issue
Block a user