mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
mkSystems -> mkHosts
fixed nixosModules output
This commit is contained in:
parent
167f6ca7b3
commit
e33da6d843
3 changed files with 6 additions and 9 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue