pointfichiers/hosts/Zephyrus/default.nix

73 lines
1.2 KiB
Nix
Raw Normal View History

{
inputs,
pkgs,
lib,
config,
...
}: {
imports = [
./hardware-configuration.nix
];
# Set your time zone.
time.timeZone = "Europe/Paris";
2024-09-20 15:16:34 +02:00
2024-09-20 16:54:41 +02:00
console.keyMap = "fr";
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
2024-09-20 15:16:34 +02:00
# User config
users.groups.gaspard = {
name = "gaspard";
};
users.users.gaspard = {
isNormalUser = true;
extraGroups = [
"wheel"
"video"
"seat"
2024-09-20 15:16:34 +02:00
];
group = "gaspard";
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
"gaspard" = import ../../users/gaspard.nix;
};
};
# Programs
environment.systemPackages = [
pkgs.git
pkgs.ncdu
pkgs.neofetch
pkgs.bottom
pkgs.htop
];
# Services
services.seatd.enable = true;
# NVIDIA
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["nvidia-x11" "nvidia-settings"];
hardware.graphics.enable = true;
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
open = false; # Bruuh
prime = {
amdgpuBusId = "PCI:7:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
system.stateVersion = "24.11";
}