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