Flakes: Difference between revisions
imported>Malteneuss m Fix a few variable names for consitency |
imported>Malteneuss m Show how to use unfree packages with two or more channels |
||
| Line 397: | Line 397: | ||
outputs = { self, nixpkgs, nixpkgs-unstable }: | outputs = { self, nixpkgs, nixpkgs-unstable }: | ||
let | let | ||
system = "x86_64-linux"; | |||
overlay-unstable = final: prev: { | overlay-unstable = final: prev: { | ||
unstable = nixpkgs-unstable.legacyPackages.${prev.system}; | unstable = nixpkgs-unstable.legacyPackages.${prev.system}; | ||
# use this variant if unfree packages are needed: | |||
# unstable = import nixpkgs-unstable { | |||
# inherit system; | |||
# config.allowUnfree = true; | |||
# }; | |||
}; | }; | ||
in { | in { | ||
nixosConfigurations."<hostname>" = nixpkgs.lib.nixosSystem { | nixosConfigurations."<hostname>" = nixpkgs.lib.nixosSystem { | ||
system | inherit system; | ||
modules = [ | modules = [ | ||
# Overlays-module makes "pkgs.unstable" available in configuration.nix | # Overlays-module makes "pkgs.unstable" available in configuration.nix | ||