From 8c4fa7dd1c514dc43e61c9b04b9a4583ce157c1a Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sun, 5 Nov 2023 06:15:26 +0100 Subject: [PATCH] Revert "rename input: unstable -> nixpkgs-unstable" This reverts commit 3caa66fb640aa72649fe32c74b5c593cd06b9a75. Why say many words when few words do trick --- README.MD | 2 +- base.nix | 2 +- flake.lock | 42 ++++++++++++++++++++++-------------------- flake.nix | 12 ++++++------ 4 files changed, 30 insertions(+), 28 deletions(-) diff --git a/README.MD b/README.MD index a92222b..904272c 100644 --- a/README.MD +++ b/README.MD @@ -26,7 +26,7 @@ Det er sikkert lurt å lage en PR først om du ikke er vandt til nix enda. Innen 24h skal alle systemene hente ned den nye konfigurasjonen og deploye den. Du kan tvinge en maskin til å oppdatere seg før dette ved å kjøre: -`nixos-rebuild switch --update-input nixpkgs --update-input nixpkgs-unstable --no-write-lock-file --refresh --flake git+https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git --upgrade` +`nixos-rebuild switch --update-input nixpkgs --update-input unstable --no-write-lock-file --refresh --flake git+https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git --upgrade` som root på maskinen. diff --git a/base.nix b/base.nix index a11ee84..69c4920 100644 --- a/base.nix +++ b/base.nix @@ -32,7 +32,7 @@ flake = "git+https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git"; flags = [ "--update-input" "nixpkgs" - "--update-input" "nixpkgs-unstable" + "--update-input" "unstable" "--no-write-lock-file" ]; }; diff --git a/flake.lock b/flake.lock index b84fed6..bd253a3 100644 --- a/flake.lock +++ b/flake.lock @@ -23,7 +23,7 @@ "grzegorz": { "inputs": { "nixpkgs": [ - "nixpkgs-unstable" + "unstable" ] }, "locked": { @@ -88,9 +88,10 @@ "type": "github" }, "original": { - "id": "nixpkgs", + "owner": "NixOS", "ref": "nixos-23.05-small", - "type": "indirect" + "repo": "nixpkgs", + "type": "github" } }, "nixpkgs-lib": { @@ -124,21 +125,6 @@ "type": "github" } }, - "nixpkgs-unstable": { - "locked": { - "lastModified": 1699128932, - "narHash": "sha256-4Hn/fpR/FRucpXQqMI0OSgxiu2ImowmR0dThAycPt/4=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "0d2d729bf7091df906a78b69f90620f933ea963f", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "ref": "nixos-unstable-small", - "type": "indirect" - } - }, "pvv-calendar-bot": { "inputs": { "nixpkgs": [ @@ -166,9 +152,9 @@ "grzegorz-clients": "grzegorz-clients", "matrix-next": "matrix-next", "nixpkgs": "nixpkgs", - "nixpkgs-unstable": "nixpkgs-unstable", "pvv-calendar-bot": "pvv-calendar-bot", - "sops-nix": "sops-nix" + "sops-nix": "sops-nix", + "unstable": "unstable" } }, "sops-nix": { @@ -191,6 +177,22 @@ "repo": "sops-nix", "type": "github" } + }, + "unstable": { + "locked": { + "lastModified": 1699128932, + "narHash": "sha256-4Hn/fpR/FRucpXQqMI0OSgxiu2ImowmR0dThAycPt/4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0d2d729bf7091df906a78b69f90620f933ea963f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 7a61169..26baabd 100644 --- a/flake.nix +++ b/flake.nix @@ -2,8 +2,8 @@ description = "PVV System flake"; inputs = { - nixpkgs.url = "nixpkgs/nixos-23.05-small"; - nixpkgs-unstable.url = "nixpkgs/nixos-unstable-small"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05-small"; + unstable.url = "github:NixOS/nixpkgs/nixos-unstable-small"; sops-nix.url = "github:Mic92/sops-nix"; sops-nix.inputs.nixpkgs.follows = "nixpkgs"; @@ -17,12 +17,12 @@ matrix-next.url = "github:dali99/nixos-matrix-modules"; grzegorz.url = "github:Programvareverkstedet/grzegorz"; - grzegorz.inputs.nixpkgs.follows = "nixpkgs-unstable"; + grzegorz.inputs.nixpkgs.follows = "unstable"; grzegorz-clients.url = "github:Programvareverkstedet/grzegorz-clients"; grzegorz-clients.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { self, nixpkgs, disko, matrix-next, pvv-calendar-bot, nixpkgs-unstable, sops-nix, ... }@inputs: + outputs = { self, nixpkgs, disko, matrix-next, pvv-calendar-bot, unstable, sops-nix, ... }@inputs: let nixlib = nixpkgs.lib; systems = [ @@ -45,7 +45,7 @@ rec { system = "x86_64-linux"; specialArgs = { - inherit nixpkgs-unstable inputs; + inherit unstable inputs; values = import ./values.nix; }; @@ -68,7 +68,7 @@ ); stableNixosConfig = nixosConfig nixpkgs; - unstableNixosConfig = nixosConfig nixpkgs-unstable; + unstableNixosConfig = nixosConfig unstable; in { bicep = stableNixosConfig "bicep" { modules = [ -- 2.44.1