2017-11-24 21:58:16 +01:00
|
|
|
{ pkgs
|
2020-01-16 23:41:14 +01:00
|
|
|
|
2021-07-18 23:34:50 +02:00
|
|
|
# Note, this should be "the standard library" + HM extensions.
|
2017-11-24 21:58:16 +01:00
|
|
|
, lib
|
|
|
|
|
2021-07-18 23:34:50 +02:00
|
|
|
# Whether to enable module type checking.
|
2017-11-24 21:58:16 +01:00
|
|
|
, check ? true
|
2020-03-01 17:06:20 +01:00
|
|
|
|
2021-07-18 23:34:50 +02:00
|
|
|
# If disabled, the pkgs attribute passed to this function is used instead.
|
|
|
|
, useNixpkgsModule ? true }:
|
2017-11-24 21:58:16 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2021-07-07 23:24:27 +02:00
|
|
|
modules = [
|
|
|
|
./accounts/email.nix
|
2022-05-04 00:29:17 +02:00
|
|
|
./config/home-cursor.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./config/i18n.nix
|
|
|
|
./files.nix
|
|
|
|
./home-environment.nix
|
|
|
|
./i18n/input-method/default.nix
|
2021-11-21 17:13:30 +01:00
|
|
|
./launchd/default.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./manual.nix
|
|
|
|
./misc/dconf.nix
|
|
|
|
./misc/debug.nix
|
2022-09-06 15:50:36 +02:00
|
|
|
./misc/editorconfig.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./misc/fontconfig.nix
|
|
|
|
./misc/gtk.nix
|
|
|
|
./misc/lib.nix
|
|
|
|
./misc/news.nix
|
|
|
|
./misc/numlock.nix
|
|
|
|
./misc/pam.nix
|
|
|
|
./misc/qt.nix
|
2022-04-18 21:44:20 +02:00
|
|
|
./misc/specialization.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./misc/submodule-support.nix
|
|
|
|
./misc/tmpfiles.nix
|
|
|
|
./misc/version.nix
|
|
|
|
./misc/vte.nix
|
|
|
|
./misc/xdg-desktop-entries.nix
|
|
|
|
./misc/xdg-mime-apps.nix
|
|
|
|
./misc/xdg-mime.nix
|
|
|
|
./misc/xdg-system-dirs.nix
|
|
|
|
./misc/xdg-user-dirs.nix
|
|
|
|
./misc/xdg.nix
|
|
|
|
./programs/abook.nix
|
2022-08-11 23:08:28 +02:00
|
|
|
./programs/aerc.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/afew.nix
|
|
|
|
./programs/alacritty.nix
|
|
|
|
./programs/alot.nix
|
|
|
|
./programs/aria2.nix
|
|
|
|
./programs/astroid.nix
|
2021-10-05 23:05:22 +02:00
|
|
|
./programs/atuin.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/autojump.nix
|
|
|
|
./programs/autorandr.nix
|
|
|
|
./programs/bash.nix
|
2022-08-07 01:11:57 +02:00
|
|
|
./programs/bashmount.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/bat.nix
|
|
|
|
./programs/beets.nix
|
2021-09-13 03:09:31 +02:00
|
|
|
./programs/bottom.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/broot.nix
|
|
|
|
./programs/browserpass.nix
|
2022-08-17 18:16:01 +02:00
|
|
|
./programs/btop.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/chromium.nix
|
|
|
|
./programs/command-not-found/command-not-found.nix
|
|
|
|
./programs/dircolors.nix
|
|
|
|
./programs/direnv.nix
|
|
|
|
./programs/eclipse.nix
|
|
|
|
./programs/emacs.nix
|
2022-02-02 16:46:23 +01:00
|
|
|
./programs/eww.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/exa.nix
|
|
|
|
./programs/feh.nix
|
|
|
|
./programs/firefox.nix
|
|
|
|
./programs/fish.nix
|
|
|
|
./programs/foot.nix
|
|
|
|
./programs/fzf.nix
|
|
|
|
./programs/getmail.nix
|
|
|
|
./programs/gh.nix
|
|
|
|
./programs/git.nix
|
2021-11-10 19:52:30 +01:00
|
|
|
./programs/gitui.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/gnome-terminal.nix
|
|
|
|
./programs/go.nix
|
|
|
|
./programs/gpg.nix
|
2022-01-04 00:09:24 +01:00
|
|
|
./programs/helix.nix
|
2021-02-09 12:59:11 +01:00
|
|
|
./programs/hexchat.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/himalaya.nix
|
|
|
|
./programs/home-manager.nix
|
|
|
|
./programs/htop.nix
|
2022-08-01 17:03:41 +02:00
|
|
|
./programs/hyfetch.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/i3status-rust.nix
|
|
|
|
./programs/i3status.nix
|
|
|
|
./programs/info.nix
|
2022-01-27 19:15:45 +01:00
|
|
|
./programs/ion.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/irssi.nix
|
2021-08-02 11:14:10 +02:00
|
|
|
./programs/java.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/jq.nix
|
2022-02-19 01:57:35 +01:00
|
|
|
./programs/just.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/kakoune.nix
|
|
|
|
./programs/keychain.nix
|
|
|
|
./programs/kitty.nix
|
2021-10-21 16:40:36 +02:00
|
|
|
./programs/kodi.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/lazygit.nix
|
2021-11-11 11:32:48 +01:00
|
|
|
./programs/less.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/lesspipe.nix
|
|
|
|
./programs/lf.nix
|
2022-03-14 12:53:42 +01:00
|
|
|
./programs/librewolf.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/lieer.nix
|
|
|
|
./programs/lsd.nix
|
|
|
|
./programs/man.nix
|
|
|
|
./programs/mangohud.nix
|
|
|
|
./programs/matplotlib.nix
|
|
|
|
./programs/mbsync.nix
|
|
|
|
./programs/mcfly.nix
|
|
|
|
./programs/mercurial.nix
|
2022-05-29 18:53:49 +02:00
|
|
|
./programs/micro.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/mpv.nix
|
|
|
|
./programs/msmtp.nix
|
|
|
|
./programs/mu.nix
|
2022-05-12 07:11:22 +02:00
|
|
|
./programs/mujmap.nix
|
2021-12-08 05:20:00 +01:00
|
|
|
./programs/navi.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/ncmpcpp.nix
|
|
|
|
./programs/ncspot.nix
|
|
|
|
./programs/ne.nix
|
|
|
|
./programs/neomutt.nix
|
|
|
|
./programs/neovim.nix
|
|
|
|
./programs/newsboat.nix
|
2022-08-17 13:58:46 +02:00
|
|
|
./programs/nheko.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/nix-index.nix
|
2021-10-06 01:14:52 +02:00
|
|
|
./programs/nnn.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/noti.nix
|
|
|
|
./programs/notmuch.nix
|
|
|
|
./programs/nushell.nix
|
|
|
|
./programs/obs-studio.nix
|
|
|
|
./programs/octant.nix
|
|
|
|
./programs/offlineimap.nix
|
|
|
|
./programs/opam.nix
|
2022-01-01 20:51:06 +01:00
|
|
|
./programs/pandoc.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/password-store.nix
|
|
|
|
./programs/pazi.nix
|
|
|
|
./programs/pet.nix
|
|
|
|
./programs/pidgin.nix
|
2022-03-28 17:19:38 +02:00
|
|
|
./programs/pistol.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/piston-cli.nix
|
|
|
|
./programs/powerline-go.nix
|
2022-02-02 09:55:08 +01:00
|
|
|
./programs/pubs.nix
|
2022-04-11 03:54:04 +02:00
|
|
|
./programs/pylint.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/qutebrowser.nix
|
|
|
|
./programs/rbw.nix
|
|
|
|
./programs/readline.nix
|
|
|
|
./programs/rofi-pass.nix
|
|
|
|
./programs/rofi.nix
|
|
|
|
./programs/rtorrent.nix
|
2021-12-30 12:47:44 +01:00
|
|
|
./programs/sagemath.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/sbt.nix
|
|
|
|
./programs/scmpuff.nix
|
|
|
|
./programs/senpai.nix
|
2022-04-17 23:07:55 +02:00
|
|
|
./programs/sioyek.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/skim.nix
|
|
|
|
./programs/sm64ex.nix
|
2021-12-04 05:20:00 +01:00
|
|
|
./programs/sqls.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/ssh.nix
|
|
|
|
./programs/starship.nix
|
2022-06-07 21:01:14 +02:00
|
|
|
./programs/swaylock.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/taskwarrior.nix
|
2022-05-01 16:27:04 +02:00
|
|
|
./programs/tealdeer.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/terminator.nix
|
|
|
|
./programs/termite.nix
|
|
|
|
./programs/texlive.nix
|
2022-01-03 00:50:56 +01:00
|
|
|
./programs/timidity.nix
|
2021-12-18 16:29:55 +01:00
|
|
|
./programs/tint2.nix
|
2022-02-26 23:42:01 +01:00
|
|
|
./programs/tiny.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/tmux.nix
|
|
|
|
./programs/topgrade.nix
|
|
|
|
./programs/urxvt.nix
|
|
|
|
./programs/vim.nix
|
|
|
|
./programs/vscode.nix
|
|
|
|
./programs/vscode/haskell.nix
|
2022-06-15 23:44:52 +02:00
|
|
|
./programs/pywal.nix
|
2022-01-02 00:22:05 +01:00
|
|
|
./programs/watson.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/waybar.nix
|
2022-04-08 08:48:27 +02:00
|
|
|
./programs/wezterm.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/xmobar.nix
|
2022-07-09 06:20:00 +02:00
|
|
|
./programs/yt-dlp.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/z-lua.nix
|
|
|
|
./programs/zathura.nix
|
2022-02-02 17:40:40 +01:00
|
|
|
./programs/zellij.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./programs/zoxide.nix
|
|
|
|
./programs/zplug.nix
|
|
|
|
./programs/zsh.nix
|
|
|
|
./programs/zsh/prezto.nix
|
|
|
|
./services/barrier.nix
|
2021-09-06 03:00:28 +02:00
|
|
|
./services/betterlockscreen.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/blueman-applet.nix
|
|
|
|
./services/caffeine.nix
|
|
|
|
./services/cbatticon.nix
|
|
|
|
./services/clipmenu.nix
|
|
|
|
./services/devilspie2.nix
|
|
|
|
./services/dropbox.nix
|
|
|
|
./services/dunst.nix
|
|
|
|
./services/dwm-status.nix
|
2021-08-11 17:21:43 +02:00
|
|
|
./services/easyeffects.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/emacs.nix
|
|
|
|
./services/etesync-dav.nix
|
2021-10-25 00:27:41 +02:00
|
|
|
./services/espanso.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/flameshot.nix
|
|
|
|
./services/fluidsynth.nix
|
2021-08-10 06:21:03 +02:00
|
|
|
./services/fnott.nix
|
2022-02-16 17:09:46 +01:00
|
|
|
./services/fusuma.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/getmail.nix
|
2021-07-15 03:20:28 +02:00
|
|
|
./services/git-sync.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/gnome-keyring.nix
|
|
|
|
./services/gpg-agent.nix
|
|
|
|
./services/grobi.nix
|
2019-02-24 20:33:56 +01:00
|
|
|
./services/gromit-mpx.nix
|
2021-07-05 22:59:19 +02:00
|
|
|
./services/home-manager-auto-upgrade.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/hound.nix
|
|
|
|
./services/imapnotify.nix
|
|
|
|
./services/kanshi.nix
|
|
|
|
./services/kbfs.nix
|
|
|
|
./services/kdeconnect.nix
|
|
|
|
./services/keepassx.nix
|
|
|
|
./services/keybase.nix
|
|
|
|
./services/keynav.nix
|
|
|
|
./services/lieer.nix
|
|
|
|
./services/lorri.nix
|
|
|
|
./services/mako.nix
|
|
|
|
./services/mbsync.nix
|
2022-01-21 14:22:52 +01:00
|
|
|
./services/mopidy.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/mpd.nix
|
|
|
|
./services/mpdris2.nix
|
2022-04-05 05:48:13 +02:00
|
|
|
./services/mpd-discord-rpc.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/mpris-proxy.nix
|
|
|
|
./services/muchsync.nix
|
|
|
|
./services/network-manager-applet.nix
|
|
|
|
./services/nextcloud-client.nix
|
2021-08-09 02:29:36 +02:00
|
|
|
./services/notify-osd.nix
|
2021-09-20 21:13:20 +02:00
|
|
|
./services/opensnitch-ui.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/owncloud-client.nix
|
|
|
|
./services/pantalaimon.nix
|
|
|
|
./services/parcellite.nix
|
|
|
|
./services/pass-secret-service.nix
|
|
|
|
./services/password-store-sync.nix
|
|
|
|
./services/pasystray.nix
|
|
|
|
./services/pbgopy.nix
|
|
|
|
./services/picom.nix
|
|
|
|
./services/plan9port.nix
|
|
|
|
./services/playerctld.nix
|
2022-02-02 22:34:19 +01:00
|
|
|
./services/plex-mpv-shim.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/polybar.nix
|
|
|
|
./services/poweralertd.nix
|
2022-08-13 04:37:04 +02:00
|
|
|
./services/pueue.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/pulseeffects.nix
|
|
|
|
./services/random-background.nix
|
2022-02-07 11:54:09 +01:00
|
|
|
./services/recoll.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/redshift-gammastep/gammastep.nix
|
|
|
|
./services/redshift-gammastep/redshift.nix
|
|
|
|
./services/rsibreak.nix
|
|
|
|
./services/screen-locker.nix
|
2022-05-19 03:46:53 +02:00
|
|
|
./services/sctd.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/spotifyd.nix
|
|
|
|
./services/stalonetray.nix
|
|
|
|
./services/status-notifier-watcher.nix
|
2022-01-03 20:03:20 +01:00
|
|
|
./services/swayidle.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/sxhkd.nix
|
|
|
|
./services/syncthing.nix
|
2021-11-13 22:00:47 +01:00
|
|
|
./services/systembus-notify.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/taffybar.nix
|
|
|
|
./services/tahoe-lafs.nix
|
|
|
|
./services/taskwarrior-sync.nix
|
2021-09-14 23:14:41 +02:00
|
|
|
./services/trayer.nix
|
2021-10-24 15:50:13 +02:00
|
|
|
./services/twmn.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/udiskie.nix
|
|
|
|
./services/unclutter.nix
|
|
|
|
./services/unison.nix
|
2021-07-21 06:17:27 +02:00
|
|
|
./services/volnoti.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/window-managers/awesome.nix
|
|
|
|
./services/window-managers/bspwm/default.nix
|
2021-11-09 23:17:36 +01:00
|
|
|
./services/window-managers/herbstluftwm.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/window-managers/i3-sway/i3.nix
|
|
|
|
./services/window-managers/i3-sway/sway.nix
|
2021-11-21 05:06:12 +01:00
|
|
|
./services/window-managers/i3-sway/swaynag.nix
|
2022-07-08 19:31:25 +02:00
|
|
|
./services/window-managers/spectrwm.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
./services/window-managers/xmonad.nix
|
|
|
|
./services/wlsunset.nix
|
|
|
|
./services/xcape.nix
|
|
|
|
./services/xembed-sni-proxy.nix
|
|
|
|
./services/xidlehook.nix
|
|
|
|
./services/xscreensaver.nix
|
|
|
|
./services/xsettingsd.nix
|
|
|
|
./services/xsuspender.nix
|
|
|
|
./systemd.nix
|
|
|
|
./targets/darwin
|
|
|
|
./targets/generic-linux.nix
|
|
|
|
./xresources.nix
|
|
|
|
./xsession.nix
|
2022-01-27 18:58:25 +01:00
|
|
|
./misc/nix.nix
|
2021-07-07 23:24:27 +02:00
|
|
|
(pkgs.path + "/nixos/modules/misc/assertions.nix")
|
|
|
|
(pkgs.path + "/nixos/modules/misc/meta.nix")
|
2021-10-13 18:42:12 +02:00
|
|
|
] ++ optional useNixpkgsModule ./misc/nixpkgs.nix
|
|
|
|
++ optional (!useNixpkgsModule) ./misc/nixpkgs-disabled.nix;
|
2017-11-24 21:58:16 +01:00
|
|
|
|
2020-07-31 00:33:12 +02:00
|
|
|
pkgsModule = { config, ... }: {
|
2020-03-01 17:06:20 +01:00
|
|
|
config = {
|
|
|
|
_module.args.baseModules = modules;
|
2021-07-18 23:34:50 +02:00
|
|
|
_module.args.pkgsPath = lib.mkDefault
|
|
|
|
(if versionAtLeast config.home.stateVersion "20.09" then
|
2020-07-31 00:33:12 +02:00
|
|
|
pkgs.path
|
|
|
|
else
|
|
|
|
<nixpkgs>);
|
2020-03-01 17:06:20 +01:00
|
|
|
_module.args.pkgs = lib.mkDefault pkgs;
|
|
|
|
_module.check = check;
|
|
|
|
lib = lib.hm;
|
|
|
|
} // optionalAttrs useNixpkgsModule {
|
2021-10-29 17:50:50 +02:00
|
|
|
nixpkgs.system = mkDefault pkgs.stdenv.hostPlatform.system;
|
2020-03-01 17:06:20 +01:00
|
|
|
};
|
2017-11-24 21:58:16 +01:00
|
|
|
};
|
|
|
|
|
2021-07-18 23:34:50 +02:00
|
|
|
in modules ++ [ pkgsModule ]
|