mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-02-23 08:27:10 +01:00
add forgejo-runner-1
This commit is contained in:
parent
85b4ea5880
commit
5250e8552e
28
hosts/forgejo-runner-1/default.nix
Normal file
28
hosts/forgejo-runner-1/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ nixpkgs, common-modules, ... }:
|
||||||
|
nixpkgs.lib.nixosSystem {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
modules = common-modules ++ [
|
||||||
|
./hardware.nix
|
||||||
|
../../users/vinzenz.nix
|
||||||
|
{ networking.hostName = "forgejo-runner-1"; }
|
||||||
|
{
|
||||||
|
# uncomment for build check on non arm system (requires --impure)
|
||||||
|
# nixpkgs.buildPlatform = builtins.currentSystem;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
services.tailscale.useRoutingFeatures = "both";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
users.users = {
|
||||||
|
root.openssh.authorizedKeys.keys = [
|
||||||
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFCJUpbpB3KEKVoKWsKoar9J4RNah8gmQoSH6jQEw5dY vinzenz-pixel-JuiceSSH''
|
||||||
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO1CRn4yYTL4XUdCebE8Z4ZeuMujBjorTdWifg911EOv vinzenz-pc2 home roaming''
|
||||||
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPDNpLDmctyqGpow/ElQvdhY4BLBPS/sigDJ1QEcC7wC vinzenz-lpt2-roaming''
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
system.autoUpgrade.allowReboot = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
63
hosts/forgejo-runner-1/hardware.nix
Normal file
63
hosts/forgejo-runner-1/hardware.nix
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
{ lib, modulesPath, ... }:
|
||||||
|
{
|
||||||
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
nixpkgs = {
|
||||||
|
hostPlatform = "aarch64-linux";
|
||||||
|
system = "aarch64-linux";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
tmp.cleanOnBoot = true;
|
||||||
|
kernelParams = [ "console=tty" ];
|
||||||
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
initrd = {
|
||||||
|
availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"virtio_scsi"
|
||||||
|
"sr_mod"
|
||||||
|
"virtio_gpu"
|
||||||
|
];
|
||||||
|
kernelModules = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# fileSystems = {
|
||||||
|
# "/" = {
|
||||||
|
# device = "/dev/disk/by-uuid/3263489d-9819-433c-b198-9d2e732a94e4";
|
||||||
|
# fsType = "ext4";
|
||||||
|
# };
|
||||||
|
# "/boot" = {
|
||||||
|
# device = "/dev/disk/by-uuid/6C25-6BDC";
|
||||||
|
# fsType = "vfat";
|
||||||
|
# options = [
|
||||||
|
# "fmask=0077"
|
||||||
|
# "dmask=0077"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# swapDevices = [
|
||||||
|
# { device = "/dev/disk/by-uuid/e147721d-86b5-40d7-a231-c6ea391c563d"; }
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# networking.useNetworkd = true;
|
||||||
|
# systemd.network = {
|
||||||
|
# enable = true;
|
||||||
|
# networks."10-wan" = {
|
||||||
|
# matchConfig.Name = "enp1s0";
|
||||||
|
# networkConfig.DHCP = "ipv4";
|
||||||
|
# address = [
|
||||||
|
# "2a01:4f8:c013:65dd::1/64"
|
||||||
|
# ];
|
||||||
|
# routes = [
|
||||||
|
# { Gateway = "fe80::1"; }
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue