feat: extract nvidia module and cleanup matej-nixos HW config

This commit is contained in:
2026-02-21 13:23:57 +01:00
parent 2c3bce4844
commit 957209d2a0
3 changed files with 46 additions and 70 deletions

View File

@@ -23,6 +23,7 @@ in
inputs.self.nixosModules.gnupg
inputs.self.nixosModules.tuigreet
inputs.self.nixosModules.workstation
inputs.self.nixosModules.nvidia
];
# Modules
@@ -43,6 +44,8 @@ in
cmdFlags = [ "--unsupported-gpu" ];
};
nvidia.enable = true;
# Stylix theming
stylix = {
enable = true;
@@ -87,6 +90,26 @@ in
# Hardware
hardware.keyboard.zsa.enable = true;
hardware.ledger.enable = true;
hardware.bluetooth.powerOnBoot = true;
# Networking
networking = {
hostName = "matej-nixos";
useDHCP = false;
networkmanager.enable = true;
interfaces.enp5s0.ipv4.addresses = [
{
address = "10.222.0.247";
prefixLength = 24;
}
];
firewall.enable = false;
defaultGateway = "10.222.0.1";
nameservers = [
"1.1.1.1"
"8.8.8.8"
];
};
# XDG
xdg.mime.defaultApplications = {