examples/flake.nix: add inputs.nixpkgs

To make this template look more like a regular system flake.
This commit is contained in:
Erik Arvstedt 2023-10-19 09:48:46 +02:00
parent 89ea349312
commit 742fd8fdd0
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 6 additions and 2 deletions

View File

@ -101,4 +101,5 @@ It's easiest to use an existing service as a template:
- [flake.nix](../flake.nix): update `nixpkgs.url`
- [cirrus.yml](../.cirrus.yml): update toplevel container -> image attribute
- [examples/configuration.nix](../examples/configuration.nix): update `system.stateVersion`
- [examples/flakes/flake.nix](../examples/flakes/flake.nix): update `inputs.nix-bitcoin.url`
- Treewide: check if any `TODO-EXTERNAL` comments can be resolved

View File

@ -12,9 +12,12 @@
# You can also use a version branch to track a specific NixOS release
# inputs.nix-bitcoin.url = "github:fort-nix/nix-bitcoin/nixos-23.05";
outputs = { self, nix-bitcoin }: {
inputs.nixpkgs.follows = "nix-bitcoin/nixpkgs";
inputs.nixpkgs-unstable.follows = "nix-bitcoin/nixpkgs-unstable";
nixosConfigurations.mynode = nix-bitcoin.inputs.nixpkgs.lib.nixosSystem {
outputs = { self, nixpkgs, nix-bitcoin, ... }: {
nixosConfigurations.mynode = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nix-bitcoin.nixosModules.default