share laptop config

This commit is contained in:
Christoph Cullmann 2025-07-06 16:09:49 +02:00
parent ca0b94d19b
commit ed45bd9518
No known key found for this signature in database
3 changed files with 22 additions and 22 deletions

View file

@ -6,6 +6,9 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
# Shared config of all laptops
/data/nixos/share/laptop.nix
# Shared config of all machines
/data/nixos/share/common.nix
];
@ -16,15 +19,4 @@
# our hostname
networking.hostName = "beta";
networking.hostId = "c07bab49";
# use NetworkManager, if we have WiFi, allows Plasma to manage connections
# use iwd, only thing that works properly on e.g. Macs
networking.networkmanager.enable = true;
networking.wireless.iwd = {
enable = true;
settings.General.EnableNetworkConfiguration = true;
};
# german laptop keyboard
services.xserver.xkb.layout = "de";
}

14
share/laptop.nix Normal file
View file

@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
# use NetworkManager, if we have WiFi, allows Plasma to manage connections
# use iwd, only thing that works properly on e.g. Macs
networking.networkmanager.enable = true;
networking.wireless.iwd = {
enable = true;
settings.General.EnableNetworkConfiguration = true;
};
# german laptop keyboard
services.xserver.xkb.layout = "de";
}

View file

@ -5,8 +5,13 @@
[
# Include the results of the hardware scan.
./hardware-configuration.nix
# Include the necessary packages and configuration for Apple Silicon support.
./apple-silicon-support
# Shared config of all laptops
/data/nixos/share/laptop.nix
# Shared config of all machines
/data/nixos/share/common.nix
];
@ -17,15 +22,4 @@
# our hostname
networking.hostName = "zeta";
networking.hostId = "cce4e4c1";
# use NetworkManager, if we have WiFi, allows Plasma to manage connections
# use iwd, only thing that works properly on e.g. Macs
networking.networkmanager.enable = true;
networking.wireless.iwd = {
enable = true;
settings.General.EnableNetworkConfiguration = true;
};
# german laptop keyboard
services.xserver.xkb.layout = "de";
}