nixos-config/flake.nix

27 lines
700 B
Nix
Raw Normal View History

2021-02-06 03:09:11 +01:00
{
description = "Nixos configuration with flakes";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09-small";
2021-02-15 17:23:25 +01:00
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
2021-02-06 03:09:11 +01:00
};
2021-02-15 17:23:25 +01:00
outputs = { self, nixpkgs, nixpkgs-unstable }: {
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem rec {
2021-02-06 03:09:11 +01:00
system = "x86_64-linux";
modules =
[
2021-02-14 13:42:43 +01:00
./poseidon.nix
2021-02-15 17:23:25 +01:00
2021-02-15 16:31:08 +01:00
{
2021-02-15 17:23:25 +01:00
nixpkgs.overlays = [
# packages accessible through pkgs.unstable.package
(final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${system};
})
] ++ (import ./overlays);
2021-02-15 16:31:08 +01:00
}
2021-02-06 03:09:11 +01:00
];
};
};
}