You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{system,pkgs,flake, ... }:
letinherit(flake.inputs.everyday.nixosModules)loggerhost-keys;inherit(flake.inputs.disko.nixosModules)disko;inherit(flake.outputs.lib)mkSystemsecrets;agenix=flake.inputs.agenix.nixosModules.default;nix-serve=flake.inputs.nix-serve-ng.nixosModules.default;domain="cache.64-b.it";home="/home/klarkc";authorizedKeys.keys=[(builtins.readFile../../secrets/klarkc.pub)];cache-module={disks ? ["/dev/vda"],config, ... }:
{imports=[nix-serveagenixdisko];# cd secrets# nix-store --generate-binary-cache-key cache.64-b.it ./cache ./cache.skey# cat cache | nix run github:ryantm/agenix -- -e cache.age -i ~/.ssh/id_ed25519# cp ~/.ssh/id_ed25519.pub klarkc.pubage.secrets.cache.file="${secrets}/cache.age";system.stateVersion=config.system.nixos.version;boot.loader.systemd-boot.enable=true;# nix-serveservices.nix-serve={enable=true;secretKeyFile=config.age.secrets.cache.path;};networking.firewall.enable=false;# SSHservices.sshd.enable=true;users.users.root.openssh={inheritauthorizedKeys;};# Web serverservices.nginx.virtualHosts.${domain}={forceSSL=true;enableACME=true;locations."/".extraConfig='' proxy_pass http://localhost:${config.services.nix-serve.port}; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; '';};# beesdservices.beesd.filesystems={root={spec="/";hashTableSizeMB=256;extraOptions=["--loadavg-target""2"];};};# diskodisko.devices={disk={vdb={type="disk";device=builtins.elemAtdisks0;content={type="gpt";partitions={ESP={priority=1;name="ESP";start="1M";end="128M";type="EF00";content={type="filesystem";format="vfat";mountpoint="/boot";};};root={size="100%";content={type="btrfs";extraArgs=["--label""root""-f"# Override existing partition];# Subvolumes must set a mountpoint in order to be mounted,# unless their parent is mountedsubvolumes={# Subvolume name is different from mountpoint"/rootfs"={mountpoint="/";};# Parent is not mounted so the mountpoint must be set"/nix"={mountOptions=["compress=zstd""noatime"];mountpoint="/nix";};# Subvolume for the swapfile"/swap"={mountpoint="/.swapvol";swap.swapfile.size="1024M";};};mountpoint="/partition-root";};};};};};};};};inrec{modules={inheritcache-module;};packages.cache-vm=mkSystem{modules=withmodules;[cache-module({config, ... }:
letinherit(config.services.nix-serve)port;in{imports=[logger# TODO: modulesPath should be available# (modulesPath + "/profiles/qemu-guest.nix")host-keys];host-keys.source="${home}/.ssh";virtualisation.forwardPorts=[{from="host";host.port=2222;guest.port=22;}{from="host";host.port=port;guest.port=port;}];})];format="vm-nogui";};machines.cache-vultr=mkSystem{modules=withmodules;[cache-module({modulesPath,lib, ... }: {_module.args.disks=["/dev/vda"];imports=[(modulesPath+"/profiles/qemu-guest.nix")(modulesPath+"/installer/scan/not-detected.nix")];networking.hostName="cache-vultr";boot={loader.efi.canTouchEfiVariables=true;initrd.availableKernelModules=["ahci""xhci_pci""virtio_pci""sr_mod""virtio_blk"];};environment.systemPackages=maplib.lowPrio[pkgs.curlpkgs.gitMinimal];})];};}
The text was updated successfully, but these errors were encountered:
(modulesPath + "/profiles/qemu-guest.nix")
os/setups/cache/default.nix
Line 124 in 9a645b1
The text was updated successfully, but these errors were encountered: