From 37a6d67d92c7e821e8b89385543d245890b4ca65 Mon Sep 17 00:00:00 2001 From: "Mohamed C." Date: Fri, 16 Aug 2024 18:54:52 +0200 Subject: [PATCH] live iso --- flake.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/flake.nix b/flake.nix index 8bed5b4..178157a 100644 --- a/flake.nix +++ b/flake.nix @@ -126,6 +126,46 @@ home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ]; } ]; + + + # LIVEISO for Steamdeck + # user and hostName variable inside hostConfig so we can call it in other modules + nixosConfigurations.live = + let + user = "deck"; + hostName = "steamdeck"; + in + lib.nixosSystem { + specialArgs = { + inherit systemModules; + inherit userModules; + inherit system; + inherit user; + inherit hostName; + }; + system = system; + # Device specific NixOS Modules + modules = systemModules ++ [ + jovian.nixosModules.jovian + ./hosts/${hostName} + /nixos/modules/installer/cd-dvd/installation-cd-minimal.nix + ./modules/system/apps-misc + ./modules/system/browser + ./modules/system/controller + ./modules/system/jovian-${hostName} + ./modules/system/lact + ./modules/system/plasma + ./modules/system/steam + { + # Device specific Home Manager Modules + home-manager.users.${user}.imports = userModules ++ [ + ./modules/user/plasma + ]; + # Issue with Plasma Manager, has to be imported in a special way + home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ]; + } + ]; }; }; +}; }