Bruno BELANYI
3b148ad684
I have separated the modules into host-specific settings, and generic settings that ought to be shared by every host. I only have the 'porthos' host for now, but intend to also add my laptop 'aramis' at some point to this repository.
27 lines
732 B
Nix
27 lines
732 B
Nix
{
|
|
description = "Nixos configuration with flakes";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nur.url = "github:nix-community/NUR";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nur }: {
|
|
nixosConfigurations.porthos = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules =
|
|
[
|
|
({ pkgs, ... }: {
|
|
# Let 'nixos-version --json' know about the Git revision
|
|
# of this flake.
|
|
system.configurationRevision =
|
|
if self ? rev
|
|
then self.rev
|
|
else throw "Refusing to build from a dirty Git tree!";
|
|
})
|
|
{ nixpkgs.overlays = [ nur.overlay ]; }
|
|
./porthos.nix
|
|
];
|
|
};
|
|
};
|
|
}
|