flake: init

This commit is contained in:
Antoine Martin 2021-02-06 03:09:11 +01:00
parent f894feedaa
commit 3efc347bb8
2 changed files with 43 additions and 0 deletions

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1612541923,
"narHash": "sha256-P22TEgq3p7K7PQoSlFqMewZeLJuAtv9goKMQGxy1H3E=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "491f3ee5b3d3a4910d109ac8adb954aa5fac73a4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-20.09-small",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

16
flake.nix Normal file
View file

@ -0,0 +1,16 @@
{
description = "Nixos configuration with flakes";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09-small";
};
outputs = { self, nixpkgs }: {
nixosConfigurations.poseidon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[
./configuration.nix
];
};
};
}