From 3f1b6b32227e56c9961e4b5049cbad13f2c5ce6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io> Date: Mon, 19 Dec 2022 15:03:55 +0100 Subject: [PATCH] flake-parts: switch to new preferred style of importing --- flake.lock | 12 ++++++------ flake.nix | 16 ++++++---------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/flake.lock b/flake.lock index 0ef7287..23214b8 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ ] }, "locked": { - "lastModified": 1670441596, - "narHash": "sha256-+T487QnluBT5F9tVk0chG/zzv+9zzTrx3o7rlOBK7ps=", + "lastModified": 1671322946, + "narHash": "sha256-J8Qj+ITV+eti+irTK9Zn2LZVYoIW2g7irPUckU8yZvU=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "8d0e2444ab05f79df93b70e5e497f8c708eb6b9b", + "rev": "3f7172646953bf86dad5953bc45f0edae62ac445", "type": "github" }, "original": { @@ -60,11 +60,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1671149032, - "narHash": "sha256-BP8mspP2oJqIm9zHj1EHSolkOWg9+jqIm2R/fUWQq28=", + "lastModified": 1671442489, + "narHash": "sha256-pSCuSrG+XxWCs5IZ90eKIxDIZy4rM22YSFMRZ/fiixc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "34274e6c8604be2d103606b11dae0ac2e3a0d584", + "rev": "ff07b107adeda2164b29f8feb4a86ed012854dfb", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 8fc0395..664f6c7 100644 --- a/flake.nix +++ b/flake.nix @@ -24,13 +24,9 @@ flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; }; - outputs = { - self, - flake-parts, - ... - }: + outputs = inputs @ {flake-parts, ...}: flake-parts.lib.mkFlake - {inherit self;} + {inherit inputs;} { systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; @@ -44,10 +40,10 @@ }; }; flake.nixosConfigurations = let - inherit (self.inputs.nixpkgs.lib) nixosSystem; + inherit (inputs.nixpkgs.lib) nixosSystem; common = [ - self.inputs.sops-nix.nixosModules.sops - { _module.args.inputs = self.inputs; } + inputs.sops-nix.nixosModules.sops + { _module.args.inputs = inputs; } ]; in { "build01.nix-community.org" = nixosSystem { @@ -66,7 +62,7 @@ ++ [ (import ./build02/nixpkgs-update.nix { inherit - (self.inputs) + (inputs) nixpkgs-update nixpkgs-update-github-releases nixpkgs-update-pypi-releases