forked from pub-solar/os
modules: convert to list to match nixpkg sematics
This commit is contained in:
parent
0b131c0bf1
commit
ae303b39fd
14
flake.nix
14
flake.nix
|
@ -8,6 +8,9 @@
|
||||||
|
|
||||||
outputs = args@{ self, home, nixpkgs }:
|
outputs = args@{ self, home, nixpkgs }:
|
||||||
let
|
let
|
||||||
|
inherit (builtins) listToAttrs baseNameOf;
|
||||||
|
inherit (nixpkgs.lib) removeSuffix;
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
overlays = self.overlays;
|
overlays = self.overlays;
|
||||||
|
@ -25,6 +28,15 @@
|
||||||
inherit (pkgs) sddm-chili dejavu_nerdfont purs;
|
inherit (pkgs) sddm-chili dejavu_nerdfont purs;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosModules = (import ./modules) // { profiles = import ./profiles; };
|
nixosModules = let
|
||||||
|
moduleList = import ./modules;
|
||||||
|
|
||||||
|
modulesAttrs = listToAttrs (map (path: {
|
||||||
|
name = removeSuffix ".nix" (baseNameOf path);
|
||||||
|
value = import path;
|
||||||
|
}) moduleList);
|
||||||
|
|
||||||
|
profilesAttrs = { profiles = import ./profiles; };
|
||||||
|
in modulesAttrs // profilesAttrs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{ qbittorrent-nox = import ./services/torrent/qbittorrent.nix; }
|
[ ./services/torrent/qbittorrent.nix ]
|
||||||
|
|
Loading…
Reference in a new issue