]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/essential.nix
inxi: add to essentials
[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.direnv
17 pkgs.dislocker
18 pkgs.dmidecode
19 pkgs.dstat
20 pkgs.dust
21 pkgs.e2fsprogs
22 pkgs.file
23 pkgs.fio
24 pkgs.gptfdisk
25 pkgs.hdparm
26 pkgs.hwinfo
27 pkgs.i2c-tools # for decode-dimms
28 pkgs.inxi
29 pkgs.iotop
30 pkgs.iperf
31 pkgs.kernel-hardening-checker
32 pkgs.ldns
33 pkgs.lm_sensors
34 pkgs.lshw
35 pkgs.lsof
36 pkgs.lsscsi
37 pkgs.mkpasswd
38 pkgs.mmc-utils
39 #pkgs.moreutils
40 pkgs.multitail
41 pkgs.nload
42 pkgs.parted
43 pkgs.pciutils
44 #pkgs.powertop
45 pkgs.procps
46 pkgs.pstree
47 pkgs.pv
48 pkgs.s-tui
49 pkgs.smartmontools
50 pkgs.smem
51 pkgs.spectre-meltdown-checker
52 pkgs.strace
53 pkgs.stress-ng
54 pkgs.testdisk
55 pkgs.tree
56 pkgs.usbutils
57 pkgs.util-linux
58 pkgs.which
59 ] ++ lib.optionals nixosConfig.services.xserver.enable [
60 pkgs.gparted
61 pkgs.xdg-utils
62 ] ++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isx86_64 [
63 pkgs.ncdu
64 ];
65 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
66 home.sessionVariables = {
67 EDITOR = "vim";
68 LANG = "fr_FR.UTF-8";
69 LESS = "-FRSX";
70 # NixOS generates a customized pkgs.glibcLocales in config.i18n.glibcLocales
71 #LOCALE_ARCHIVE = "${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive";
72 MANPAGER = "less";
73 };
74 # Keep only the last generation of the home-manager profile
75 home.activation.delete-generations = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
76 if [ "$(${pkgs.coreutils}/bin/id -u)" = 0 ]
77 then profile="''${NIX_STATE_DIR:-/nix/var/nix}/profiles/per-user/$USER"
78 else profile="''${XDG_STATE_HOME:-$HOME/.local/state}"/nix/profiles
79 fi
80 ${nixosConfig.nix.package}/bin/nix-env --delete-generations +1 --profile "$profile"/home-manager
81 '';
82 }