Skip to content

Instantly share code, notes, and snippets.

@taku0
Last active July 1, 2025 14:40
Show Gist options
  • Save taku0/63656c79b6e766c5b692dc44adcb5d68 to your computer and use it in GitHub Desktop.
Save taku0/63656c79b6e766c5b692dc44adcb5d68 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
# How to start a VM:
# rm -f nixos.qcow2 && nixos-rebuild build-vm -I nixos-config=./uim_configuration.nix -I nixpkgs=. && QEMU_OPTS="-smp 8 -m 8G -enable-kvm -cpu host" ./result/bin/run-nixos-vm
{
nix.optimise.automatic = true;
nixpkgs.config.allowUnfree = true;
boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
virtualisation = {
diskSize = 8192;
};
environment.systemPackages = with pkgs; [
remmina
vscode
];
nixpkgs.overlays = [(self: super: rec {
})];
services.xserver.enable = true;
# services.displayManager.gdm.enable = true;
# services.desktopManager.gnome.enable = true;
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6.enable = true;
i18n.inputMethod = {
enable = true;
type = "uim";
# type = "fcitx5";
# fcitx5.addons = with pkgs; [ fcitx5-skk ];
};
users.users.test = {
isNormalUser = true;
uid = 1000;
description = "Test";
extraGroups = [ "wheel" ];
initialPassword = "test";
};
system.stateVersion = "25.11";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment