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 = [
|
|
|
|
./files.nix
|
|
|
|
./home-environment.nix
|
|
|
|
./manual.nix
|
|
|
|
./misc/fontconfig.nix
|
|
|
|
./misc/gtk.nix
|
|
|
|
./misc/news.nix
|
|
|
|
./misc/nixpkgs.nix
|
|
|
|
./misc/pam.nix
|
|
|
|
./misc/xdg.nix
|
|
|
|
./programs/bash.nix
|
|
|
|
./programs/beets.nix
|
|
|
|
./programs/browserpass.nix
|
|
|
|
./programs/command-not-found/command-not-found.nix
|
|
|
|
./programs/eclipse.nix
|
|
|
|
./programs/emacs.nix
|
|
|
|
./programs/feh.nix
|
|
|
|
./programs/firefox.nix
|
|
|
|
./programs/git.nix
|
|
|
|
./programs/gnome-terminal.nix
|
|
|
|
./programs/home-manager.nix
|
|
|
|
./programs/htop.nix
|
|
|
|
./programs/info.nix
|
|
|
|
./programs/lesspipe.nix
|
|
|
|
./programs/man.nix
|
2018-02-01 13:33:24 +00:00
|
|
|
./programs/mercurial.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./programs/neovim.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
|
|
|
|
./programs/termite.nix
|
|
|
|
./programs/texlive.nix
|
|
|
|
./programs/vim.nix
|
|
|
|
./programs/zsh.nix
|
|
|
|
./services/blueman-applet.nix
|
|
|
|
./services/compton.nix
|
|
|
|
./services/dunst.nix
|
|
|
|
./services/gnome-keyring.nix
|
|
|
|
./services/gpg-agent.nix
|
2017-11-21 23:29:30 +00:00
|
|
|
./services/kbfs.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/keepassx.nix
|
2017-11-21 23:29:30 +00:00
|
|
|
./services/keybase.nix
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/network-manager-applet.nix
|
|
|
|
./services/owncloud-client.nix
|
2017-12-05 22:23:31 +00:00
|
|
|
./services/parcellite.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
|
2017-11-24 20:58:16 +00:00
|
|
|
./services/syncthing.nix
|
|
|
|
./services/taffybar.nix
|
|
|
|
./services/tahoe-lafs.nix
|
|
|
|
./services/udiskie.nix
|
|
|
|
./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-02 00:17:41 +00:00
|
|
|
<nixpkgs/nixos/modules/misc/lib.nix>
|
2017-12-11 12:51:22 +00:00
|
|
|
<nixpkgs/nixos/modules/misc/meta.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 ]
|