feat: Convert to a multi-host flake
This commit is contained in:
parent
c20fd46f9f
commit
b717ea973a
14 changed files with 416 additions and 27 deletions
24
hosts/anvil/default.nix
Normal file
24
hosts/anvil/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
# ./nginx.nix # TODO
|
||||
];
|
||||
|
||||
networking.hostName = "anvil";
|
||||
system.stateVersion = "24.11";
|
||||
networking.firewall.allowedTCPPorts = [ 8384 ];
|
||||
services.pulseaudio.enable = false;
|
||||
|
||||
boot.initrd.luks.devices."luks-1f261d60-dfb4-4f63-9c77-f331a007108b".device = "/dev/disk/by-uuid/1f261d60-dfb4-4f63-9c77-f331a007108b";
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
20
hosts/anvil/hardware-configuration.nix
Normal file
20
hosts/anvil/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# TODO: Replace with actual hardware-configuration.nix from anvil machine
|
||||
# Run on anvil: nixos-generate-config --show-hardware-config
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
# Placeholder filesystem - replace with actual values from anvil
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/PLACEHOLDER";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/PLACEHOLDER";
|
||||
fsType = "vfat";
|
||||
};
|
||||
}
|
||||
5
hosts/anvil/nginx.nix
Normal file
5
hosts/anvil/nginx.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# TODO: Configure anvil's nginx
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue