task sync changes to all <host>/default.nix

This commit is contained in:
Don Harper 2026-05-20 08:04:16 -05:00
parent 4b20ed8394
commit 4364fb17f1
17 changed files with 81 additions and 195 deletions

View file

@ -1,17 +1,10 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
../templates/workstation.nix
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
./hardware-configuration.nix ./hardware-configuration.nix
# ../disko/mmcblk.nix
../workstation
]; ];
networking.hostName = "ace"; networking.hostName = "ace";
variables.swayScale = "0.75"; variables.swayScale = "0.75";
@ -19,5 +12,5 @@
gui.enable = true; gui.enable = true;
kmscon.enable = true; kmscon.enable = true;
}; };
wm = {sway.enable = true;}; wm.sway.enable = true;
} }

View file

@ -5,12 +5,10 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
# Host-specific configuration
networking.hostName = "book"; networking.hostName = "book";
variables.address = "100.72.121.75"; variables.address = "100.72.121.75";
variables.swayScale = "1.5"; variables.swayScale = "1.5";
# Enable roles for this host
roles = { roles = {
gui.enable = true; gui.enable = true;
kmscon.enable = true; kmscon.enable = true;

View file

@ -6,7 +6,6 @@
./kiosk.nix ./kiosk.nix
]; ];
# Host-specific configuration
networking.hostName = "display"; networking.hostName = "display";
variables.address = "100.72.208.107"; variables.address = "100.72.208.107";

View file

@ -1,17 +1,11 @@
{ { inputs, config, pkgs, ... }: {
inputs,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops inputs.nixos-hardware.nixosModules.framework-amd-ai-300-series
./hardware-configuration.nix
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-ssd inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
../workstation ./hardware-configuration.nix
]; ];
networking.hostName = "dragon"; networking.hostName = "dragon";
variables.swayScale = "1.0"; variables.swayScale = "1.0";
@ -21,5 +15,5 @@
kmscon.enable = true; kmscon.enable = true;
auto-cpufreq.enable = true; auto-cpufreq.enable = true;
}; };
wm = {sway.enable = true;}; wm.sway.enable = true;
} }

View file

@ -1,18 +1,11 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
../templates/workstation.nix
inputs.nixos-hardware.nixosModules.google-pixelbook inputs.nixos-hardware.nixosModules.google-pixelbook
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
./hardware-configuration.nix ./hardware-configuration.nix
# ../disko/mmcblk.nix
../workstation
]; ];
networking.hostName = "eve"; networking.hostName = "eve";
variables.swayScale = "1.5"; variables.swayScale = "1.5";
@ -22,5 +15,5 @@
kmscon.enable = true; kmscon.enable = true;
auto-cpufreq.enable = true; auto-cpufreq.enable = true;
}; };
wm = {sway.enable = true;}; wm.sway.enable = true;
} }

View file

@ -1,31 +1,22 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
../server
./docker.nix ./docker.nix
# ./podman.nix
# ../server/unifi.nix
]; ];
networking.hostName = "fred"; networking.hostName = "fred";
variables.address = "100.72.236.170"; variables.address = "100.72.236.170";
boot = { # boot = {
binfmt.emulatedSystems = lib.optionals (pkgs.stdenv.hostPlatform.system != "aarch64-linux") [ "aarch64-linux" ]; # binfmt.emulatedSystems = lib.optionals (pkgs.stdenv.hostPlatform.system != "aarch64-linux") [ "aarch64-linux" ];
loader = { # loader = {
systemd-boot = {enable = true;}; # systemd-boot = {enable = true;};
efi = { # efi = {
canTouchEfiVariables = true; # canTouchEfiVariables = true;
efiSysMountPoint = "/boot"; # efiSysMountPoint = "/boot";
}; # };
}; # };
}; # };
primary.enable = true; primary.enable = true;
} }

View file

@ -1,15 +1,7 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
../server
]; ];
networking.hostName = "harper"; networking.hostName = "harper";
variables.address = "100.72.0.3"; variables.address = "100.72.0.3";

View file

@ -1,15 +1,7 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
../server
]; ];
networking.hostName = "harper2"; networking.hostName = "harper2";
variables.address = "100.72.0.4"; variables.address = "100.72.0.4";

View file

