this repo has no description
0
fork

Configure Feed

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

refactor: use vmVariant instead of a separate host

+10 -40
+2 -2
Makefile
··· 10 10 11 11 test: 12 12 nixos-rebuild \ 13 - --flake '.#testvm' \ 13 + --flake '.#${host}' \ 14 14 build-vm 15 - ./result/bin/run-testvm-vm 15 + ./result/bin/run-${host}-vm 16 16 17 17 diff: 18 18 nixos-rebuild \
+8
configuration.nix
··· 263 263 # Before changing this value read the documentation for this option 264 264 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 265 265 system.stateVersion = "23.05"; # Did you read the comment? 266 + 267 + virtualisation.vmVariant = { 268 + virtualisation.qemu.options = [ 269 + "-device virtio-vga-gl" 270 + "-display gtk,gl=on" 271 + ]; 272 + users.users.khuedoan.password = "testvm"; 273 + }; 266 274 }
-11
flake.nix
··· 29 29 ./hosts/ryzentower 30 30 ]; 31 31 }; 32 - 33 32 thinkpadz13 = nixpkgs.lib.nixosSystem { 34 33 modules = [ 35 34 disko.nixosModules.disko ··· 38 37 home-manager.nixosModules.home-manager 39 38 ./users/khuedoan 40 39 ./hosts/thinkpadz13 41 - ]; 42 - }; 43 - 44 - testvm = nixpkgs.lib.nixosSystem { 45 - modules = [ 46 - disko.nixosModules.disko 47 - ./configuration.nix 48 - home-manager.nixosModules.home-manager 49 - ./users/khuedoan 50 - ./hosts/testvm 51 40 ]; 52 41 }; 53 42 };
-27
hosts/testvm/default.nix
··· 1 - { modulesPath, ... }: 2 - 3 - { 4 - imports = [ 5 - (modulesPath + "/virtualisation/qemu-vm.nix") 6 - ]; 7 - 8 - networking = { 9 - hostName = "testvm"; 10 - }; 11 - 12 - virtualisation = { 13 - qemu.options = [ 14 - "-device virtio-vga-gl" 15 - "-display gtk,gl=on" 16 - ]; 17 - }; 18 - 19 - nixpkgs = { 20 - hostPlatform = "x86_64-linux"; 21 - }; 22 - 23 - users.users.khuedoan = { 24 - password = "testvm"; 25 - }; 26 - services.getty.autologinUser = "khuedoan"; 27 - }