2024-02-08 20:53:22 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-07 22:01:03 +01:00
|
|
|
home.stateVersion = lib.mkDefault "23.11";
|
|
|
|
|
2023-04-15 12:21:22 +02:00
|
|
|
# TODO: re-enable this with the appropriate version?
|
2019-03-06 00:04:09 +01:00
|
|
|
# programs.home-manager.enable = true;
|
|
|
|
# programs.home-manager.path = https://github.com/rycee/home-manager/archive/445c0b1482c38172a9f8294ee16a7ca7462388e5.tar.gz;
|
2018-10-31 19:52:39 +01:00
|
|
|
|
2024-01-24 00:24:04 +00:00
|
|
|
# TODO: move this to an OS snippet?
|
2018-10-31 19:52:39 +01:00
|
|
|
nixpkgs.config = {
|
2023-01-26 11:29:57 +01:00
|
|
|
allowBroken = false;
|
2018-10-31 19:52:39 +01:00
|
|
|
allowUnfree = true;
|
2024-11-02 22:48:20 +01:00
|
|
|
allowUnsupportedSystem = true;
|
|
|
|
|
|
|
|
allowInsecurePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
"electron-28.3.3"
|
|
|
|
"electron-27.3.11"
|
|
|
|
"electron"
|
|
|
|
];
|
2022-11-14 23:43:11 +01:00
|
|
|
|
2024-05-25 11:36:50 +02:00
|
|
|
permittedInsecurePackages = [
|
2024-11-02 22:48:20 +01:00
|
|
|
"electron-28.3.3"
|
|
|
|
"electron-27.3.11"
|
|
|
|
"electron"
|
2024-05-25 11:36:50 +02:00
|
|
|
];
|
2024-11-02 22:48:20 +01:00
|
|
|
|
|
|
|
allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
"obsidian"
|
|
|
|
"vivaldi"
|
|
|
|
"aspell-dict-en-science"
|
|
|
|
];
|
2023-01-26 11:29:57 +01:00
|
|
|
};
|
2023-01-26 11:27:09 +01:00
|
|
|
|
2018-10-31 19:52:39 +01:00
|
|
|
home.keyboard = {
|
|
|
|
layout = "us";
|
|
|
|
variant = "altgr-intl";
|
2022-10-31 11:04:38 +01:00
|
|
|
options = [
|
2023-05-23 21:05:22 +02:00
|
|
|
# nodeadkeys doesn't make sense with us layout: see https://man.archlinux.org/man/xkeyboard-config.7 for valid options
|
|
|
|
# "nodeadkeys"
|
2022-10-31 11:04:38 +01:00
|
|
|
# "caps:swapescape"
|
2018-10-31 19:52:39 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-04-15 12:21:22 +02:00
|
|
|
xdg.enable = true;
|
|
|
|
|
2018-10-31 19:52:39 +01:00
|
|
|
programs.direnv.enable = true;
|
|
|
|
|
2023-04-15 12:21:22 +02:00
|
|
|
# Don't create .pyc files.
|
|
|
|
home.sessionVariables.PYTHONDONTWRITEBYTECODE = "1";
|
2018-10-31 19:52:39 +01:00
|
|
|
|
|
|
|
programs.command-not-found.enable = true;
|
|
|
|
programs.fzf.enable = true;
|
2018-11-03 19:33:58 +01:00
|
|
|
|
2023-02-07 18:23:51 +01:00
|
|
|
home.packages =
|
2024-02-08 20:53:22 +01:00
|
|
|
[]
|
2023-02-07 18:23:51 +01:00
|
|
|
++ (with pkgs; [
|
2024-01-24 00:24:04 +00:00
|
|
|
coreutils
|
|
|
|
|
2023-02-07 18:23:51 +01:00
|
|
|
vcsh
|
2023-04-15 12:21:22 +02:00
|
|
|
|
2024-01-24 00:24:04 +00:00
|
|
|
htop
|
|
|
|
iperf3
|
|
|
|
nethogs
|
|
|
|
|
2023-02-07 18:23:51 +01:00
|
|
|
# Authentication
|
|
|
|
cacert
|
|
|
|
openssl
|
|
|
|
mkpasswd
|
|
|
|
|
|
|
|
just
|
|
|
|
ripgrep
|
|
|
|
du-dust
|
2023-04-15 12:21:22 +02:00
|
|
|
|
|
|
|
elfutils
|
|
|
|
exfat
|
|
|
|
file
|
|
|
|
tree
|
|
|
|
pwgen
|
|
|
|
proot
|
|
|
|
|
|
|
|
parted
|
|
|
|
pv
|
|
|
|
tmux
|
|
|
|
wget
|
|
|
|
curl
|
|
|
|
|
|
|
|
# git helpers
|
|
|
|
git-crypt
|
|
|
|
gitFull
|
|
|
|
pastebinit
|
|
|
|
gist
|
|
|
|
mr
|
|
|
|
|
|
|
|
usbutils
|
|
|
|
pciutils
|
2023-02-07 18:23:51 +01:00
|
|
|
]);
|
2018-10-31 19:52:39 +01:00
|
|
|
}
|