-{ pkgs, lib, config, hostName, ... }:
+{ pkgs, hostName, ... }:
{
-imports = [
- ./programs.nix
- ./options.nix
-];
-host.desktop =
- hostName == "patate";
-gtk.enable = config.host.desktop;
-programs.bash.enable = true;
-# error: attribute 'gtk3' missing
-#programs.firefox.enable = config.host.desktop;
-programs.git.enable = true;
-programs.git.package = pkgs.gitMinimal;
-programs.gpg.enable = true;
-programs.htop.enable = true;
-programs.home-manager.enable = true;
-programs.ssh.enable = true;
-programs.vim.enable = true;
-home.file.".profile".text = ''
- # Tell XFCE to not start ssh-agent
- if command -v xfconf-query >/dev/null && test ''${DISPLAY:+set}; then
- xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
- fi
-'';
-services.gpg-agent.enable = true;
-services.redshift.enable = config.host.desktop;
-services.screen-locker = {
- enable = true;
- lockCmd = toString (pkgs.writeShellScript "xsecurelock" ''
- export PATH=${with pkgs; lib.makeBinPath [coreutils gnugrep xsecurelock xorg.xset]}
- XSECURELOCK_BLANK_DPMS_STATE=off \
- XSECURELOCK_BLANK_TIMEOUT=1 \
- XSECURELOCK_DIM_TIME_MS=2000 \
- XSECURELOCK_DISCARD_FIRST_KEYPRESS=0 \
- XSECURELOCK_SAVER=saver_blank \
- XSECURELOCK_SHOW_DATETIME=1 \
- XSECURELOCK_SHOW_HOSTNAME=1 \
- XSECURELOCK_SHOW_USERNAME=1 \
- XSECURELOCK_WAIT_TIME_MS=2000 \
- ${pkgs.xsecurelock}/bin/xsecurelock
- '');
- #XSECURELOCK_SWITCH_USER_COMMAND="${pkgs.lightdm}/bin/dm-tool switch-to-greeter" \
- inactiveInterval = lib.mkDefault 5; # minutes
- xautolock.detectSleep = true;
- xss-lock.extraOptions = [
- "--transfer-sleep-lock"
- #"-n" "${pkgs.xss-lock}/share/doc/xss-lock/dim-screen.sh"
+ imports = [
+ ../home-manager/profiles/essential.nix
+ ../home-manager/profiles/vim.nix
+ ../home-manager/profiles/yt-dlp.nix
+ ../home-manager/options.nix
+ (import (sevy/hosts + "/${hostName}.nix"))
+ ];
+ home.stateVersion = "20.09";
+ home.packages = [
+ pkgs.hledger
];
-};
-home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
-home.sessionVariables = {
- EDITOR = "vim -g";
- LANG = "fr_FR.UTF-8";
- LESS = "-FRSX";
- LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
- MANPAGER = "less";
-};
-home.packages = [
- pkgs.acpi
- pkgs.aria2
- pkgs.aspell
- pkgs.aspellDicts.fr
- pkgs.bc
- pkgs.binutils
- pkgs.bmon
- pkgs.coreutils
- pkgs.croc
- pkgs.cryptsetup
- pkgs.curl
- pkgs.dino
- #pkgs.dnsutils
- pkgs.dstat
- pkgs.ffmpeg
- pkgs.file
- pkgs.git-crypt
- pkgs.go-mtpfs
- pkgs.gnumake
- pkgs.gvfs
- #pkgs.haskell.packages.ghc865.zerobin
- pkgs.hledger
- pkgs.hunspell
- pkgs.hunspellDicts.fr-moderne
- pkgs.imagemagick
- pkgs.inetutils
- pkgs.knot-dns
- pkgs.less
- pkgs.linuxPackages.cpupower
- pkgs.lm_sensors
- pkgs.lsof
- pkgs.lsscsi
- #pkgs.meli
- pkgs.miniupnpc
- pkgs.ncdu
- pkgs.neofetch
- pkgs.ntfs3g
- #pkgs.onionshare
- pkgs.p7zip
- pkgs.pass
- pkgs.pciutils
- pkgs.procps
- pkgs.rdfind
- pkgs.smartmontools
- pkgs.sshfs
- pkgs.sudo
- pkgs.tig
- pkgs.tree
- pkgs.unzip
- pkgs.usbutils
- pkgs.utillinux
- pkgs.vbetool
- pkgs.wget
- pkgs.which
- pkgs.xdg_utils
- pkgs.yt-dlp
- ] ++ lib.optionals config.host.desktop [
- #pkgs.amule
- pkgs.chromium
- pkgs.copyq
- pkgs.djview
- pkgs.dmenu
- pkgs.evince
- pkgs.firefox
- #pkgs.freecad
- pkgs.freeciv_gtk
- pkgs.geeqie
- pkgs.gimp
- pkgs.gparted
- pkgs.graphviz
- pkgs.keepass
- pkgs.libdvdcss
- pkgs.libreoffice
- pkgs.liferea
- pkgs.mplayer
- pkgs.mumble
- pkgs.networkmanager-openvpn
- pkgs.networkmanagerapplet
- pkgs.pasystray
- pkgs.pavucontrol
- (pkgs.qgis.override { extraPythonPackages = (ps: [
- ps.pyqt5_with_qtwebkit
- ]); })
- pkgs.thunderbird
- pkgs.transmission-gtk
- pkgs.vlc
- pkgs.xclip
- pkgs.xorg.xhost
- pkgs.xsane
-
- pkgs.elementary-xfce-icon-theme
- pkgs.gnome3.gnome-calculator
- pkgs.gnome3.defaultIconTheme
- pkgs.gnome3.file-roller
- pkgs.gnome3.gnome-keyring
- pkgs.gnome3.seahorse
- pkgs.hicolor-icon-theme
- pkgs.xfce.thunar-volman
-];
}