2018-09-11 02:23:16 -04:00
|
|
|
# This module contains the basic configuration for building a graphical NixOS
|
|
|
|
# installation CD.
|
2019-06-16 19:59:06 +00:00
|
|
|
{ lib, pkgs, ... }:
|
2018-09-11 02:23:16 -04:00
|
|
|
{
|
|
|
|
imports = [ ./installation-cd-base.nix ];
|
|
|
|
|
2019-08-07 23:34:41 -04:00
|
|
|
# Whitelist wheel users to do anything
|
|
|
|
# This is useful for things like pkexec
|
|
|
|
#
|
|
|
|
# WARNING: this is dangerous for systems
|
|
|
|
# outside the installation-cd and shouldn't
|
|
|
|
# be used anywhere else.
|
|
|
|
security.polkit.extraConfig = ''
|
|
|
|
polkit.addRule(function(action, subject) {
|
|
|
|
if (subject.isInGroup("wheel")) {
|
|
|
|
return polkit.Result.YES;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
'';
|
|
|
|
|
2019-10-22 00:28:47 -04:00
|
|
|
services.xserver.enable = true;
|
2018-09-11 02:23:16 -04:00
|
|
|
|
|
|
|
# Provide networkmanager for easy wireless configuration.
|
|
|
|
networking.networkmanager.enable = true;
|
2024-08-28 21:18:52 +02:00
|
|
|
networking.wireless.enable = lib.mkImageMediaOverride false;
|
2018-09-11 02:23:16 -04:00
|
|
|
|
|
|
|
# KDE complains if power management is disabled (to be precise, if
|
|
|
|
# there is no power management backend such as upower).
|
|
|
|
powerManagement.enable = true;
|
|
|
|
|
2022-05-12 09:32:43 +02:00
|
|
|
# VM guest additions to improve host-guest interaction
|
2022-05-17 10:36:59 +02:00
|
|
|
services.spice-vdagentd.enable = true;
|
|
|
|
services.qemuGuest.enable = true;
|
2022-09-30 01:59:06 +02:00
|
|
|
virtualisation.vmware.guest.enable = pkgs.stdenv.hostPlatform.isx86;
|
2025-05-02 22:34:22 +02:00
|
|
|
# https://github.com/torvalds/linux/blob/00b827f0cffa50abb6773ad4c34f4cd909dae1c8/drivers/hv/Kconfig#L7-L8
|
|
|
|
virtualisation.hypervGuest.enable =
|
|
|
|
pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isAarch64;
|
2022-09-30 02:06:46 +02:00
|
|
|
services.xe-guest-utilities.enable = pkgs.stdenv.hostPlatform.isx86;
|
2022-05-16 12:34:55 +02:00
|
|
|
# The VirtualBox guest additions rely on an out-of-tree kernel module
|
|
|
|
# which lags behind kernel releases, potentially causing broken builds.
|
2022-05-17 10:36:59 +02:00
|
|
|
virtualisation.virtualbox.guest.enable = false;
|
2022-04-04 09:56:53 -04:00
|
|
|
|
|
|
|
# Enable plymouth
|
|
|
|
boot.plymouth.enable = true;
|
|
|
|
|
|
|
|
environment.defaultPackages = with pkgs; [
|
2018-09-11 02:23:16 -04:00
|
|
|
# Include gparted for partitioning disks.
|
2022-04-04 09:56:53 -04:00
|
|
|
gparted
|
2018-09-11 02:23:16 -04:00
|
|
|
|
|
|
|
# Include some editors.
|
2022-04-04 09:56:53 -04:00
|
|
|
vim
|
|
|
|
nano
|
2018-09-11 02:23:16 -04:00
|
|
|
|
|
|
|
# Firefox for reading the manual.
|
2022-04-04 09:56:53 -04:00
|
|
|
firefox
|
2018-09-11 02:23:16 -04:00
|
|
|
|
2024-07-04 15:30:03 +02:00
|
|
|
mesa-demos
|
2018-09-11 02:23:16 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|