this repo has no description
0
fork

Configure Feed

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

feat: add codeserver VM

Khue Doan a316630b 93107fde

+47
+3
Makefile
··· 37 37 --write-efi-boot-entries \ 38 38 --flake '.#${host}' \ 39 39 --disk main '${disk}' 40 + 41 + clean: 42 + nix-collect-garbage --delete-old --log-format bar
+9
flake.nix
··· 39 39 ./hosts/thinkpadz13 40 40 ]; 41 41 }; 42 + codeserver = nixpkgs.lib.nixosSystem { 43 + modules = [ 44 + disko.nixosModules.disko 45 + ./configuration.nix 46 + home-manager.nixosModules.home-manager 47 + ./users/khuedoan 48 + ./hosts/codeserver 49 + ]; 50 + }; 42 51 }; 43 52 }; 44 53 }
+11
hosts/codeserver/default.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + imports = [ 5 + ./hardware-configuration.nix 6 + ]; 7 + 8 + networking = { 9 + hostName = "codeserver"; 10 + }; 11 + }
+24
hosts/codeserver/hardware-configuration.nix
··· 1 + # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 + # and may be overwritten by future invocations. Please make changes 3 + # to /etc/nixos/configuration.nix instead. 4 + { config, lib, pkgs, modulesPath, ... }: 5 + 6 + { 7 + imports = 8 + [ (modulesPath + "/profiles/qemu-guest.nix") 9 + ]; 10 + 11 + boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" ]; 12 + boot.initrd.kernelModules = [ ]; 13 + boot.kernelModules = [ ]; 14 + boot.extraModulePackages = [ ]; 15 + 16 + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 17 + # (the default) this is the recommended approach. When using systemd-networkd it's 18 + # still possible to use this option, but it's recommended to use it in conjunction 19 + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 20 + networking.useDHCP = lib.mkDefault true; 21 + # networking.interfaces.enp0s1.useDHCP = lib.mkDefault true; 22 + 23 + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; 24 + }