From d97d836026cbd1b5f6e627f38ce8df71e7d979eb Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 10 Nov 2024 19:50:12 +0100 Subject: init nix --- flake.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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]; + }; + }; + }; +} -- cgit v1.2.3