Update config
This commit is contained in:
parent
e1df4bbbcf
commit
556e0e1eb2
15 changed files with 323 additions and 164 deletions
|
|
@ -2,33 +2,37 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./raid.nix
|
||||
./bepovim.nix
|
||||
../../wm/bspwm.nix
|
||||
../../wm/plasma.nix
|
||||
../../apps/qemu.nix
|
||||
../../apps/gitea.nix
|
||||
../../apps/truenas.nix
|
||||
];
|
||||
nix.settings.experimental-features = ["nix-command" "flakes" ];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "amdgpu" ];
|
||||
boot.kernelModules = [ "amdgpu" "kvm-amd" ];
|
||||
boot.extraModulePackages = [];
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelParams = [
|
||||
"mem_sleep_default=deep"
|
||||
"amdgpu.si_support=0"
|
||||
"amdgpu.cik_support=0"
|
||||
"radeon.si_support=0"
|
||||
"radeon.cik_support=0"
|
||||
"amdgpu.cik_support=0"
|
||||
"radeon.si_support=0"
|
||||
"radeon.cik_support=0"
|
||||
"quiet"
|
||||
"splash"
|
||||
"boot.shell_on_fail"
|
||||
"udev.log_priority=3"
|
||||
"rd.systemd.show_status=auto"
|
||||
];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/b4e3577b-17ab-4a89-9aeb-4e223be4c75b"; # à adapter si tu as un autre label/disque
|
||||
fsType = "ext4"; # ou btrfs, xfs, ce que t'as utilisé
|
||||
};
|
||||
swapDevices = [] ;
|
||||
|
||||
boot.plymouth.enable = true ;
|
||||
boot.plymouth.theme = "spinner" ;
|
||||
boot.consoleLogLevel = 3 ;
|
||||
boot.initrd.verbose = false ;
|
||||
boot.loader.timeout = 5;
|
||||
boot.loader.systemd-boot.enable = true ;
|
||||
boot.loader.systemd-boot.consoleMode = "max" ;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.efi.efiSysMountPoint = "/boot";
|
||||
|
||||
|
|
@ -39,6 +43,12 @@
|
|||
RuntimeMaxUse=100M
|
||||
'';
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/b4e3577b-17ab-4a89-9aeb-4e223be4c75b"; # à adapter si tu as un autre label/disque
|
||||
fsType = "ext4"; # ou btrfs, xfs, ce que t'as utilisé
|
||||
};
|
||||
swapDevices = [] ;
|
||||
|
||||
hardware.firmware = with pkgs ; [ linux-firmware ];
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
hardware.graphics = {
|
||||
|
|
@ -52,6 +62,7 @@
|
|||
LIBVA_DRIVER_NAME = "radeonsi";
|
||||
VDPAU_DRIVER = "va_gl";
|
||||
};
|
||||
environment.defaultPackages = lib.mkForce [] ;
|
||||
|
||||
hardware.bluetooth.enable = true ;
|
||||
environment.etc."pam.d/i3lock".text = ''
|
||||
|
|
@ -61,17 +72,18 @@
|
|||
session include login
|
||||
'';
|
||||
services.blueman.enable = true ;
|
||||
|
||||
services.logind.settings.Login = {
|
||||
IdleAction="suspend";
|
||||
IdleActionSec="5min";
|
||||
HandleLidSwitch="suspend";
|
||||
HandleLidSwitchDocked="ignore";
|
||||
};
|
||||
services.openssh.enable = true ;
|
||||
services.xserver.enable = true ;
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
services.logind.extraConfig = ''
|
||||
IdleAction=suspend
|
||||
IdleActionSec=5min
|
||||
HandleLidSwitch=suspend
|
||||
HandleLidSwitchDocked=ignore
|
||||
'';
|
||||
|
||||
networking.hostName = "pennsardin";
|
||||
networking.firewall.enable = true ;
|
||||
time.timeZone = "Europe/Paris";
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||
|
|
@ -106,16 +118,22 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# i3lock
|
||||
p7zip
|
||||
btrfs-progs
|
||||
cifs-utils
|
||||
evtest
|
||||
gdu
|
||||
git
|
||||
glances
|
||||
lm_sensors
|
||||
neovim
|
||||
nixos-bgrt-plymouth
|
||||
parted
|
||||
pciutils
|
||||
pulseaudio
|
||||
snapper
|
||||
tmux
|
||||
usbutils
|
||||
xorg.xev
|
||||
xorg.xkbcomp
|
||||
];
|
||||
|
|
@ -136,3 +154,4 @@
|
|||
system.stateVersion = "25.05"; # pour éviter les hurlements inutiles
|
||||
}
|
||||
|
||||
# vim: set ts=2 sw=2 sts=2 et :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue