summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2024-11-10 19:50:12 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2024-11-10 19:50:12 +0100
commitd97d836026cbd1b5f6e627f38ce8df71e7d979eb (patch)
tree9452e345a555ad42d79bfad452bc025058712fb4 /flake.nix
init nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..cd0efaf
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,35 @@
+{
+ inputs = {
+ my-nixpkgs.url = "github:qaristote/my-nixpkgs";
+ nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
+ };
+
+ outputs = {
+ nixpkgs,
+ my-nixpkgs,
+ ...
+ }: {
+ nixosConfigurations = let
+ system = "x86_64-linux";
+ commonModules = [
+ my-nixpkgs.nixosModules.personal
+ ({...}: {
+ nixpkgs.overlays = [
+ my-nixpkgs.overlays.personal
+ ];
+ })
+ ];
+ in {
+ hephaistos = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules =
+ commonModules
+ ++ [./config ./config/hardware-configuration.nix];
+ };
+ hephaistos-test = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules = commonModules ++ [./tests/configuration.nix];
+ };
+ };
+ };
+}