nixos-config/config/modules/system76-pc.nix

89 lines
2.2 KiB
Nix
Raw Normal View History

2024-07-26 23:28:04 +00:00
{ config, pkgs, ... }:
{
hardware.system76.enableAll = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0"
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.consoleMode = "auto";
2024-07-26 23:28:04 +00:00
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.systemd.enable = true;
boot.kernelParams = [ "quiet" ];
boot.plymouth.enable = true;
2024-07-27 00:08:19 +00:00
boot.plymouth.themePackages = with pkgs; [ plymouth-vortex-ubuntu-theme ];
2024-07-27 00:09:19 +00:00
boot.plymouth.theme = "vortex-ubuntu";
2024-07-26 23:28:04 +00:00
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "America/New_York";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
2024-07-27 00:20:25 +00:00
# Hardware
hardware.graphics.enable = true;
hardware.graphics.extraPackages = [
pkgs.intel-media-driver
];
hardware.graphics.extraPackages32 = [
pkgs.intel-media-driver
pkgs.pkgsi686Linux.libva
];
2024-07-27 00:38:50 +00:00
hardware.pulseaudio.enable = false;
2024-07-27 00:20:25 +00:00
hardware.bluetooth.enable = true;
2024-07-27 00:38:21 +00:00
services.blueman.enable = true;
2024-07-27 00:20:25 +00:00
2024-07-26 23:28:04 +00:00
# Enable CUPS to print documents.
services.printing.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
2024-07-27 00:38:50 +00:00
pulse.enable = true;
2024-07-26 23:28:04 +00:00
};
# Define a user account. Don't forget to set a password with passwd.
users.users.alex = {
isNormalUser = true;
description = "Alex";
extraGroups = [ "networkmanager" "wheel" ];
};
}