From 1e0474b124f0791eb3805c63d6a67065ffee567f Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 5 Jul 2025 21:01:35 +0200 Subject: [PATCH] share workstation config --- miku/configuration.nix | 10 +++------- neko/configuration.nix | 10 +++------- share/workstation.nix | 10 ++++++++++ 3 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 share/workstation.nix diff --git a/miku/configuration.nix b/miku/configuration.nix index 1790c53..2b67066 100644 --- a/miku/configuration.nix +++ b/miku/configuration.nix @@ -6,6 +6,9 @@ # Include the results of the hardware scan. ./hardware-configuration.nix + # Shared config of all workstations + /data/nixos/share/workstation.nix + # Shared config of all machines /data/nixos/share/common.nix ]; @@ -16,11 +19,4 @@ # our hostname networking.hostName = "miku"; networking.hostId = "4d00f481"; - - # just classic DHCP, wired only - networking.networkmanager.enable = false; - networking.useDHCP = true; - - # EurKey layout - services.xserver.xkb.layout = "eu"; } diff --git a/neko/configuration.nix b/neko/configuration.nix index 15f6c14..f7dd32c 100644 --- a/neko/configuration.nix +++ b/neko/configuration.nix @@ -6,6 +6,9 @@ # Include the results of the hardware scan. ./hardware-configuration.nix + # Shared config of all workstations + /data/nixos/share/workstation.nix + # Shared config of all machines /data/nixos/share/common.nix ]; @@ -16,11 +19,4 @@ # our hostname networking.hostName = "neko"; networking.hostId = "4836f248"; - - # just classic DHCP, wired only - networking.networkmanager.enable = false; - networking.useDHCP = true; - - # EurKey layout - services.xserver.xkb.layout = "eu"; } diff --git a/share/workstation.nix b/share/workstation.nix new file mode 100644 index 0000000..5a0e97a --- /dev/null +++ b/share/workstation.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + # just classic DHCP, wired only + networking.networkmanager.enable = false; + networking.useDHCP = true; + + # EurKey layout + services.xserver.xkb.layout = "eu"; +}