Grub for dualboot and disable dGPU
This commit is contained in:
parent
e88598cd90
commit
cdbf80742e
2 changed files with 6 additions and 33 deletions
|
@ -12,7 +12,7 @@
|
||||||
# Setup nixbuild.net, since this laptop is somewhat under powered
|
# Setup nixbuild.net, since this laptop is somewhat under powered
|
||||||
# programs.ssh.extraConfig = ''
|
# programs.ssh.extraConfig = ''
|
||||||
# Host eu.nixbuild.net
|
# Host eu.nixbuild.net
|
||||||
# PubkeyAcceptedKeyTypes ssh-ed25519
|
# PubkeyAcceptedKeyTypes ssh-ed255191
|
||||||
# ServerAliveInterval 60
|
# ServerAliveInterval 60
|
||||||
# IPQoS throughput
|
# IPQoS throughput
|
||||||
# IdentityFile /home/nathan/.ssh/id_ed25519
|
# IdentityFile /home/nathan/.ssh/id_ed25519
|
||||||
|
@ -43,24 +43,16 @@
|
||||||
};
|
};
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
{
|
|
||||||
hostName = "eu.nixbuild.net";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
maxJobs = 100;
|
|
||||||
supportedFeatures = [
|
|
||||||
"benchmark"
|
|
||||||
"big-parallel"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Bootloader and plymouth
|
# Bootloader and plymouth
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
consoleMode = "auto";
|
device = "nodev";
|
||||||
|
useOSProber = true;
|
||||||
};
|
};
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
@ -69,17 +61,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Steam setup
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
gamescopeSession = {
|
|
||||||
enable = true;
|
|
||||||
args = [
|
|
||||||
"--expose-wayland"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "swarm"; # Define your hostname.
|
networking.hostName = "swarm"; # Define your hostname.
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
@ -236,15 +217,6 @@
|
||||||
services.power-profiles-daemon.enable = true;
|
services.power-profiles-daemon.enable = true;
|
||||||
services.cpupower-gui.enable = true;
|
services.cpupower-gui.enable = true;
|
||||||
|
|
||||||
# Nvidia gpu setup
|
|
||||||
hardware.nvidia = {
|
|
||||||
open = true;
|
|
||||||
prime = {
|
|
||||||
intelBusId = "PCI:0:2:0";
|
|
||||||
nvidiaBusId = "PCI:2:0:0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|
|
@ -35,7 +35,8 @@
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||||
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
# Disable the dGPU
|
||||||
|
inputs.nixos-hardware.nixosModules.common-gpu-nvidia-disable
|
||||||
# Our modules
|
# Our modules
|
||||||
(import ../../modules/base.nix {inherit inputs;})
|
(import ../../modules/base.nix {inherit inputs;})
|
||||||
(import ../../modules/desktop.nix)
|
(import ../../modules/desktop.nix)
|
||||||
|
|
Loading…
Add table
Reference in a new issue