infra/nix/home-manager/profiles/common.nix

98 lines
1.7 KiB
Nix
Raw Permalink Normal View History

2024-11-15 10:17:56 +01:00
{ pkgs, lib, ... }:
2024-02-08 20:53:22 +01:00
{
home.stateVersion = lib.mkDefault "23.11";
# TODO: re-enable this with the appropriate version?
# programs.home-manager.enable = true;
# programs.home-manager.path = https://github.com/rycee/home-manager/archive/445c0b1482c38172a9f8294ee16a7ca7462388e5.tar.gz;
# TODO: move this to an OS snippet?
nixpkgs.config = {
allowBroken = false;
allowUnfree = true;
allowUnsupportedSystem = true;
2024-11-15 10:17:56 +01:00
allowInsecurePredicate =
pkg:
builtins.elem (lib.getName pkg) [
2025-03-29 15:44:58 +01:00
"electron-32.3.3"
"electron"
];
permittedInsecurePackages = [
2025-03-29 15:44:58 +01:00
"electron-32.3.3"
"electron"
];
2024-11-15 10:17:56 +01:00
allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"obsidian"
"vivaldi"
"aspell-dict-en-science"
];
};
home.keyboard = {
layout = "us";
variant = "altgr-intl";
2022-10-31 11:04:38 +01:00
options = [
# 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"
];
};
xdg.enable = true;
programs.direnv.enable = true;
# Don't create .pyc files.
home.sessionVariables.PYTHONDONTWRITEBYTECODE = "1";
programs.command-not-found.enable = true;
programs.fzf.enable = true;
2018-11-03 19:33:58 +01:00
2024-11-15 10:17:56 +01:00
home.packages = with pkgs; [
coreutils
vcsh
htop
iperf3
nethogs
# Authentication
cacert
openssl
mkpasswd
just
ripgrep
du-dust
elfutils
exfat
file
tree
pwgen
proot
parted
pv
tmux
wget
curl
# git helpers
git-crypt
gitFull
pastebinit
gist
mr
usbutils
pciutils
];
}