From 5e2ec9fb8628136e7f9f618c68c0e42ab086b80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 23 Aug 2021 01:50:09 +0200 Subject: Refactor flakes using follows --- flakes/private/openarc/flake.lock | 14 +++++++------- flakes/private/openarc/flake.nix | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'flakes/private/openarc') diff --git a/flakes/private/openarc/flake.lock b/flakes/private/openarc/flake.lock index b1ec2b5..854f73f 100644 --- a/flakes/private/openarc/flake.lock +++ b/flakes/private/openarc/flake.lock @@ -32,13 +32,13 @@ "url": "https://git.immae.eu/perso/Immae/Config/Nix.git" } }, - "nixpkgs": { + "nix-lib": { "locked": { - "lastModified": 1611218116, - "narHash": "sha256-CcyGZ8cLlHgiViWyBjRIjdsdRZxJjP2MgtWeuqSv3CE=", + "lastModified": 1629671097, + "narHash": "sha256-OKwGVcFaW0M4Su5NlwmUjubbsRCwbmPP1rNPtHd82As=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "30ab92ea31f6b7e9095b1e7e4b56a5000823efdf", + "rev": "82d05e980543e1703cbfd3b5ccd1fdcd4b0f1f00", "type": "github" }, "original": { @@ -47,7 +47,7 @@ "type": "github" } }, - "nixpkgs_2": { + "nixpkgs": { "locked": { "lastModified": 1597943282, "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=", @@ -66,7 +66,7 @@ "inputs": { "flake-utils": "flake-utils", "myuids": "myuids", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "openarc": "openarc_2" }, "locked": { @@ -97,7 +97,7 @@ }, "root": { "inputs": { - "nixpkgs": "nixpkgs", + "nix-lib": "nix-lib", "openarc": "openarc" } } diff --git a/flakes/private/openarc/flake.nix b/flakes/private/openarc/flake.nix index 65a56ca..fd8ec56 100644 --- a/flakes/private/openarc/flake.nix +++ b/flakes/private/openarc/flake.nix @@ -3,10 +3,10 @@ path = "../../openarc"; type = "path"; }; - inputs.nixpkgs.url = "github:NixOS/nixpkgs"; + inputs.nix-lib.url = "github:NixOS/nixpkgs"; description = "Private configuration for openarc"; - outputs = { self, nixpkgs, openarc }: + outputs = { self, nix-lib, openarc }: let cfg = name': { config, lib, pkgs, name, ... }: lib.mkIf (name == name') { services.openarc = { @@ -41,5 +41,5 @@ }; in openarc.outputs // - { nixosModules = openarc.nixosModules or {} // nixpkgs.lib.genAttrs ["eldiron" "backup-2"] cfg; }; + { nixosModules = openarc.nixosModules or {} // nix-lib.lib.genAttrs ["eldiron" "backup-2"] cfg; }; } -- cgit v1.2.3