this repo has no description
0
fork

Configure Feed

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

test: add examples for test cases

Khue Doan 02a7fbc1 b1e5e225

+173
+9
README.md
··· 4 4 [Wake-on-LAN](https://en.wikipedia.org/wiki/Wake-on-LAN), 5 5 [Pixiecore](https://github.com/danderson/netboot/tree/main/pixiecore) and 6 6 [nixos-anywhere](https://nix-community.github.io/nixos-anywhere). 7 + 8 + ## Usage 9 + 10 + ```sh 11 + nixie \ 12 + --flake ./examples \ 13 + --installer ./examples#installer \ 14 + --hosts ./examples/hosts.json 15 + ```
+62
examples/configuration.nix
··· 1 + { modulesPath, ... }: 2 + 3 + { 4 + imports = [ 5 + (modulesPath + "/profiles/all-hardware.nix") 6 + ]; 7 + 8 + disko.devices = { 9 + disk = { 10 + main = { 11 + type = "disk"; 12 + device = "/dev/sda"; 13 + content = { 14 + type = "gpt"; 15 + partitions = { 16 + ESP = { 17 + size = "1G"; 18 + type = "EF00"; 19 + content = { 20 + type = "filesystem"; 21 + format = "vfat"; 22 + mountpoint = "/boot"; 23 + mountOptions = [ "umask=0077" ]; 24 + }; 25 + }; 26 + root = { 27 + size = "100%"; 28 + content = { 29 + type = "filesystem"; 30 + format = "ext4"; 31 + mountpoint = "/"; 32 + }; 33 + }; 34 + }; 35 + }; 36 + }; 37 + }; 38 + }; 39 + 40 + boot = { 41 + loader = { 42 + systemd-boot = { 43 + enable = true; 44 + }; 45 + efi = { 46 + canTouchEfiVariables = true; 47 + }; 48 + }; 49 + }; 50 + 51 + services = { 52 + openssh = { 53 + enable = true; 54 + }; 55 + }; 56 + 57 + users.users.root.openssh.authorizedKeys.keys = [ 58 + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN5ue4np7cF34f6dwqH1262fPjkowHQ8irfjVC156PCG" 59 + ]; 60 + 61 + system.stateVersion = "25.05"; 62 + }
+48
examples/flake.lock
··· 1 + { 2 + "nodes": { 3 + "disko": { 4 + "inputs": { 5 + "nixpkgs": [ 6 + "nixpkgs" 7 + ] 8 + }, 9 + "locked": { 10 + "lastModified": 1758287904, 11 + "narHash": "sha256-IGmaEf3Do8o5Cwp1kXBN1wQmZwQN3NLfq5t4nHtVtcU=", 12 + "owner": "nix-community", 13 + "repo": "disko", 14 + "rev": "67ff9807dd148e704baadbd4fd783b54282ca627", 15 + "type": "github" 16 + }, 17 + "original": { 18 + "owner": "nix-community", 19 + "repo": "disko", 20 + "type": "github" 21 + } 22 + }, 23 + "nixpkgs": { 24 + "locked": { 25 + "lastModified": 1759580034, 26 + "narHash": "sha256-YWo57PL7mGZU7D4WeKFMiW4ex/O6ZolUS6UNBHTZfkI=", 27 + "owner": "nixos", 28 + "repo": "nixpkgs", 29 + "rev": "3bcc93c5f7a4b30335d31f21e2f1281cba68c318", 30 + "type": "github" 31 + }, 32 + "original": { 33 + "owner": "nixos", 34 + "ref": "nixos-25.05", 35 + "repo": "nixpkgs", 36 + "type": "github" 37 + } 38 + }, 39 + "root": { 40 + "inputs": { 41 + "disko": "disko", 42 + "nixpkgs": "nixpkgs" 43 + } 44 + } 45 + }, 46 + "root": "root", 47 + "version": 7 48 + }
+32
examples/flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs = { 4 + url = "github:nixos/nixpkgs/nixos-25.05"; 5 + }; 6 + disko = { 7 + url = "github:nix-community/disko"; 8 + inputs.nixpkgs.follows = "nixpkgs"; 9 + }; 10 + }; 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 + ]; 29 + }; 30 + }; 31 + }; 32 + }
+5
examples/hosts.json
··· 1 + { 2 + "machine1": { 3 + "mac_address": "bc:24:11:d0:28:34" 4 + } 5 + }
+17
examples/installer.nix
··· 1 + { lib, modulesPath, ... }: 2 + 3 + { 4 + imports = [ 5 + (modulesPath + "/installer/netboot/netboot-minimal.nix") 6 + ]; 7 + 8 + networking.hostName = "nixos-installer"; 9 + services.openssh.enable = true; 10 + 11 + users.users.root = { 12 + password = "nixos-installer"; 13 + initialHashedPassword = lib.mkForce null; 14 + }; 15 + 16 + system.stateVersion = "25.05"; 17 + }