diff options
author | tzlil <tzlils@protonmail.com> | 2023-08-01 13:50:36 +0300 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-08-01 13:50:54 +0300 |
commit | d30321f88b414fa1499c831748a039f0ca9c46ba (patch) | |
tree | 6e5f81c097b8d8300d9d290d7e3aa780cec25f0e | |
parent | 8566b6d3a58f10ea77dfec43ee25ae1e2ea33fc5 (diff) |
dont need vm host
-rw-r--r-- | hosts/vm/default.nix | 92 | ||||
-rw-r--r-- | hosts/vm/disko.nix | 52 |
2 files changed, 0 insertions, 144 deletions
diff --git a/hosts/vm/default.nix b/hosts/vm/default.nix deleted file mode 100644 index 99ed8b9..0000000 --- a/hosts/vm/default.nix +++ /dev/null @@ -1,92 +0,0 @@ -{ - config, - lib, - pkgs, - modulesPath, - ... -}: { - imports = [ - ../../profiles/core.nix - ../../profiles/user.nix - ../../profiles/ssh.nix - ../../profiles/graphical.nix - ../../mixins/tailscale.nix - ../../mixins/cli.nix - ../../mixins/greet.nix - ../../mixins/pipewire.nix - # ../../mixins/hyprland.nix - ../../mixins/sway.nix - # (modulesPath + "/profiles/qemu-guest.nix") - # (modulesPath + "/virtualisation/qemu-vm.nix") - ]; - - config = { - _module.args.nixinate = { - host = "vm"; - sshUser = "tzlil"; - buildOn = "remote"; # valid args are "local" or "remote" - substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s" - hermetic = false; - }; - networking.hostName = "vm"; - - # dont do this - users.users.root.initialPassword = "hunter2"; - - boot.supportedFilesystems = ["9p"]; - boot = { - initrd = { - supportedFilesystems = ["btrfs"]; - availableKernelModules = ["ata_piix" "uhci_hcd" "floppy" "sd_mod" "sr_mod"]; - }; - kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; - kernelParams = [ - "console=ttyS0" - ]; - loader = { - systemd-boot = { - enable = true; - }; - efi = { - canTouchEfiVariables = true; - efiSysMountPoint = "/boot"; - }; - }; - }; - - time.timeZone = lib.mkDefault "Israel"; - - fileSystems = { - "/" = { - device = "none"; - fsType = "tmpfs"; - options = ["noexec" "defaults" "size=2G" "mode=755"]; - }; - "/nix" = { - device = "/dev/disk/by-partlabel/nix"; - options = ["noatime" "compress=zstd"]; - }; - "/boot" = { - device = "/dev/disk/by-partlabel/boot"; - }; - }; - - zramSwap = { - enable = true; - algorithm = "zstd"; - }; - - hardware.opengl = { - enable = true; - extraPackages = with pkgs; [rocm-opencl-icd rocm-opencl-runtime]; - driSupport = true; - driSupport32Bit = true; - }; - - greeter.initialSession = "env WLR_RENDERER=pixman ${pkgs.sway.out}/bin/sway"; - # home-manager.users.tzlil.wayland.windowManager.sway.config.input."type:keyboard".xkb_variant = lib.mkForce ""; - - # nice to work with - security.sudo.wheelNeedsPassword = false; - }; -} diff --git a/hosts/vm/disko.nix b/hosts/vm/disko.nix deleted file mode 100644 index b7785d9..0000000 --- a/hosts/vm/disko.nix +++ /dev/null @@ -1,52 +0,0 @@ -{inputs, ...}: let - device = "/dev/sda"; -in { - imports = [ - inputs.disko.nixosModules.disko - ]; - - disko.devices = { - disk.${baseNameOf device} = { - inherit device; - type = "disk"; - content = { - type = "table"; - format = "gpt"; - partitions = [ - { - type = "partition"; - name = "ESP"; - start = "1MiB"; - end = "512MiB"; - bootable = true; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - } - { - name = "nix"; - type = "partition"; - start = "512M"; - end = "100%"; - part-type = "primary"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/nix"; - }; - } - ]; - }; - }; - nodev."/" = { - fsType = "tmpfs"; - mountOptions = [ - "size=3G" - "defaults" - "mode=755" - ]; - }; - }; -} |