2024-09-20 08:44:48 +02:00
|
|
|
{
|
2024-09-20 16:20:17 +02:00
|
|
|
inputs,
|
2024-09-20 08:44:48 +02:00
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-09-20 19:44:48 +02:00
|
|
|
# Nix
|
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
|
2024-09-20 08:44:48 +02:00
|
|
|
# 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";
|
2024-09-20 16:51:14 +02:00
|
|
|
|
2024-09-20 19:44:48 +02:00
|
|
|
# Network & Bluetooth
|
|
|
|
networking.wireless.iwd.enable = true;
|
2024-09-20 15:54:50 +02:00
|
|
|
|
2024-09-20 19:44:48 +02:00
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
hardware.bluetooth.powerOnBoot = true;
|
2024-09-20 16:20:17 +02:00
|
|
|
|
2024-09-30 14:08:31 +02:00
|
|
|
security.pam.services.swaylock = {};
|
|
|
|
|
2024-09-20 19:59:57 +02:00
|
|
|
# Audio
|
2024-09-22 09:41:24 +02:00
|
|
|
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
|
|
|
|
2024-09-20 19:44:48 +02:00
|
|
|
# Services
|
|
|
|
services.seatd.enable = true;
|
|
|
|
services.blueman.enable = true;
|
|
|
|
services.power-profiles-daemon.enable = true;
|
2024-09-20 17:12:30 +02:00
|
|
|
|
2024-09-20 17:24:37 +02:00
|
|
|
# Programs
|
2024-09-20 18:14:01 +02:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.git
|
2024-09-22 17:48:51 +02:00
|
|
|
pkgs.wget
|
2024-09-20 18:14:01 +02:00
|
|
|
pkgs.ncdu
|
|
|
|
pkgs.neofetch
|
|
|
|
pkgs.bottom
|
|
|
|
pkgs.htop
|
2024-09-20 19:44:48 +02:00
|
|
|
pkgs.iwgtk
|
2024-09-20 18:14:01 +02:00
|
|
|
];
|
2024-09-20 17:24:37 +02:00
|
|
|
|
2024-09-20 17:12:30 +02:00
|
|
|
# NVIDIA
|
2024-09-29 18:46:29 +02:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
# NVIDIA
|
|
|
|
"nvidia-x11"
|
|
|
|
"nvidia-settings"
|
|
|
|
# Steam
|
|
|
|
"steam"
|
|
|
|
"steam-original"
|
|
|
|
"steam-run"
|
|
|
|
];
|
2024-09-20 17:12:30 +02:00
|
|
|
|
2024-09-20 17:24:37 +02:00
|
|
|
hardware.graphics.enable = true;
|
2024-09-20 17:12:30 +02:00
|
|
|
|
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
|
|
|
|
|
|
hardware.nvidia = {
|
|
|
|
modesetting.enable = true;
|
|
|
|
|
|
|
|
open = false; # Bruuh
|
|
|
|
|
|
|
|
prime = {
|
|
|
|
amdgpuBusId = "PCI:7:0:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
};
|
2024-09-20 17:24:37 +02:00
|
|
|
|
2024-09-20 19:44:48 +02:00
|
|
|
# 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"
|
2024-09-20 19:44:48 +02:00
|
|
|
];
|
|
|
|
group = "gaspard";
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = {inherit inputs;};
|
|
|
|
users = {
|
|
|
|
"gaspard" = import ../../users/gaspard.nix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-09-20 17:24:37 +02:00
|
|
|
system.stateVersion = "24.11";
|
2024-09-20 08:44:48 +02:00
|
|
|
}
|