Start to extract common host configuration

This commit is contained in:
Oliver Davies 2024-12-19 08:00:00 +00:00
parent 07c6bd0ac7
commit 9088dac46d
5 changed files with 21 additions and 13 deletions

View file

@ -0,0 +1,16 @@
{
hostname,
inputs,
outputs,
...
}:
{
imports = [
inputs.home-manager.nixosModules.home-manager
outputs.nixosModules.default
];
networking.hostName = hostname;
}

View file

@ -12,16 +12,12 @@
{ {
imports = [ imports = [
inputs.home-manager.nixosModules.home-manager
inputs.nixos-hardware.nixosModules.common-cpu-intel inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-gpu-intel inputs.nixos-hardware.nixosModules.common-gpu-intel
inputs.nixos-hardware.nixosModules.common-pc-laptop inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-hdd inputs.nixos-hardware.nixosModules.common-pc-laptop-hdd
inputs.nixos-hardware.nixosModules.system76 inputs.nixos-hardware.nixosModules.system76
outputs.nixosModules.default
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -81,8 +77,6 @@
DefaultTimeoutStopSec=10s DefaultTimeoutStopSec=10s
''; '';
networking.hostName = hostname;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary

View file

@ -25,6 +25,8 @@
imports = [ imports = [
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
../common
./configuration.nix ./configuration.nix
./secrets.nix ./secrets.nix

View file

@ -12,10 +12,6 @@
{ {
imports = [ imports = [
inputs.home-manager.nixosModules.home-manager
outputs.nixosModules.default
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
@ -74,8 +70,6 @@
DefaultTimeoutStopSec=10s DefaultTimeoutStopSec=10s
''; '';
networking.hostName = hostname;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary

View file

@ -1,5 +1,7 @@
{ {
imports = [ imports = [
../common
./configuration.nix ./configuration.nix
]; ];
} }