Compare commits
5 commits
5f02467ae5
...
7fbd0bac09
Author | SHA1 | Date | |
---|---|---|---|
|
7fbd0bac09 | ||
|
dd8a49df5a | ||
|
6d2ee57e9c | ||
|
99c5360e9c | ||
|
028dc4a017 |
3 changed files with 28 additions and 28 deletions
|
@ -56,7 +56,7 @@ handle_signal() {
|
||||||
kill -9 $sub_timer_pid
|
kill -9 $sub_timer_pid
|
||||||
sub_timer_pid=0
|
sub_timer_pid=0
|
||||||
timer_state_state="inactive"
|
timer_state_state="inactive"
|
||||||
timer_state_progress=100
|
timer_state_progress=100000
|
||||||
update_timer_state
|
update_timer_state
|
||||||
else
|
else
|
||||||
start_timer "work" &
|
start_timer "work" &
|
||||||
|
|
|
@ -52,33 +52,6 @@
|
||||||
podman-compose
|
podman-compose
|
||||||
];
|
];
|
||||||
|
|
||||||
# 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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
#Podman
|
#Podman
|
||||||
virtualisation.containers.enable = true;
|
virtualisation.containers.enable = true;
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
|
||||||
kernelModules = ["kvm-amd"];
|
kernelModules = ["kvm-amd"];
|
||||||
|
kernelParams = ["mem_sleep_default=deep"]; # Should fix/change suspend method
|
||||||
extraModulePackages = [];
|
extraModulePackages = [];
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
|
availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
|
||||||
|
@ -32,6 +33,32 @@
|
||||||
tmp.useTmpfs = true;
|
tmp.useTmpfs = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#NVIDIA
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
"nvidia-x11"
|
||||||
|
"nvidia-settings"
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
hardware.opengl.enable = true;
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
open = false; # Bruuh
|
||||||
|
|
||||||
|
prime = {
|
||||||
|
offload = {
|
||||||
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
amdgpuBusId = "PCI:7:0:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
Loading…
Reference in a new issue