From fb98f0e01a17d6169e583718be6fb6b13762b89e Mon Sep 17 00:00:00 2001 From: JakeGinesin Date: Fri, 31 Oct 2025 18:53:07 -0400 Subject: [PATCH] add store --- flake.nix | 2 +- hosts/store/configuration.nix | 37 +++++++++++++++++++++++++ hosts/store/hardware-configuration.nix | 36 ++++++++++++++++++++++++ secrets/tailscale-rq.age | Bin 275 -> 275 bytes 4 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 hosts/store/configuration.nix create mode 100644 hosts/store/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index d5d4fd3..2372f80 100644 --- a/flake.nix +++ b/flake.nix @@ -36,7 +36,7 @@ system = "x86_64-linux"; # hostnames - hosts = ["thonkpad" "rq" "yoga" "server1" "server2" "server3"]; + hosts = ["thonkpad" "rq" "yoga" "server1" "server2" "server3" "store"]; baseModule = {lib, ...}: { imports = [ diff --git a/hosts/store/configuration.nix b/hosts/store/configuration.nix new file mode 100644 index 0000000..d1226da --- /dev/null +++ b/hosts/store/configuration.nix @@ -0,0 +1,37 @@ +{ + config, + pkgs, + lib, + ... +}: { + imports = [ + ./hardware-configuration.nix + ../../system/system-server.nix + ../meta.nix + ../../extras/ssh.nix + ../../extras/k3s-node.nix + ]; + + config = { + networking.hostName = "store"; # Define your hostname. + res = "1920x1080"; + + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + backupFileExtension = "backup"; + users.synchronous.imports = [../../home/home.nix]; + }; + + # Bootloader. + #boot.loader.grub.enable = true; + boot.loader.grub.device = "/dev/sda"; + boot.loader.grub.useOSProber = true; + boot.loader.grub.version = 2; + # services.logind.lidSwitchExternalPower = "ignore"; + + boot.loader.systemd-boot.enable = false; + boot.loader.efi.canTouchEfiVariables = true; + boot.loader.grub.enable = true; + }; +} diff --git a/hosts/store/hardware-configuration.nix b/hosts/store/hardware-configuration.nix new file mode 100644 index 0000000..a829d33 --- /dev/null +++ b/hosts/store/hardware-configuration.nix @@ -0,0 +1,36 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/bb36a123-4dc9-4583-8571-1aa180efb00b"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/78565ab8-d7b8-476d-a6e7-46ceda4ee761"; } + { device = "/dev/disk/by-uuid/c735b357-c35c-4249-bb0b-23321fe50c3d"; } + ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.eno1.useDHCP = lib.mkDefault true; + # networking.interfaces.eno2.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/secrets/tailscale-rq.age b/secrets/tailscale-rq.age index b97303cfa62c4bf4ceea5146ef02cb07e1e99faa..3d1f46499c2f051ff5cf71320dab2ddc0a92c8a1 100644 GIT binary patch delta 239 zcmVMaYFBqFQEEz9OHoZmLRU|ENO@#KZ*fsbI0`K- zEg)!5RZ@6FLN{0|T2C}lM{`d{FhomadM{~uPE|2lO>0+3HfV8lZfHhjQc()V&{vGr zJ4+P?pS)Gvuz>Kq%_1R)b;-gcQq#J=2t4X;g2hutOMxEzF;}-$K>!^V7{7wC?C+v< pukX%K@XQf_SzExwDCJTn!N%P9G{DI3JOR{M2Xd#+YAq1mEb<8mU%&tW delta 239 zcmVmXLwaXzOGPAUFbXndLq>CVW=M8RdT&Q}HduIJFKTIV)>HPBB7yXgG9HSqd#J zEg)k;VL>=oQ#N*PYiV_1ZFy5vMKd-;aac8BPg+KBc4#YEY-n0&IW}1^cr*&vGmOp? zpgE9ny&lYT_J5>0N3B0-!5xUDC1wtqN+RE6Ta^F+