flake: move modules to outputs

This commit is contained in:
Timothy DeHerrera 2019-12-30 18:00:09 -07:00
parent ac5e184666
commit cd25fdf37c
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
4 changed files with 10 additions and 3 deletions

View file

@ -21,6 +21,8 @@
pkgs = import ./pkgs;
in
[ pkgs ];
nixosModules = import ./modules;
};
}

View file

@ -6,6 +6,10 @@ let
recImport
;
inherit (builtins)
attrValues
;
config = self:
nixpkgs.lib.nixosSystem rec {
@ -27,7 +31,7 @@ let
local = import "${toString ./.}/${self}.nix";
in
[
attrValues flake.nixosModules ++ [
core
global
local

3
modules/default.nix Normal file
View file

@ -0,0 +1,3 @@
{
qbittorrent-nox = import ./services/torrent/qbittorrent.nix;
}

View file

@ -4,8 +4,6 @@ let
inherit (lib) mkAfter;
in
{
imports = [ ../../modules/services/torrent/qbittorrent.nix ];
services.qbittorrent = {
enable = true;
group = "media";