this repo has no description
0
fork

Configure Feed

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

build: separate binary for the agent and simple make targets

Khue Doan ac88b973 f1be94da

+52 -32
+1
.gitignore
··· 1 + /result
+11
Makefile
··· 1 + .POSIX: 2 + .PHONY: default build fmt 3 + 4 + default: build 5 + 6 + build: 7 + nix build . 8 + 9 + fmt: 10 + go fmt ./... 11 + treefmt
+1 -1
README.md
··· 40 40 41 41 loop For each machine 42 42 Nixie->>Machines: Try checking status 43 + Nixie->>Nixie: Skip if already installed 43 44 end 44 45 45 - Nixie->>Nixie: Filter already installed hosts 46 46 Nixie->>Nix: Build installer components<br/>(kernel, initrd, squashfs) 47 47 Nixie->>Nixie: Start server components in goroutines<br/>(DHCP/TFTP/HTTP/API) 48 48
+9
cmd/nixie-agent/main.go
··· 1 + package main 2 + 3 + import ( 4 + "fmt" 5 + ) 6 + 7 + func main() { 8 + fmt.Println("TODO nixie agent") 9 + }
+24 -18
examples/flake.nix
··· 9 9 }; 10 10 }; 11 11 12 - outputs = { self, nixpkgs, disko }: { 13 - nixosConfigurations = { 14 - installer = nixpkgs.lib.nixosSystem { 15 - system = "x86_64-linux"; 16 - modules = [ 17 - ./installer.nix 18 - ]; 19 - }; 20 - machine1 = nixpkgs.lib.nixosSystem { 21 - system = "x86_64-linux"; 22 - modules = [ 23 - disko.nixosModules.disko 24 - ./configuration.nix 25 - { 26 - networking.hostName = "machine1"; 27 - } 28 - ]; 12 + outputs = 13 + { 14 + self, 15 + nixpkgs, 16 + disko, 17 + }: 18 + { 19 + nixosConfigurations = { 20 + installer = nixpkgs.lib.nixosSystem { 21 + system = "x86_64-linux"; 22 + modules = [ 23 + ./installer.nix 24 + ]; 25 + }; 26 + machine1 = nixpkgs.lib.nixosSystem { 27 + system = "x86_64-linux"; 28 + modules = [ 29 + disko.nixosModules.disko 30 + ./configuration.nix 31 + { 32 + networking.hostName = "machine1"; 33 + } 34 + ]; 35 + }; 29 36 }; 30 37 }; 31 - }; 32 38 }
+1 -1
main.go cmd/nixie/main.go
··· 5 5 ) 6 6 7 7 func main() { 8 - fmt.Println("Hello flake") 8 + fmt.Println("TODO nixie CLI") 9 9 }
-12
main_test.go
··· 1 - package main 2 - 3 - import ( 4 - "testing" 5 - ) 6 - 7 - func TestMain(t *testing.T) { 8 - got := "Hello flake" 9 - if got != "Hello flake" { 10 - t.Errorf("main: %s; want Hello flake", got) 11 - } 12 - }
+5
shell.nix
··· 21 21 packages = [ 22 22 goEnv 23 23 gomod2nix 24 + 25 + pkgs.gnumake 26 + pkgs.nixfmt-tree 27 + # TODO maybe embed this into the binary? 28 + pkgs.nixos-anywhere 24 29 ]; 25 30 }