Move shared linux system config to a generic linux module

This commit is contained in:
Martin Larsson 2025-05-11 15:15:28 +02:00
parent 3f03230f17
commit 8ad94f53e3
3 changed files with 55 additions and 82 deletions

View file

@ -5,7 +5,6 @@
];
boot = {
consoleLogLevel = 0;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
@ -33,34 +32,11 @@
finegrained = false;
};
nvidiaPersistenced = true;
};
graphics.enable = true;
bluetooth.enable = true;
bluetooth.powerOnBoot = true;
bluetooth.settings = {
General = {
Enable = "Source,Sink,Media,Socket";
Experimental = true;
};
};
};
networking.hostName = "walnut-nixos";
networking = {
wireless.iwd = {
enable = true;
settings.General.EnableNetworkConfiguration = true;
};
networkmanager = {
enable = true;
wifi.backend = "iwd";
wifi.powersave = true;
};
};
programs = {
xwayland.enable = true;
sway = {
@ -75,23 +51,11 @@
environment.variables = {
GBM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
NIXOS_OZONE_WL = "1";
WLR_NO_HARDWARE_CURSORS = "1";
WLR_RENDERER = "vulkan";
};
services = {
xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
};
};
users.users.larssonmartin = {
isNormalUser = true;
home = "/home/larssonmartin";
extraGroups = [ "wheel" ];
packages = [ ];
shell = pkgs.zsh;
xserver.videoDrivers = [ "nvidia" ];
};
}