Allow different nixos versions
This commit is contained in:
parent
93045ff863
commit
a0cb64a658
1 changed files with 7 additions and 6 deletions
13
flake.nix
13
flake.nix
|
|
@ -2,10 +2,11 @@
|
||||||
description = "NixOS configurations for zima, cryochamber, and liminal";
|
description = "NixOS configurations for zima, cryochamber, and liminal";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs-23-11.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||||
|
nixpkgs-25-05.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||||
|
nixpkgs-25-11.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
talon-nix.url = "github:nix-community/talon-nix";
|
talon-nix.url = "github:nix-community/talon-nix";
|
||||||
|
|
@ -13,7 +14,7 @@
|
||||||
beads-flake.url = "github:steveyegge/beads";
|
beads-flake.url = "github:steveyegge/beads";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, sops-nix, nixos-hardware, impermanence, talon-nix, plover-flake, beads-flake, ... }:
|
outputs = { self, nixpkgs-23-11, nixpkgs-25-05, nixpkgs-25-11, nixpkgs-unstable, sops-nix, nixos-hardware, impermanence, talon-nix, plover-flake, beads-flake, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
overlay-unstable = final: prev: {
|
overlay-unstable = final: prev: {
|
||||||
|
|
@ -24,7 +25,7 @@
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.zima = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.zima = nixpkgs-23-11.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit impermanence;
|
inherit impermanence;
|
||||||
|
|
@ -35,7 +36,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations.cryochamber = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.cryochamber = nixpkgs-25-05.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit impermanence;
|
inherit impermanence;
|
||||||
|
|
@ -46,7 +47,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations.liminal = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.liminal = nixpkgs-25-11.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit nixos-hardware impermanence talon-nix plover-flake beads-flake;
|
inherit nixos-hardware impermanence talon-nix plover-flake beads-flake;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue