feat/nix #3

Merged
Jaaj-San merged 59 commits from feat/nix into main 2024-09-20 22:35:47 +02:00
Showing only changes of commit 71847837d7 - Show all commits

View file

@ -9,13 +9,52 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
console.keyMap = "fr"; console.keyMap = "fr";
# Nix # Network & Bluetooth
nix.settings.experimental-features = ["nix-command" "flakes"]; networking.wireless.iwd.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
# Services
services.seatd.enable = true;
services.blueman.enable = true;
services.power-profiles-daemon.enable = true;
# Programs
environment.systemPackages = [
pkgs.git
pkgs.ncdu
pkgs.neofetch
pkgs.bottom
pkgs.htop
pkgs.iwgtk
];
# 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";
};
};
# User config # User config
users.groups.gaspard = { users.groups.gaspard = {
@ -38,36 +77,5 @@
}; };
}; };
# Programs
environment.systemPackages = [
pkgs.git
pkgs.ncdu
pkgs.neofetch
pkgs.bottom
pkgs.htop
];
# Services
services.seatd.enable = true;
services.power-profiles-daemon.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"; system.stateVersion = "24.11";
} }