ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix some bugs in the tutorial

+28 -13
+7 -7
doc/tutorial/part-one/basic-hive.md
··· 33 33 34 34 ```sh 35 35 [nix-shell]$ wire show 36 - WARN wire: use --json to output something scripting suitable 37 - Hive { 38 - nodes: {}, 39 - schema: 0, 40 - } 36 + INFO eval_hive: evaluating hive HiveNix("/home/marsh/scratch/wire-tutorial/hive.nix") 37 + WARN use --json to output something scripting suitable 38 + Summary: 0 total node(s), totalling 0 keys (0 distinct). 39 + Note: Listed connections are tried from Left to Right 40 + 41 41 ``` 42 42 43 43 The line `nodes: {}` means theres no "nodes" in our hive. ··· 56 56 wire.makeHive { 57 57 meta.nixpkgs = import sources.nixpkgs { }; 58 58 59 - virtual-machine = { # [!code ++] 59 + virtual-machine = { pkgs, ... }: { # [!code ++] 60 60 deployment.target = { # [!code ++] 61 61 port = 2222; # [!code ++] 62 62 hosts = [ "localhost" ]; # [!code ++] ··· 132 132 wire.makeHive { 133 133 meta.nixpkgs = import sources.nixpkgs { }; 134 134 135 - virtual-machine = { 135 + virtual-machine = { pkgs, ... }: { 136 136 deployment.target = { 137 137 port = 2222; 138 138 hosts = [ "localhost" ];
+17 -6
doc/tutorial/part-one/repo-setup.md
··· 27 27 [nix-shell]$ git init wire-tutorial 28 28 Initialized empty Git repository in /home/.../wire-tutorial/.git/ 29 29 [nix-shell]$ cd wire-tutorial/ 30 - [nix-shell]$ npins init 30 + [nix-shell]$ npins init --bare 31 31 [INFO ] Welcome to npins! 32 32 [INFO ] Creating `npins` directory 33 33 [INFO ] Writing default.nix 34 - [INFO ] Writing initial lock file with nixpkgs entry (need to fetch latest commit first) 34 + [INFO ] Writing initial lock file (empty) 35 35 [INFO ] Successfully written initial files to 'npins/sources.json'. 36 + [nix-shell]$ npins add github pkpbynum nixpkgs --branch pb/disk-size-bootloader 36 37 ``` 38 + 39 + ::: details 40 + 41 + This tutorial is using a [PR](https://github.com/NixOS/nixpkgs/pull/449945) that 42 + fixes virutal machine bootloader disk sizes. 43 + 44 + ::: 37 45 38 46 This has created a pinned version of `nixpkgs` for us to use in our Wire hive. 39 47 ··· 58 66 59 67 ```sh 60 68 [nix-shell]$ npins show 61 - nixpkgs: (Nix channel) 62 - name: nixpkgs-unstable 63 - url: https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre861972.88cef159e47c/nixexprs.tar.xz 64 - hash: 0zscvr0qa3capyzhmp798hgncz2qy8ggm843y10wk35jk7p0174f 69 + nixpkgs: (git repository) 70 + repository: https://github.com/pkpbynum/nixpkgs.git 71 + branch: pb/disk-size-bootloader 72 + submodules: false 73 + revision: da2060bdc1c9bc35acc4eafa265ba6b6c64f9926 74 + url: https://github.com/pkpbynum/nixpkgs/archive/da2060bdc1c9bc35acc4eafa265ba6b6c64f9926.tar.gz 75 + hash: 0j07gvnm7c5mzw1313asa8limzbmsbnsd02dcw22ing8fg3vbb7g 65 76 frozen: false 66 77 67 78 wire: (git release tag)
+4
doc/tutorial/part-one/vm-setup.md
··· 41 41 getty.autologinUser = "root"; 42 42 }; 43 43 44 + boot.growPartition = true; 45 + 44 46 virtualisation = { 45 47 graphics = false; 46 48 useBootLoader = true; 49 + 50 + diskSize = 5 * 1024; 47 51 48 52 # forward `openssh` port 22 to localhost:2222. 49 53 forwardPorts = [