Parcourir la source

trying to get iso building working

Johan Rong il y a 5 mois
Parent
commit
cc4c7574cf
2 fichiers modifiés avec 29 ajouts et 2 suppressions
  1. 2 2
      flake.nix
  2. 27 0
      hosts/iso/configuration.nix

+ 2 - 2
flake.nix

@@ -71,10 +71,10 @@
           modules = [
             nix-flatpak.nixosModules.nix-flatpak
             "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-plasma6.nix"
-            ./hosts/${host.dir}/configuration.nix
+            ./hosts/iso/configuration.nix
             {
               # ISO-specific configuration
-              isoImage.fileName = "${host.hostname}-installer.iso";
+              image.fileName = "${host.hostname}-installer.iso";
               isoImage.volumeID = "${builtins.substring 0 11 host.hostname}";
             }
           ];

+ 27 - 0
hosts/iso/configuration.nix

@@ -0,0 +1,27 @@
+{ config, pkgs, lib, ... }:
+
+{
+  imports = [
+    ./networking.nix
+
+    #../../nixos/hardware/gpu/nvidia.nix
+    ../../nixos/hardware/wifi/bcm4360.nix
+  ];
+
+  nixpkgs.config.allowUnfree = true;
+
+  networking.hostName = "iso";
+  networking.networkmanager.enable = true;
+  networking.firewall.checkReversePath = false;
+
+  hardware.graphics = enable;
+
+  nix.settings.experimental-features = [ "nix-command" "flakes" ];
+  fileSystems = lib.mkMerge [
+    (builtins.listToAttrs (map mkBindMount folders))
+  ];
+
+  boot.loader.systemd-boot.enable = true;
+  boot.loader.efi.canTouchEfiVariables = true;
+  system.stateVersion = "25.11";  
+}