]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/essential.nix
dnscrypt-proxy2: support nftables
[julm/julm-nix.git] / home-manager / profiles / essential.nix
1 { pkgs, lib, config, nixosConfig, ... }:
2 {
3 imports = [
4 ./bash.nix
5 ./htop.nix
6 ./ssh.nix
7 ./tmux.nix
8 ];
9 programs.bat.enable = lib.mkDefault true;
10 home.packages = [
11 nixosConfig.boot.kernelPackages.cpupower
12 pkgs.acpi
13 pkgs.audit
14 pkgs.binutils
15 pkgs.cryptsetup
16 pkgs.dmidecode
17 pkgs.dstat
18 pkgs.e2fsprogs
19 pkgs.file
20 pkgs.fio
21 pkgs.gptfdisk
22 pkgs.hdparm
23 pkgs.hwinfo
24 pkgs.i2c-tools # for decode-dimms
25 pkgs.iotop
26 pkgs.iperf
27 pkgs.ldns
28 pkgs.lm_sensors
29 pkgs.lshw
30 pkgs.lsof
31 pkgs.lsscsi
32 pkgs.mkpasswd
33 #pkgs.moreutils
34 pkgs.multitail
35 pkgs.nload
36 pkgs.parted
37 pkgs.pciutils
38 #pkgs.powertop
39 pkgs.procps
40 pkgs.pstree
41 pkgs.pv
42 pkgs.s-tui
43 pkgs.smartmontools
44 pkgs.smem
45 pkgs.strace
46 pkgs.stress-ng
47 pkgs.testdisk
48 pkgs.tree
49 pkgs.usbutils
50 pkgs.util-linux
51 pkgs.which
52 ] ++ lib.optionals nixosConfig.services.xserver.enable [
53 pkgs.gparted
54 pkgs.xdg-utils
55 ] ++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
56 pkgs.ncdu
57 ];
58 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
59 home.sessionVariables = {
60 EDITOR = "vim";
61 LANG = "fr_FR.UTF-8";
62 LESS = "-FRSX";
63 # NixOS generates a customized pkgs.glibcLocales in config.i18n.glibcLocales
64 #LOCALE_ARCHIVE = "${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive";
65 MANPAGER = "less";
66 };
67 # Keep only the last generation of the home-manager profile
68 home.activation.delete-generations = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
69 if [ "$(${pkgs.coreutils}/bin/id -u)" = 0 ]
70 then profile="''${NIX_STATE_DIR:-/nix/var/nix}/profiles/per-user/$USER"
71 else profile="''${XDG_STATE_HOME:-$HOME/.local/state}"/nix/profiles
72 fi
73 ${nixosConfig.nix.package}/bin/nix-env --delete-generations +1 --profile "$profile"/home-manager
74 '';
75 }