nixos/hosts/zedd/configuration.nix

33 lines
832 B
Nix
Raw Normal View History

2024-03-18 11:58:34 +00:00
{ config, pkgs, ... }:
let
unstable = import <unstable> { config = { allowUnfree = true; }; };
in
{
# Enable OpenGL
# Load nvidia driver for Xorg and Wayland
environment.pathsToLink = [ "/libexec" ];
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.networkmanager.enable = true;
time.timeZone = "Europe/Oslo";
i18n.defaultLocale = "en_US.UTF-8";
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
virtualisation.docker.enable = true;
system.stateVersion = "23.11"; # Did you read the comment?
}