mkSystems -> mkHosts

fixed nixosModules output
This commit is contained in:
Gerg-L 2023-07-25 22:22:59 -04:00
parent 167f6ca7b3
commit e33da6d843
3 changed files with 6 additions and 9 deletions

View file

@ -52,7 +52,7 @@
in { in {
inherit lib; inherit lib;
nixosConfigurations = nixosConfigurations =
lib.mkSystems lib.mkHosts
"x86_64-linux" "x86_64-linux"
[ [
"gerg-desktop" "gerg-desktop"

View file

@ -20,8 +20,8 @@ inputs @ {
name: { name: {
name = lib.pipe name [ name = lib.pipe name [
toString toString
(lib.removePrefix "${path}/")
(lib.removeSuffix ".nix") (lib.removeSuffix ".nix")
(lib.removePrefix "${toString path}/")
]; ];
value = import name inputs; value = import name inputs;
} }
@ -33,9 +33,10 @@ in {
withSystem = f: withSystem = f:
lib.fold lib.recursiveUpdate {} lib.fold lib.recursiveUpdate {}
(map f ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]); (map f ["x86_64-linux"]);
#"x86_64-darwin" "aarch64-linux" "aarch64-darwin"
mkSystems = system: names: mkHosts = system: names:
lib.genAttrs names ( lib.genAttrs names (
name: name:
lib.nixosSystem { lib.nixosSystem {

View file

@ -1,8 +1,4 @@
inputs: { inputs: {pkgs, ...}: {
pkgs,
config,
...
}: {
#other nix settings #other nix settings
nix = { nix = {
package = inputs.nix.packages.${pkgs.system}.default; package = inputs.nix.packages.${pkgs.system}.default;