about summary refs log tree commit diff
path: root/nix/hosts/caladan/darwin-configuration.nix
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-09-19 10:48:16 +0200
committerEmile <git@emile.space>2024-09-19 10:48:16 +0200
commite833c13c177288b2a7b9168a784e0e6562c025b6 (patch)
tree1661dad1694989e2d83e6c2fca7b5602a61c574b /nix/hosts/caladan/darwin-configuration.nix
parentdcde3882d5460368e3c0499a54330f84a6995d62 (diff)
big format using nixfmt
Diffstat (limited to 'nix/hosts/caladan/darwin-configuration.nix')
-rw-r--r--nix/hosts/caladan/darwin-configuration.nix45
1 files changed, 30 insertions, 15 deletions
diff --git a/nix/hosts/caladan/darwin-configuration.nix b/nix/hosts/caladan/darwin-configuration.nix
index 2461fd2..597ee1a 100644
--- a/nix/hosts/caladan/darwin-configuration.nix
+++ b/nix/hosts/caladan/darwin-configuration.nix
@@ -1,9 +1,7 @@
 { pkgs, lib, ... }:
 
 {
-  imports = [
-    ./overlay.nix
-  ];
+  imports = [ ./overlay.nix ];
 
   users.users.emile = {
     name = "emile";
@@ -31,15 +29,21 @@
   nix = {
     useDaemon = true;
     package = pkgs.nixFlakes;
-    extraOptions = ''
-  		builders-use-substitutes = true
-      auto-optimise-store = true
-    '' + lib.optionalString (pkgs.system == "aarch64-darwin") ''
-      extra-platforms = x86_64-darwin aarch64-darwin
-    '';
+    extraOptions =
+      ''
+        		builders-use-substitutes = true
+            auto-optimise-store = true
+      ''
+      + lib.optionalString (pkgs.system == "aarch64-darwin") ''
+        extra-platforms = x86_64-darwin aarch64-darwin
+      '';
 
     settings = {
-      trusted-users = [ "root" "hydra" "emile" ];
+      trusted-users = [
+        "root"
+        "hydra"
+        "emile"
+      ];
 
       trusted-public-keys = [
         "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
@@ -52,12 +56,15 @@
         "https://cache.garnix.io"
       ];
 
-      experimental-features = [ "nix-command" "flakes" ];
+      experimental-features = [
+        "nix-command"
+        "flakes"
+      ];
     };
 
     distributedBuilds = true;
 
-  	buildMachines = [
+    buildMachines = [
       {
         hostName = "corrino.emile.space";
         system = "x86_64-linux";
@@ -75,9 +82,14 @@
         # cat /etc/nix/machines
         # root@corrino  x86_64-linux      /home/nix/.ssh/id_ed25519        8 1     kvm,benchmark
 
-        supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
+        supportedFeatures = [
+          "nixos-test"
+          "benchmark"
+          "big-parallel"
+          "kvm"
+        ];
         mandatoryFeatures = [ ];
-    	}
+      }
     ];
   };
 
@@ -92,7 +104,10 @@
 
   environment = {
     systemPackages = [ ]; # set via home-manager
-    shells = with pkgs; [ bashInteractive zsh ];
+    shells = with pkgs; [
+      bashInteractive
+      zsh
+    ];
   };
 
 }