2018-09-11 08:23:16 +02:00
|
|
|
# This module contains the basic configuration for building a graphical NixOS
|
|
|
|
# installation CD.
|
|
|
|
|
2019-06-16 21:59:06 +02:00
|
|
|
{ lib, pkgs, ... }:
|
2018-09-11 08:23:16 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./installation-cd-base.nix ];
|
|
|
|
|
2019-08-08 05:34:41 +02: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 06:28:47 +02:00
|
|
|
services.xserver.enable = true;
|
2018-09-11 08:23:16 +02:00
|
|
|
|
|
|
|
# Provide networkmanager for easy wireless configuration.
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
networking.wireless.enable = mkForce false;
|
|
|
|
|
|
|
|
# KDE complains if power management is disabled (to be precise, if
|
|
|
|
# there is no power management backend such as upower).
|
|
|
|
powerManagement.enable = true;
|
|
|
|
|
2019-02-21 23:04:33 +01:00
|
|
|
# Enable sound in graphical iso's.
|
|
|
|
hardware.pulseaudio.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;
|
|
|
|
virtualisation.vmware.guest.enable = true;
|
|
|
|
virtualisation.hypervGuest.enable = true;
|
|
|
|
services.xe-guest-utilities.enable = true;
|
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 15:56:53 +02:00
|
|
|
|
|
|
|
# Enable plymouth
|
|
|
|
boot.plymouth.enable = true;
|
|
|
|
|
|
|
|
environment.defaultPackages = with pkgs; [
|
2018-09-11 08:23:16 +02:00
|
|
|
# Include gparted for partitioning disks.
|
2022-04-04 15:56:53 +02:00
|
|
|
gparted
|
2018-09-11 08:23:16 +02:00
|
|
|
|
|
|
|
# Include some editors.
|
2022-04-04 15:56:53 +02:00
|
|
|
vim
|
|
|
|
nano
|
2018-09-11 08:23:16 +02:00
|
|
|
|
2020-02-14 17:52:18 +01:00
|
|
|
# Include some version control tools.
|
2022-04-04 15:56:53 +02:00
|
|
|
git
|
|
|
|
rsync
|
2020-02-14 17:52:18 +01:00
|
|
|
|
2018-09-11 08:23:16 +02:00
|
|
|
# Firefox for reading the manual.
|
2022-04-04 15:56:53 +02:00
|
|
|
firefox
|
2018-09-11 08:23:16 +02:00
|
|
|
|
2022-04-04 15:56:53 +02:00
|
|
|
glxinfo
|
2018-09-11 08:23:16 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|