File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,10 @@ $ nix  --extra-experimental-features 'flakes nix-command' run nix-darwin -- swit
1717Generate SD card image
1818
1919``` shell 
20- $ nix build .# nixosConfigurations.adama.config.system.build.sdImage
21- $ unzstd result/sd-image/nixos-sd-image-24.05.20240706.49ee0e9-aarch64-linux.img.zst -o x.img
20+ $ task nixos:sd host=adama
2221``` 
2322
24- Flash SD card or USB stick with ` x .img`  using [ Raspberry Pi Imager] ( https://www.raspberrypi.com/software/ ) , put in RPi and start attached to network.
23+ Flash SD card or USB stick with ` sd .img`  using [ Raspberry Pi Imager] ( https://www.raspberrypi.com/software/ ) , put in RPi and start attached to network.
2524
2625Grab new ssh host key.
2726
Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ tasks:
5252        command : switch 
5353        args : --fast --use-remote-sudo --target-host {{.host}} {{.CLI_ARGS}} 
5454
55+   nixos:sd :
56+     requires :
57+       vars :
58+         - host 
59+     cmds :
60+       - nix build .#nixosConfigurations.{{.host}}.config.system.build.sdImage 
61+       - unzstd result/sd-image/nixos-sd-image-*-linux.img.zst -o sd.img 
62+ 
5563  fmt :
5664    cmds :
5765      - statix fix 
Original file line number Diff line number Diff line change 1+ {  ezModules ,  ... } :
2+ 
3+ { 
4+   imports =  [ 
5+     ezModules . hardware-rpi5 
6+     ezModules . sshd 
7+     ezModules . user-peteresselius 
8+   ] ; 
9+ 
10+   nixpkgs . hostPlatform =  "aarch64-linux" ; 
11+ 
12+   system . stateVersion =  "24.05" ; 
13+ 
14+   context =  "home" ; 
15+   formfactor =  "server" ; 
16+ } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments