From da9b9aa157d561623c7f51730a1c973cc0f314e0 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 14 Aug 2024 10:58:10 +0200 Subject: [PATCH] flake: add host x13yz, with nixosConfig abstraction --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/flake.nix b/flake.nix index 953ae36..37bd79c 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,31 @@ { + nixosConfigurations = + let + nixosSystem = { config, system }: inputs.nixpkgs.lib.nixosSystem { + modules = [ + outputs.nixosModules.withDepends + config + ]; + inherit system; + }; + in + { + + "x13yz" = nixosSystem { + config = { + hardware.cpu.type = "intel"; + hardware.graphics.amd.enable = true; + system.stateVersion = "24.05"; + x-banananetwork.frontend.enable = true; + }; + system = "x86_64-linux"; + }; + + }; + + nixosModules = { # this one includes all of my modules