pointfichiers/hosts/Zephyrus/default.nix

105 lines
1.8 KiB
Nix
Raw Normal View History

{
inputs,
pkgs,
lib,
...
}: {
imports = [
./hardware-configuration.nix
];
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
# 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";
# Network & Bluetooth
networking.wireless.iwd.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
security.pam.services.swaylock = {};
2024-09-20 19:59:57 +02:00
# Audio
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
2024-09-20 19:59:57 +02:00
# Services
services.seatd.enable = true;
services.blueman.enable = true;
services.power-profiles-daemon.enable = true;
# Programs
environment.systemPackages = [
pkgs.git
pkgs.wget
pkgs.ncdu
pkgs.neofetch
pkgs.bottom
pkgs.htop
pkgs.iwgtk
];
# NVIDIA
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# NVIDIA
"nvidia-x11"
"nvidia-settings"
# Steam
"steam"
"steam-original"
"steam-run"
];
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";
};
};
# User config
users.groups.gaspard = {
name = "gaspard";
};
users.users.gaspard = {
isNormalUser = true;
extraGroups = [
"wheel"
"video"
"seat"
2024-09-20 19:59:57 +02:00
"audio"
];
group = "gaspard";
};
home-manager = {
extraSpecialArgs = {inherit inputs;};
users = {
"gaspard" = import ../../users/gaspard.nix;
};
};
system.stateVersion = "24.11";
}