From 05fba25e608d3d44e0785f1ddb5ab30a95129131 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 14 Dec 2025 13:08:07 -0800 Subject: simplify path structures for machines --- machines/bree.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 machines/bree.nix (limited to 'machines/bree.nix') diff --git a/machines/bree.nix b/machines/bree.nix new file mode 100644 index 0000000..e4cd443 --- /dev/null +++ b/machines/bree.nix @@ -0,0 +1,37 @@ +{ lib, config, ... }: +{ + imports = [ + ../profiles/cgroups.nix + ../profiles/defaults.nix + ../profiles/disk/basic-vm.nix + ../profiles/hardware/synology-vm.nix + ../profiles/home-manager.nix + ../profiles/server.nix + ../profiles/users/fcuny.nix + ../profiles/wireguard.nix + ]; + + networking.hostName = "bree"; + networking.useDHCP = lib.mkDefault true; + systemd.network.wait-online.anyInterface = lib.mkDefault config.networking.useDHCP; + + age.secrets.disk-unlock-key.file = ../secrets/bree/disk-unlock-key.age; + age.secrets.disk-passphrase.file = ../secrets/bree/disk-passphrase.age; + + services.remoteDiskUnlock = { + enable = true; + hosts = [ + "192.168.1.114" + ]; + sshKeyPath = config.age.secrets.disk-unlock-key.path; + passphrasePath = config.age.secrets.disk-passphrase.path; + }; + + system.stateVersion = "23.11"; # Did you read the comment? + + home-manager.users.fcuny = { + imports = [ + ../home/profiles/minimal.nix + ]; + }; +} -- cgit v1.2.3