carotte: fix build
authorJulien Moutinho <julm@sourcephile.fr>
Thu, 28 Mar 2024 00:52:55 +0000 (01:52 +0100)
committerJulien Moutinho <julm@sourcephile.fr>
Thu, 28 Mar 2024 00:52:55 +0000 (01:52 +0100)
flake.nix
hosts/carotte.nix
hosts/carotte/networking.nix
hosts/carotte/security.nix
nixos/profiles/hardware/cubieboard2.nix
nixos/profiles/systems/crossCompilation.nix

index 9983a37fafb56c52c67a5a16133d4d71bf265c42..ead9d87c56cfa4961e59a9ea93cc097b6659d494 100644 (file)
--- a/flake.nix
+++ b/flake.nix
       apps = forAllSystems ({ pkgs, system, ... }:
         with builtins;
         mapAttrs
-          (hostName: { config, ... }:
+          (hostName: { config, pkgs, ... }:
             let
               inherit (config.system) build;
               target = "\"\${TARGET:-root@${config.networking.hostName}.wg}\"";
               '');
               # Example: nix run .#carotte.install-sd
               # DELETEME: quite useless, better to use nixos-install
-              "install-sd" = scriptApp "install-sd" [ zstd ] ''
+              "install-sd" = scriptApp "install-sd" [ pkgs.zstd ] ''
                 set -o pipefail
                 nix-store --add-root hosts/${hostName}.root --indirect --realise ${build.sdImage}
                 unzstd --stdout ${build.sdImage}/sd-image/*.img.zst |
index 2e0acac74a1ffb2076ca5032e6c114db577a64e1..4fbefa412fbbbb1368c7dfc22b490741eb87ed0b 100644 (file)
@@ -9,17 +9,19 @@
     {
       install.substituteOnDestination = false;
     }
-    ../nixos/defaults.nix
+    (inputs.julm-nix + "/nixos/profiles/builder.nix")
+    (inputs.julm-nix + "/nixos/profiles/lang-fr.nix")
+    (inputs.julm-nix + "/nixos/profiles/networking/remote.nix")
     ../nixos/profiles/systems/debug.nix
     #carotte/fileSystems.nix
 
     carotte/hardware.nix
-    carotte/hostapd.nix
+    #carotte/hostapd.nix
     carotte/networking.nix
     carotte/security.nix
     carotte/system.nix
     carotte/users.nix
-    (inputs.secrets + "/hosts/${hostName}/users.nix")
+    #(inputs.secrets + "/hosts/${hostName}/users.nix")
     #carotte/xserver.nix
   ];
 }
index 0039e4e81757f28a1da7bd31f1693f11b22a9834..f29b8ab79e5b9ccf4593564097a46a47f1b5f1d5 100644 (file)
@@ -1,7 +1,7 @@
 { hostName, ... }:
 {
   imports = [
-    networking/wireguard/intranet.nix
+    #networking/wireguard/intranet.nix
   ];
   networking = {
     hostName = hostName;
index af3d09fd3130b6065985c7ddb2bc63efec8b0044..e582910085e263d6b9817e3facbd8e4e746e44aa 100644 (file)
@@ -2,6 +2,7 @@
 {
   security.lockKernelModules = false;
   security.virtualisation.flushL1DataCache = lib.mkForce null;
+  /*
   security.gnupg.agent = {
     keyring."C7BCEA3D090956E7D51E94ADFF53191D9FA89552" = {
       passwordGpg = "gnupg/root.gpg";
@@ -12,4 +13,5 @@
     # This is for removing remote gpg-agent's socket
     StreamLocalBindUnlink yes
   '';
+  */
 }
index d138c73f621cdf5e3490d7d8738fa278de955d01..df0aafea602b588fbf927f9b2624f721cdc5c245 100644 (file)
     "console=tty0"
   ];
   boot.kernelPatches = [
+    /*
     {
       name = "0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE";
       patch = ../../../nixpkgs/patches/linux/0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE.patch;
       extraConfig = ''
     '';
     }
+    */
   ];
 
   #nixpkgs.config.allowUnfree = true;
-  nixpkgs.crossSystem = lib.systems.examples.armv7l-hf-multiplatform;
+  #nixpkgs.crossSystem = lib.systems.examples.armv7l-hf-multiplatform;
   nixpkgs.overlays = [
     (_final: super: {
       # https://linux-sunxi.org/Mali_Open_Source_Driver#Configuration_and_Build
       mesa = super.mesa.override {
-        driDrivers = [ ];
+        #driDrivers = [ ];
         eglPlatforms = [ "x11" ];
         enableGalliumNine = false;
         galliumDrivers = [ "lima" "panfrost" "kmsro" "swrast" ];
             DRM_PANEL_ORIENTATION_QUIRKS = no;
             DRM_LIB_RANDOM = no;
 
-            INFINIBAND = no;
+            INFINIBAND = lib.mkForce no;
             INPUT_TOUCHSCREEN = no;
             MEDIA_ANALOG_TV_SUPPORT = lib.mkForce no;
             MEDIA_DIGITAL_TV_SUPPORT = lib.mkForce no;
       });
     })
   ];
-  boot.cleanTmpDir = true;
-  boot.tmpOnTmpfs = lib.mkForce false;
+  boot.tmp.cleanOnBoot = true;
+  boot.tmp.useTmpfs = lib.mkForce false;
   # TODO: is that needed?
   hardware.enableRedistributableFirmware = true;
   sdImage = {
index 82ac91ce8f1f27ae56d5f8d5caf86e2fe2c555b6..fbde13a86058aeed0130d54303c210f8e4cbbd23 100644 (file)
@@ -4,7 +4,7 @@
     (final: super: {
       gnupg = super.gnupg.override {
         # Wants polkit which wants spidermonkey (slow to compile)
-        pcsclite = null;
+        pcsclite = final.hello;
       };
       systemd = super.systemd.override {
         # Wants tpm2-tss which does not cross-compile
@@ -13,7 +13,7 @@
         withEfi = false;
       };
       # https://logs.nix.samueldr.com/nixos/2019-07-23#2416964;
-      xorg = super.xorg.overrideScope' (_ofinal: _osuper: {
+      xorg = super.xorg.overrideScope (_ofinal: _osuper: {
         fontadobe100dpi = final.hello;
         fontadobe75dpi = final.hello;
         fontcursormisc = final.hello;