Remove examples from flake.nix inputs

Subflakes are not really a stable part of the flakes api, so they shouldn't be included in the flake.nix.
This commit is contained in:
matthewcroughan 2022-03-23 23:18:23 +00:00
parent 886c6a2b3b
commit abc1895492
2 changed files with 2 additions and 66 deletions

64
flake.lock generated
View file

@ -1,67 +1,6 @@
{ {
"nodes": { "nodes": {
"examples": {
"inputs": {
"nixinate": "nixinate",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"narHash": "sha256-OsFQxO7h4YHrRQX8oHIjvgjTbeJx0oIP+pOIpfiwMiU=",
"path": "./examples",
"type": "path"
},
"original": {
"path": "./examples",
"type": "path"
}
},
"nixinate": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"narHash": "sha256-lk8eIWYxtHqDT4ZmSFuXMlG067RdPqLCQocnN+hNE7U=",
"path": "/etc/nixos/nixinate",
"type": "path"
},
"original": {
"path": "/etc/nixos/nixinate",
"type": "path"
}
},
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1640887906,
"narHash": "sha256-Eupk1UlNicCD2UNZuEKt6yhE6kFWAxXM/HyziOjG9CA=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "8a053bc2255659c5ca52706b9e12e76a8f50dbdd",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-21.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1641147223,
"narHash": "sha256-eJnmISYGR7LeqEev4bsI/qcU0SgeFKHs3jnL4vMGL+k=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "08370e1e271f6fe00d302bebbe510fe0e2c611ca",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-21.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1643852787, "lastModified": 1643852787,
"narHash": "sha256-RHrvroV61jcfTXfW0Rwc0qu/8lHmfYxSy49adyXkB0I=", "narHash": "sha256-RHrvroV61jcfTXfW0Rwc0qu/8lHmfYxSy49adyXkB0I=",
@ -79,8 +18,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"examples": "examples", "nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs_3"
} }
} }
}, },

View file

@ -2,9 +2,8 @@
description = "Nixinate your systems 🕶"; description = "Nixinate your systems 🕶";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
examples.url = "path:./examples";
}; };
outputs = { self, nixpkgs, examples, ... }: outputs = { self, nixpkgs, ... }:
let let
version = builtins.substring 0 8 self.lastModifiedDate; version = builtins.substring 0 8 self.lastModifiedDate;
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
@ -71,6 +70,5 @@
}; };
}; };
nixinate = forAllSystems (system: nixpkgsFor.${system}.generateApps); nixinate = forAllSystems (system: nixpkgsFor.${system}.generateApps);
apps = nixinate.x86_64-linux examples;
}; };
} }