NixOS_Config/global-configuration.nix

64 lines
1.5 KiB
Nix

{ ... }:
{
# Import configuration files.
imports = [
./localisation-configuration.nix
./packages.nix
./users-configuration.nix
];
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
# QT Adwaita theme
qt = {
enable = true;
platformTheme = "gnome";
style = "adwaita-dark";
};
# Enable networking
networking.networkmanager.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Nano configuration.
programs.nano = {
nanorc = ''
set autoindent
set linenumbers
set mouse
set tabstospaces
set tabsize 4
'';
};
services.udev.extraRules = ''
# Renesas based Arduino Santiago/Portenta H33 bootloader mode UDEV rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE:="0666"
'';
# Add nix experimental features.inherit
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}