~ruther/nixos-config

7ec6ab726cf54f5577eabc3475596d48c6a69cac — Frantisek Bohacek 1 year, 6 months ago 45660c0
feat: make necessary changes to allow running inside of vm
2 files changed, 12 insertions(+), 1 deletions(-)

M .gitignore
M hosts/vm/default.nix
M .gitignore => .gitignore +1 -0
@@ 3,4 3,5 @@
*.log
tmp/

*.qcow2
result

M hosts/vm/default.nix => hosts/vm/default.nix +11 -1
@@ 12,7 12,7 @@
#               └─ bspwm.nix
#

{ config, pkgs, lib, ... }:
{ config, pkgs, lib, user, ... }:

let
  mkSure = lib.mkOverride 0;


@@ 21,8 21,13 @@ in {
    ./hardware-configuration.nix                # Current system hardware config @ /etc/nixos/hardware-configuration.nix
    ../../modules/desktop/dm/sddm.nix           # Desktop Manager
    ../../modules/desktop/qtile/default.nix           # Qtile
    <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix>
  ];

  users.users.${user} = {                   # System User
    initialPassword = "1234";
  };

  services.spice-vdagentd.enable = mkSure true;
  services.qemuGuest.enable = true;
  environment.systemPackages = with pkgs; [


@@ 30,6 35,11 @@ in {
    pkgs.xorg.xf86videoqxl
  ];

  virtualisation.vmVariant = {
    memorySize = 4096;
    cores = 6;
  };

  boot = {                                      # Boot options
    kernelPackages = pkgs.linuxPackages_latest;


Do not follow this link