Created
December 23, 2023 21:51
-
-
Save icecreammatt/43b01245bbbd920159f2aa513c2a4785 to your computer and use it in GitHub Desktop.
Mixed nix versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://discourse.nixos.org/t/one-flake-multiple-systems-tracking-different-releases/37028/14 | |
# https://github.com/futile/nixos-config/blob/e1c6a21a48bd0ef0ddebd67370b376eb54ff92e2/flake.nix#L6 | |
{ | |
inputs = { | |
nixpkgs = { url = "github:nixos/nixpkgs/nixos-23.11"; }; | |
nixpkgs-unstable = { url = "github:nixos/nixpkgs/nixos-unstable"; }; | |
}; | |
outputs = { self, nixpkgs, nixpkgs-unstable... }@inputs: | |
let | |
system = "x86_64-linux"; | |
in | |
{ | |
nixosConfigurations.nixos-home = nixpkgs.lib.nixosSystem { | |
modules = [ | |
./hosts/nixos-home | |
]; | |
}; | |
nixosConfigurations.nixos-work = nixpkgs-unstable.lib.nixosSystem { | |
modules = [ | |
{ | |
nixpkgs.config.pkgs = import nixpkgs-unstable { inherit system; }; | |
} | |
./hosts/nixos-work | |
]; | |
}; | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment