2018-09-11 06:23:16 +00: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 06:23:16 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./installation-cd-base.nix ];
|
|
|
|
|
2019-08-08 03:34:41 +00: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 04:28:47 +00:00
|
|
|
services.xserver.enable = true;
|
2018-09-11 06:23:16 +00:00
|
|
|
|
|
|
|
# Provide networkmanager for easy wireless configuration.
|
|
|
|
networking.networkmanager.enable = true;
|
2022-08-14 16:13:04 +00:00
|
|
|
networking.wireless.enable = mkImageMediaOverride false;
|
2018-09-11 06:23:16 +00:00
|
|
|
|
|
|
|
# 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 22:04:33 +00:00
|
|
|
# Enable sound in graphical iso's.
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
2022-05-12 07:32:43 +00:00
|
|
|
# VM guest additions to improve host-guest interaction
|
2022-05-17 08:36:59 +00:00
|
|
|
services.spice-vdagentd.enable = true;
|
|
|
|
services.qemuGuest.enable = true;
|
2022-09-29 23:59:06 +00:00
|
|
|
virtualisation.vmware.guest.enable = pkgs.stdenv.hostPlatform.isx86;
|
2022-05-17 08:36:59 +00:00
|
|
|
virtualisation.hypervGuest.enable = true;
|
2022-09-30 00:06:46 +00:00
|
|
|
services.xe-guest-utilities.enable = pkgs.stdenv.hostPlatform.isx86;
|
2022-05-16 10:34:55 +00: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 08:36:59 +00:00
|
|
|
virtualisation.virtualbox.guest.enable = false;
|
2022-04-04 13:56:53 +00:00
|
|
|
|
|
|
|
# Enable plymouth
|
|
|
|
boot.plymouth.enable = true;
|
|
|
|
|
|
|
|
environment.defaultPackages = with pkgs; [
|
2018-09-11 06:23:16 +00:00
|
|
|
# Include gparted for partitioning disks.
|
2022-04-04 13:56:53 +00:00
|
|
|
gparted
|
2018-09-11 06:23:16 +00:00
|
|
|
|
|
|
|
# Include some editors.
|
2022-04-04 13:56:53 +00:00
|
|
|
vim
|
|
|
|
nano
|
2018-09-11 06:23:16 +00:00
|
|
|
|
2020-02-14 16:52:18 +00:00
|
|
|
# Include some version control tools.
|
2022-04-04 13:56:53 +00:00
|
|
|
git
|
|
|
|
rsync
|
2020-02-14 16:52:18 +00:00
|
|
|
|
2018-09-11 06:23:16 +00:00
|
|
|
# Firefox for reading the manual.
|
2022-04-04 13:56:53 +00:00
|
|
|
firefox
|
2018-09-11 06:23:16 +00:00
|
|
|
|
2022-04-04 13:56:53 +00:00
|
|
|
glxinfo
|
2018-09-11 06:23:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|