1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/modules/modules.nix

447 lines
12 KiB
Nix
Raw Normal View History

{ pkgs
2021-07-18 23:34:50 +02:00
# Note, this should be "the standard library" + HM extensions.
, lib
2021-07-18 23:34:50 +02:00
# Whether to enable module type checking.
, check ? true
2021-07-18 23:34:50 +02:00
# If disabled, the pkgs attribute passed to this function is used instead.
, useNixpkgsModule ? true }:
with lib;
let
modules = [
./accounts/email.nix
./accounts/calendar.nix
./accounts/contacts.nix
home.pointerCursor: init (#2891) * home.pointerCursor: init The current architecture for cursor configurations is composed of individual options for different backends. For example, X specific settings are managed under `xsession.pointerCursor` and gtk specific settings are managed under `gtk.cursorTheme`. While this architecture is modular, it causes duplication of similar structures for each component. In theory, this provides flexibility because the components are independent of each other which can be arranged in arbitrary ways to achieve the desired result. However in practice, users wish to have one cursor theme applied to their entire system The duplication of options correspond to duplication of settings on the user side and it becomes a burden to keep track of all necessary settings. This commit is an attempt to unify cursor configurations for different window systems and GUI toolkits based on https://github.com/nix-community/home-manager/pull/2481#issuecomment-978917480. `home.pointerCursor` is introduced as the interface for all cursor configurations. It contain all options relevant to cursor themes with eneral options delcared under `home.pointerCursor.*` and backend specific options declared under `home.pointerCursor.<backend>.*`. By default, a backend independent configuration is generated. Backend specific configurations can be toggled via the `home.pointerCursor.<backend>.enable` option for each backend. This was decided over using a list of enums because it allows easy access to the state of the backend. Note generating different cursor configurations for different backends is still possible by defining only `home.pointerCursor` and managing the respective options manually. * xcursor: migrate options to home.pointerCursor - Removed `xession.pointerCursor` as x11 cursor configurations are now handled in `home.pointerCursor.x11`. - Updated `meta.maintainer` field in `home.pointerCursor` and CODEOWNERS.
2022-05-04 00:29:17 +02:00
./config/home-cursor.nix
./config/i18n.nix
./files.nix
./home-environment.nix
./i18n/input-method/default.nix
./launchd/default.nix
./manual.nix
./misc/dconf.nix
./misc/debug.nix
./misc/editorconfig.nix
./misc/fontconfig.nix
./misc/gtk.nix
./misc/lib.nix
./misc/news.nix
./misc/nixgl.nix
./misc/numlock.nix
./misc/pam.nix
./misc/qt.nix
2021-12-15 18:31:13 +01:00
./misc/qt/kconfig.nix
./misc/specialisation.nix
./misc/submodule-support.nix
./misc/tmpfiles.nix
./misc/uninstall.nix
./misc/version.nix
./misc/vte.nix
./misc/xdg-desktop-entries.nix
./misc/xdg-mime-apps.nix
./misc/xdg-mime.nix
2023-11-27 20:14:31 +01:00
./misc/xdg-portal.nix
./misc/xdg-system-dirs.nix
./misc/xdg-user-dirs.nix
./misc/xdg.nix
2022-11-02 10:06:05 +01:00
./misc/xfconf.nix
./programs/abook.nix
./programs/aerc.nix
./programs/afew.nix
./programs/alacritty.nix
./programs/alot.nix
./programs/antidote.nix
./programs/aria2.nix
./programs/astroid.nix
./programs/atuin.nix
./programs/autojump.nix
./programs/autorandr.nix
2023-09-29 13:04:57 +02:00
./programs/awscli.nix
./programs/bash.nix
2022-08-07 01:11:57 +02:00
./programs/bashmount.nix
./programs/bat.nix
./programs/bacon.nix
./programs/beets.nix
2023-11-29 08:23:23 +01:00
./programs/bemenu.nix
2022-09-25 19:27:04 +02:00
./programs/borgmatic.nix
./programs/bottom.nix
./programs/boxxy.nix
./programs/broot.nix
./programs/browserpass.nix
2022-08-17 18:16:01 +02:00
./programs/btop.nix
2024-04-09 20:48:15 +02:00
./programs/bun.nix
2023-09-03 12:09:45 +02:00
./programs/carapace.nix
2023-06-16 21:38:29 +02:00
./programs/cava.nix
./programs/chromium.nix
2024-10-10 00:08:02 +02:00
./programs/cmus.nix
./programs/command-not-found/command-not-found.nix
2023-04-14 23:41:51 +02:00
./programs/comodoro.nix
2023-03-27 20:25:17 +02:00
./programs/darcs.nix
./programs/dircolors.nix
./programs/direnv.nix
./programs/discocss.nix
./programs/eclipse.nix
./programs/emacs.nix
2022-02-02 16:46:23 +01:00
./programs/eww.nix
./programs/eza.nix
2024-05-02 02:23:11 +02:00
./programs/fastfetch.nix
2024-04-12 16:19:25 +02:00
./programs/fd.nix
./programs/feh.nix
./programs/firefox.nix
./programs/fish.nix
./programs/floorp.nix
./programs/foot.nix
2024-04-21 13:12:43 +02:00
./programs/freetube.nix
2023-03-01 15:57:55 +01:00
./programs/fuzzel.nix
./programs/fzf.nix
./programs/gallery-dl.nix
./programs/getmail.nix
./programs/gh.nix
2023-07-05 19:56:25 +02:00
./programs/gh-dash.nix
2023-05-05 19:25:28 +02:00
./programs/git-cliff.nix
2023-06-12 05:23:46 +02:00
./programs/git-credential-oauth.nix
./programs/git.nix
2021-11-10 19:52:30 +01:00
./programs/gitui.nix
2021-05-16 23:54:43 +02:00
./programs/gnome-shell.nix
./programs/gnome-terminal.nix
./programs/go.nix
./programs/gpg.nix
./programs/gradle.nix
./programs/granted.nix
2022-09-25 08:21:27 +02:00
./programs/havoc.nix
2022-01-04 00:09:24 +01:00
./programs/helix.nix
./programs/hexchat.nix
./programs/himalaya.nix
./programs/home-manager.nix
2023-01-16 14:53:49 +01:00
./programs/hstr.nix
./programs/htop.nix
2022-08-01 17:03:41 +02:00
./programs/hyfetch.nix
2024-04-23 05:34:22 +02:00
./programs/hyprlock.nix
2023-11-14 01:10:38 +01:00
./programs/i3blocks.nix
./programs/i3status-rust.nix
./programs/i3status.nix
./programs/imv.nix
./programs/info.nix
./programs/ion.nix
./programs/irssi.nix
2021-08-02 11:14:10 +02:00
./programs/java.nix
2024-02-06 00:29:23 +01:00
./programs/jetbrains-remote.nix
./programs/jq.nix
2023-01-27 22:15:17 +01:00
./programs/jujutsu.nix
./programs/joshuto.nix
2024-02-18 22:57:35 +01:00
./programs/joplin-desktop.nix
2022-02-19 01:57:35 +01:00
./programs/just.nix
2022-10-23 21:22:14 +02:00
./programs/k9s.nix
./programs/kakoune.nix
./programs/keychain.nix
./programs/khal.nix
2023-07-03 22:06:38 +02:00
./programs/khard.nix
./programs/kitty.nix
./programs/kodi.nix
./programs/lazygit.nix
./programs/ledger.nix
./programs/less.nix
./programs/lesspipe.nix
./programs/lf.nix
2022-03-14 12:53:42 +01:00
./programs/librewolf.nix
./programs/lieer.nix
2022-10-09 20:11:59 +02:00
./programs/looking-glass-client.nix
./programs/lsd.nix
./programs/man.nix
./programs/mangohud.nix
./programs/matplotlib.nix
./programs/mbsync.nix
./programs/mcfly.nix
./programs/mercurial.nix
./programs/micro.nix
./programs/mise.nix
./programs/mpv.nix
2023-03-11 00:10:05 +01:00
./programs/mr.nix
./programs/msmtp.nix
./programs/mu.nix
./programs/mujmap.nix
2021-12-08 05:20:00 +01:00
./programs/navi.nix
./programs/ncmpcpp.nix
./programs/ncspot.nix
./programs/ne.nix
./programs/neomutt.nix
./programs/neovide.nix
./programs/neovim.nix
./programs/newsboat.nix
2024-04-23 19:37:08 +02:00
./programs/nh.nix
2022-08-17 13:58:46 +02:00
./programs/nheko.nix
./programs/nix-index.nix
./programs/nnn.nix
./programs/noti.nix
./programs/notmuch.nix
./programs/nushell.nix
./programs/obs-studio.nix
./programs/octant.nix
./programs/offlineimap.nix
2022-09-29 13:08:53 +02:00
./programs/oh-my-posh.nix
./programs/opam.nix
./programs/openstackclient.nix
./programs/pandoc.nix
2023-01-27 05:20:00 +01:00
./programs/papis.nix
./programs/password-store.nix
./programs/pazi.nix
./programs/pet.nix
./programs/pidgin.nix
2022-03-28 17:19:38 +02:00
./programs/pistol.nix
./programs/piston-cli.nix
2022-09-30 18:53:39 +02:00
./programs/pls.nix
2024-02-24 17:39:35 +01:00
./programs/poetry.nix
./programs/powerline-go.nix
2023-07-03 20:30:13 +02:00
./programs/pqiv.nix
./programs/pubs.nix
./programs/pyenv.nix
2022-04-11 03:54:04 +02:00
./programs/pylint.nix
2023-08-12 22:07:04 +02:00
./programs/qcal.nix
./programs/qutebrowser.nix
2023-08-26 15:36:08 +02:00
./programs/ranger.nix
./programs/rbw.nix
./programs/readline.nix
./programs/rio.nix
./programs/ripgrep.nix
./programs/rofi-pass.nix
./programs/rofi.nix
./programs/rtorrent.nix
./programs/ruff.nix
2021-12-30 12:47:44 +01:00
./programs/sagemath.nix
./programs/sapling.nix
./programs/sbt.nix
./programs/scmpuff.nix
2023-05-19 10:29:27 +02:00
./programs/script-directory.nix
./programs/senpai.nix
2023-11-06 20:05:51 +01:00
./programs/sftpman.nix
2022-04-17 23:07:55 +02:00
./programs/sioyek.nix
./programs/skim.nix
./programs/sm64ex.nix
2024-04-19 12:39:30 +02:00
./programs/spotify-player.nix
./programs/sqls.nix
./programs/ssh.nix
./programs/starship.nix
2022-06-07 21:01:14 +02:00
./programs/swaylock.nix
./programs/swayr.nix
./programs/taskwarrior.nix
2022-05-01 16:27:04 +02:00
./programs/tealdeer.nix
./programs/terminator.nix
./programs/termite.nix
./programs/texlive.nix
2023-10-01 16:41:55 +02:00
./programs/thefuck.nix
./programs/thunderbird.nix
2022-01-03 00:50:56 +01:00
./programs/timidity.nix
2021-12-18 16:29:55 +01:00
./programs/tint2.nix
./programs/tiny.nix
2022-09-21 22:59:50 +02:00
./programs/tmate.nix
./programs/tmux.nix
2024-04-16 22:44:55 +02:00
./programs/tofi.nix
./programs/topgrade.nix
2023-05-11 11:21:18 +02:00
./programs/translate-shell.nix
./programs/urxvt.nix
./programs/vdirsyncer.nix
2022-09-09 02:42:53 +02:00
./programs/vifm.nix
./programs/vim-vint.nix
2022-09-09 02:42:53 +02:00
./programs/vim.nix
./programs/vscode.nix
./programs/vscode/haskell.nix
./programs/pywal.nix
2023-01-17 05:20:00 +01:00
./programs/rbenv.nix
./programs/watson.nix
./programs/waybar.nix
2022-04-08 08:48:27 +02:00
./programs/wezterm.nix
2023-01-31 17:06:18 +01:00
./programs/wlogout.nix
./programs/wofi.nix
./programs/wpaperd.nix
./programs/xmobar.nix
2023-09-09 11:35:44 +02:00
./programs/xplr.nix
2022-10-25 14:31:46 +02:00
./programs/yambar.nix
./programs/yazi.nix
./programs/yt-dlp.nix
./programs/z-lua.nix
./programs/zathura.nix
./programs/zed-editor.nix
2022-02-02 17:40:40 +01:00
./programs/zellij.nix
2023-09-11 20:50:12 +02:00
./programs/zk.nix
./programs/zoxide.nix
./programs/zplug.nix
./programs/zsh.nix
./programs/zsh/prezto.nix
2023-10-03 02:34:46 +02:00
./programs/zsh/zsh-abbr.nix
2023-08-04 13:56:37 +02:00
./services/activitywatch.nix
./services/amberol.nix
./services/arrpc.nix
2023-01-26 16:08:17 +01:00
./services/autorandr.nix
2023-01-18 12:24:06 +01:00
./services/avizo.nix
./services/barrier.nix
2023-03-20 00:06:39 +01:00
./services/batsignal.nix
2021-09-06 03:00:28 +02:00
./services/betterlockscreen.nix
2024-05-08 06:16:09 +02:00
./services/blanket.nix
./services/blueman-applet.nix
2022-09-25 19:27:04 +02:00
./services/borgmatic.nix
2022-10-27 19:08:14 +02:00
./services/cachix-agent.nix
./services/caffeine.nix
./services/cbatticon.nix
2023-10-15 14:03:18 +02:00
./services/cliphist.nix
2022-08-27 20:52:41 +02:00
./services/clipman.nix
./services/clipmenu.nix
2023-04-14 23:41:51 +02:00
./services/comodoro.nix
2023-12-27 13:00:49 +01:00
./services/conky.nix
2023-02-27 12:10:00 +01:00
./services/copyq.nix
./services/darkman.nix
./services/devilspie2.nix
./services/dropbox.nix
./services/dunst.nix
./services/dwm-status.nix
./services/easyeffects.nix
./services/emacs.nix
./services/etesync-dav.nix
./services/espanso.nix
./services/flameshot.nix
./services/fluidsynth.nix
./services/fnott.nix
./services/fusuma.nix
./services/getmail.nix
2021-07-15 03:20:28 +02:00
./services/git-sync.nix
2024-06-28 17:24:13 +02:00
./services/glance.nix
./services/gnome-keyring.nix
./services/gpg-agent.nix
./services/grobi.nix
2019-02-24 20:33:56 +01:00
./services/gromit-mpx.nix
./services/home-manager-auto-upgrade.nix
./services/hound.nix
2024-05-05 11:13:18 +02:00
./services/hypridle.nix
2024-04-27 16:54:16 +02:00
./services/hyprpaper.nix
./services/imapnotify.nix
./services/kanshi.nix
./services/kbfs.nix
./services/kdeconnect.nix
./services/keybase.nix
./services/keynav.nix
./services/lieer.nix
2023-03-14 10:22:09 +01:00
./services/listenbrainz-mpd.nix
./services/lorri.nix
./services/mako.nix
./services/mbsync.nix
2022-12-06 17:21:08 +01:00
./services/megasync.nix
./services/mopidy.nix
./services/mpd.nix
./services/mpdris2.nix
2022-04-05 05:48:13 +02:00
./services/mpd-discord-rpc.nix
2022-12-27 18:15:51 +01:00
./services/mpd-mpris.nix
./services/mpris-proxy.nix
./services/muchsync.nix
./services/network-manager-applet.nix
./services/nextcloud-client.nix
./services/nix-gc.nix
./services/notify-osd.nix
2021-09-20 21:13:20 +02:00
./services/opensnitch-ui.nix
./services/osmscout-server.nix
./services/owncloud-client.nix
./services/pantalaimon.nix
./services/parcellite.nix
./services/pass-secret-service.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
./services/podman-linux
./services/polybar.nix
./services/poweralertd.nix
2024-04-28 19:35:01 +02:00
./services/psd.nix
2022-08-13 04:37:04 +02:00
./services/pueue.nix
./services/pulseeffects.nix
./services/random-background.nix
2022-02-07 11:54:09 +01:00
./services/recoll.nix
./services/redshift-gammastep/gammastep.nix
./services/redshift-gammastep/redshift.nix
./services/remmina.nix
./services/rsibreak.nix
./services/safeeyes.nix
./services/screen-locker.nix
./services/sctd.nix
2023-11-11 22:49:58 +01:00
./services/signaturepdf.nix
./services/snixembed.nix
./services/spotifyd.nix
2023-06-28 23:58:15 +02:00
./services/ssh-agent.nix
./services/stalonetray.nix
./services/status-notifier-watcher.nix
./services/swayidle.nix
./services/swaync.nix
2023-07-07 10:15:43 +02:00
./services/swayosd.nix
./services/sxhkd.nix
./services/syncthing.nix
2021-11-13 22:00:47 +01:00
./services/systembus-notify.nix
./services/taffybar.nix
./services/tahoe-lafs.nix
./services/taskwarrior-sync.nix
2021-09-14 23:14:41 +02:00
./services/trayer.nix
./services/trayscale.nix
./services/twmn.nix
./services/udiskie.nix
./services/unclutter.nix
./services/unison.nix
./services/vdirsyncer.nix
2021-07-21 06:17:27 +02:00
./services/volnoti.nix
./services/window-managers/awesome.nix
./services/window-managers/bspwm/default.nix
2022-08-29 02:43:14 +02:00
./services/window-managers/fluxbox.nix
2021-11-09 23:17:36 +01:00
./services/window-managers/herbstluftwm.nix
./services/window-managers/hyprland.nix
./services/window-managers/i3-sway/i3.nix
./services/window-managers/i3-sway/sway.nix
./services/window-managers/i3-sway/swaynag.nix
2023-08-11 11:09:54 +02:00
./services/window-managers/river.nix
2022-07-08 19:31:25 +02:00
./services/window-managers/spectrwm.nix
./services/window-managers/xmonad.nix
./services/wlsunset.nix
./services/wob.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
(pkgs.path + "/nixos/modules/misc/assertions.nix")
(pkgs.path + "/nixos/modules/misc/meta.nix")
(mkRemovedOptionModule [ "services" "password-store-sync" ] ''
Use services.git-sync instead.
'')
(mkRemovedOptionModule [ "services" "keepassx" ] ''
KeePassX is no longer maintained.
'')
] ++ optional useNixpkgsModule ./misc/nixpkgs.nix
++ optional (!useNixpkgsModule) ./misc/nixpkgs-disabled.nix;
pkgsModule = { config, ... }: {
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
pkgs.path
else
<nixpkgs>);
_module.args.pkgs = lib.mkDefault pkgs;
_module.check = check;
lib = lib.hm;
} // optionalAttrs useNixpkgsModule {
nixpkgs.system = mkDefault pkgs.stdenv.hostPlatform.system;
};
};
2021-07-18 23:34:50 +02:00
in modules ++ [ pkgsModule ]