at 21.11-pre 1.3 kB view raw
1# This module contains the basic configuration for building a graphical NixOS 2# installation CD. 3 4{ lib, pkgs, ... }: 5 6with lib; 7 8{ 9 imports = [ ./installation-cd-base.nix ]; 10 11 # Whitelist wheel users to do anything 12 # This is useful for things like pkexec 13 # 14 # WARNING: this is dangerous for systems 15 # outside the installation-cd and shouldn't 16 # be used anywhere else. 17 security.polkit.extraConfig = '' 18 polkit.addRule(function(action, subject) { 19 if (subject.isInGroup("wheel")) { 20 return polkit.Result.YES; 21 } 22 }); 23 ''; 24 25 services.xserver.enable = true; 26 27 # Provide networkmanager for easy wireless configuration. 28 networking.networkmanager.enable = true; 29 networking.wireless.enable = mkForce false; 30 31 # KDE complains if power management is disabled (to be precise, if 32 # there is no power management backend such as upower). 33 powerManagement.enable = true; 34 35 # Enable sound in graphical iso's. 36 hardware.pulseaudio.enable = true; 37 38 environment.systemPackages = [ 39 # Include gparted for partitioning disks. 40 pkgs.gparted 41 42 # Include some editors. 43 pkgs.vim 44 pkgs.bvi # binary editor 45 pkgs.joe 46 47 # Include some version control tools. 48 pkgs.git 49 50 # Firefox for reading the manual. 51 pkgs.firefox 52 53 pkgs.glxinfo 54 ]; 55 56}