@ -5,12 +5,10 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
# Host-specific configuration
networking.hostName = "loki"; networking.hostName = "loki";
variables.address = "100.72.0.1"; variables.address = "100.72.0.1";
variables.swayScale = "1.2"; variables.swayScale = "1.2";
# Enable roles for this host
roles = { roles = {
citrix.enable = true; citrix.enable = true;
zoom.enable = true; zoom.enable = true;

View file

@ -1,15 +1,7 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
../server
]; ];
networking.hostName = "nuwww"; networking.hostName = "nuwww";
variables.address = "100.72.2.1"; variables.address = "100.72.2.1";

View file

@ -1,13 +1,6 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
../pi-server ../pi-server
./kiosk.nix ./kiosk.nix

View file

@ -1,15 +1,7 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
../server
]; ];
networking.hostName = "pihole"; networking.hostName = "pihole";
} }

View file

@ -1,32 +1,21 @@
{ { inputs, outputs, libs, config, pkgs, ... }: {
inputs,
outputs,
libs,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/workstation.nix
./hardware-configuration.nix
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-ssd inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
../workstation ./hardware-configuration.nix
]; ];
networking.hostName = "pocket2"; networking.hostName = "pocket2";
variables.address = "192.168.1.12"; variables.address = "192.168.1.12";
variables.swayScale = "1.7"; variables.swayScale = "1.7";
roles = { roles = {
citrix.enable = false;
zoom.enable = false;
gui.enable = true; gui.enable = true;
kmscon.enable = true; kmscon.enable = true;
games.enable = false;
auto-cpufreq.enable = false;
gnome-calendar.enable = true; gnome-calendar.enable = true;
}; };
wm = {sway.enable = true;}; wm.sway.enable = true;
} }

View file

@ -1,20 +1,13 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
../templates/workstation.nix
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260 inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260
inputs.nixos-hardware.nixosModules.common-pc-laptop inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-ssd inputs.nixos-hardware.nixosModules.common-pc-ssd
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
./hardware-configuration.nix ./hardware-configuration.nix
# ../disko/sda.nix
../workstation
]; ];
networking.hostName = "smaug"; networking.hostName = "smaug";
variables.address = "100.72.248.81"; variables.address = "100.72.248.81";
variables.swayScale = "0.75"; variables.swayScale = "0.75";
@ -22,8 +15,7 @@
roles = { roles = {
gui.enable = true; gui.enable = true;
kmscon.enable = true; kmscon.enable = true;
auto-cpufreq.enable = true;
gnome-calendar.enable = true; gnome-calendar.enable = true;
}; };
wm = {sway.enable = true;}; wm.sway.enable = true;
} }

View file

@ -1,32 +1,23 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
./network.nix
../server
./podman.nix ./podman.nix
# ../server/searxng.nix
]; ];
networking.hostName = "w1"; networking.hostName = "w1";
variables.address = "100.72.16.240"; variables.address = "100.72.16.240";
boot = { # boot = {
initrd = { # initrd = {
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; # availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
kernelModules = ["nvme"]; # kernelModules = ["nvme"];
}; # };
loader = { # loader = {
grub = { # grub = {
enable = true; # enable = true;
device = "/dev/sda"; # device = "/dev/sda";
efiSupport = false; # efiSupport = false;
}; # };
}; # };
}; # };
} }

View file

@ -1,30 +1,20 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops ../templates/server.nix
./hardware-configuration.nix ./hardware-configuration.nix
./network.nix
../server
# ../server/searxng.nix
]; ];
networking.hostName = "w1"; networking.hostName = "w1";
boot = { # boot = {
initrd = { # initrd = {
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; # availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
kernelModules = ["nvme"]; # kernelModules = ["nvme"];
}; # };
loader = { # loader = {
grub = { # grub = {
enable = true; # enable = true;
device = "/dev/sda"; # device = "/dev/sda";
efiSupport = false; # efiSupport = false;
}; # };
}; # };
}; # };
} }

View file

@ -1,11 +1,8 @@
{ { inputs, outputs, lib, config, pkgs, ... }: {
inputs, imports = [
outputs, ../templates/server.nix
lib, ./hardware-configuration.nix
config, ];
pkgs,
...
}: {
imports = [inputs.sops-nix.nixosModules.sops ./hardware-configuration.nix ../server];
networking.hostName = "www2"; networking.hostName = "www2";
} }