chore: use meta module

This commit is contained in:
Luj 2024-08-10 17:56:30 +02:00
parent b6480b72ec
commit c451c08f94
Signed by: luj
GPG key ID: 6FC74C847011FD83
11 changed files with 171 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
{
imports = [
@ -7,6 +7,22 @@
./forgejo-runner.nix
];
machine.meta = {
arch = "x86_64-linux";
nixpkgs_version = inputs.nixpkgs;
hm_version = inputs.home-manager;
ipv4 = {
public = "82.67.34.230";
local = "192.168.0.103";
vpn = "100.100.45.9";
};
ipv6 = {
public = "2a01:e0a:de4:a0e1:8ec7:b5d2:f663:a67a";
vpn = "fd7a:115c:a1e0::9";
};
};
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;