2017-11-24 20:58:16 +00:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# Whether to enable module type checking.
|
|
|
|
, check ? true
|
2017-10-14 18:56:02 +00:00
|
|
|
|
|
|
|
# Whether these modules are inside a NixOS submodule.
|
|
|
|
, nixosSubmodule ? false
|
2017-11-24 20:58:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
modules = [
|
2018-06-26 21:41:30 +00:00
|
|
|
./accounts/email.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./files.nix
|
|
|
|
./home-environment.nix
|
|
|
|
./manual.nix
|
|
|
|
./misc/fontconfig.nix
|
|
|
|
./misc/gtk.nix
|
2018-09-27 19:01:13 +00:00
|
|
|
./misc/lib.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./misc/news.nix
|
|
|
|
./misc/nixpkgs.nix
|
|
|
|
./misc/pam.nix
|
2018-05-17 17:39:26 +00:00
|
|
|
./misc/qt.nix
|
2018-11-22 23:18:29 +00:00
|
|
|
./misc/version.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./misc/xdg.nix
|
2018-11-10 15:55:21 +00:00
|
|
|
./programs/afew.nix
|
2018-11-18 23:07:29 +00:00
|
|
|
./programs/alot.nix
|
2018-09-30 09:06:02 +00:00
|
|
|
./programs/astroid.nix
|
2018-11-18 23:07:29 +00:00
|
|
|
./programs/autorandr.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/bash.nix
|
|
|
|
./programs/beets.nix
|
|
|
|
./programs/browserpass.nix
|
|
|
|
./programs/command-not-found/command-not-found.nix
|
2018-07-31 13:48:08 +00:00
|
|
|
./programs/direnv.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/eclipse.nix
|
|
|
|
./programs/emacs.nix
|
|
|
|
./programs/feh.nix
|
|
|
|
./programs/firefox.nix
|
2018-08-14 07:39:22 +00:00
|
|
|
./programs/fish.nix
|
2018-02-18 08:45:10 +00:00
|
|
|
./programs/fzf.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/git.nix
|
|
|
|
./programs/gnome-terminal.nix
|
2018-08-18 14:13:33 +00:00
|
|
|
./programs/go.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/home-manager.nix
|
|
|
|
./programs/htop.nix
|
|
|
|
./programs/info.nix
|
|
|
|
./programs/lesspipe.nix
|
|
|
|
./programs/man.nix
|
2018-06-26 22:45:00 +00:00
|
|
|
./programs/mbsync.nix
|
2018-02-01 13:33:24 +00:00
|
|
|
./programs/mercurial.nix
|
2018-08-06 10:02:49 +00:00
|
|
|
./programs/msmtp.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/neovim.nix
|
2018-06-08 19:09:20 +00:00
|
|
|
./programs/newsboat.nix
|
2018-09-19 14:00:00 +00:00
|
|
|
./programs/noti.nix
|
2018-06-28 21:42:25 +00:00
|
|
|
./programs/notmuch.nix
|
2018-09-26 03:55:51 +00:00
|
|
|
./programs/obs-studio.nix
|
2018-08-06 10:04:56 +00:00
|
|
|
./programs/offlineimap.nix
|
2018-02-17 08:39:31 +00:00
|
|
|
./programs/pidgin.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/rofi.nix
|
|
|
|
./programs/ssh.nix
|
2018-09-13 17:36:57 +00:00
|
|
|
./programs/taskwarrior.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/termite.nix
|
|
|
|
./programs/texlive.nix
|
2018-09-14 16:14:39 +00:00
|
|
|
./programs/tmux.nix
|
2018-10-14 10:11:00 +00:00
|
|
|
./programs/urxvt.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/vim.nix
|
2018-09-13 16:25:53 +00:00
|
|
|
./programs/zathura.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/zsh.nix
|
|
|
|
./services/blueman-applet.nix
|
|
|
|
./services/compton.nix
|
|
|
|
./services/dunst.nix
|
2018-05-03 12:29:03 +00:00
|
|
|
./services/flameshot.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/gnome-keyring.nix
|
|
|
|
./services/gpg-agent.nix
|
2017-11-21 23:29:30 +00:00
|
|
|
./services/kbfs.nix
|
2018-06-04 13:59:38 +00:00
|
|
|
./services/kdeconnect.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/keepassx.nix
|
2017-11-21 23:29:30 +00:00
|
|
|
./services/keybase.nix
|
2018-04-26 21:36:09 +00:00
|
|
|
./services/mbsync.nix
|
2018-07-15 06:33:32 +00:00
|
|
|
./services/mpd.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/network-manager-applet.nix
|
2018-11-23 09:43:13 +00:00
|
|
|
./services/nextcloud-client.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/owncloud-client.nix
|
2017-12-05 22:23:31 +00:00
|
|
|
./services/parcellite.nix
|
2018-08-21 13:52:45 +00:00
|
|
|
./services/pasystray.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/polybar.nix
|
|
|
|
./services/random-background.nix
|
|
|
|
./services/redshift.nix
|
|
|
|
./services/screen-locker.nix
|
2018-02-02 15:25:51 +00:00
|
|
|
./services/stalonetray.nix
|
2018-07-19 21:29:47 +00:00
|
|
|
./services/status-notifier-watcher.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/syncthing.nix
|
|
|
|
./services/taffybar.nix
|
|
|
|
./services/tahoe-lafs.nix
|
|
|
|
./services/udiskie.nix
|
2018-03-04 06:53:10 +00:00
|
|
|
./services/unclutter.nix
|
2018-07-07 09:58:10 +00:00
|
|
|
./services/window-managers/awesome.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/window-managers/i3.nix
|
|
|
|
./services/window-managers/xmonad.nix
|
|
|
|
./services/xscreensaver.nix
|
|
|
|
./systemd.nix
|
2018-02-02 04:37:45 +00:00
|
|
|
./xcursor.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./xresources.nix
|
|
|
|
./xsession.nix
|
|
|
|
<nixpkgs/nixos/modules/misc/assertions.nix>
|
2017-12-11 12:51:22 +00:00
|
|
|
<nixpkgs/nixos/modules/misc/meta.nix>
|
2018-08-20 05:05:23 +00:00
|
|
|
]
|
|
|
|
++
|
|
|
|
optional pkgs.stdenv.isLinux ./programs/chromium.nix;
|
2017-11-24 20:58:16 +00:00
|
|
|
|
|
|
|
pkgsModule = {
|
2017-10-14 18:56:02 +00:00
|
|
|
options.nixosSubmodule = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
internal = true;
|
|
|
|
readOnly = true;
|
|
|
|
};
|
|
|
|
|
2017-11-24 20:58:16 +00:00
|
|
|
config._module.args.baseModules = modules;
|
|
|
|
config._module.args.pkgs = lib.mkDefault pkgs;
|
|
|
|
config._module.check = check;
|
2017-12-02 18:15:13 +00:00
|
|
|
config.lib = import ./lib { inherit lib; };
|
2017-10-14 18:56:02 +00:00
|
|
|
config.nixosSubmodule = nixosSubmodule;
|
2017-11-24 20:58:16 +00:00
|
|
|
config.nixpkgs.system = mkDefault pkgs.system;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2017-12-11 12:48:46 +00:00
|
|
|
modules ++ [ pkgsModule ]
|