nixos/modules/hosts/nerv/configuration.nix
2026-09-01 00:28:18 +02:00

76 lines
1.6 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
lib,
pkgs,
...
}:
{
imports = [
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "nerv"; # Define your hostname.
networking.networkmanager.enable = true;
# enable flakes
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# use proprietary nvidia drivers
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
# Set your time zone.
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
services.desktopManager.gnome.enable = true;
services.displayManager.gdm.enable = true;
programs.niri = {
enable = true;
};
services.xserver.xkb.layout = "us";
services.pipewire = {
enable = true;
pulse.enable = true;
};
nixpkgs.config.allowUnfree = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.lucy = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
packages = with pkgs; [
google-chrome
];
};
environment.systemPackages = with pkgs; [
fastfetch
wget
git
clang
];
fonts.packages = [
config.theming.fontPackage
];
system.stateVersion = "26.05"; # Did you read the comment?
}