You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

installation-cd-graphical-base.nix 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # This module contains the basic configuration for building a graphical NixOS
  2. # installation CD.
  3. { lib, pkgs, ... }:
  4. with lib;
  5. {
  6. imports = [ ./installation-cd-base.nix ];
  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. services.xserver = {
  21. enable = true;
  22. # Automatically login as nixos.
  23. displayManager.slim = {
  24. enable = true;
  25. defaultUser = "nixos";
  26. autoLogin = true;
  27. };
  28. };
  29. # Provide networkmanager for easy wireless configuration.
  30. networking.networkmanager.enable = true;
  31. networking.wireless.enable = mkForce false;
  32. # KDE complains if power management is disabled (to be precise, if
  33. # there is no power management backend such as upower).
  34. powerManagement.enable = true;
  35. # Enable sound in graphical iso's.
  36. hardware.pulseaudio.enable = true;
  37. environment.systemPackages = [
  38. # Include gparted for partitioning disks.
  39. pkgs.gparted
  40. # Include some editors.
  41. pkgs.vim
  42. pkgs.bvi # binary editor
  43. pkgs.joe
  44. # Firefox for reading the manual.
  45. pkgs.firefox
  46. pkgs.glxinfo
  47. ];
  48. }