at master 1.7 kB view raw
1# This module contains the basic configuration for building a graphical NixOS 2# installation CD. 3{ lib, pkgs, ... }: 4{ 5 imports = [ ./installation-cd-base.nix ]; 6 7 # Whitelist wheel users to do anything 8 # This is useful for things like pkexec 9 # 10 # WARNING: this is dangerous for systems 11 # outside the installation-cd and shouldn't 12 # be used anywhere else. 13 security.polkit.extraConfig = '' 14 polkit.addRule(function(action, subject) { 15 if (subject.isInGroup("wheel")) { 16 return polkit.Result.YES; 17 } 18 }); 19 ''; 20 21 services.xserver.enable = true; 22 23 # KDE complains if power management is disabled (to be precise, if 24 # there is no power management backend such as upower). 25 powerManagement.enable = true; 26 27 # VM guest additions to improve host-guest interaction 28 services.spice-vdagentd.enable = true; 29 services.qemuGuest.enable = true; 30 virtualisation.vmware.guest.enable = pkgs.stdenv.hostPlatform.isx86; 31 # https://github.com/torvalds/linux/blob/00b827f0cffa50abb6773ad4c34f4cd909dae1c8/drivers/hv/Kconfig#L7-L8 32 virtualisation.hypervGuest.enable = 33 pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isAarch64; 34 services.xe-guest-utilities.enable = pkgs.stdenv.hostPlatform.isx86; 35 # The VirtualBox guest additions rely on an out-of-tree kernel module 36 # which lags behind kernel releases, potentially causing broken builds. 37 virtualisation.virtualbox.guest.enable = false; 38 39 # Enable plymouth 40 boot.plymouth.enable = true; 41 42 environment.defaultPackages = with pkgs; [ 43 # Include gparted for partitioning disks. 44 gparted 45 46 # Include some editors. 47 vim 48 nano 49 50 # Firefox for reading the manual. 51 firefox 52 53 mesa-demos 54 ]; 55 56}