This commit is contained in:
HotaruBlaze
2026-05-31 10:44:55 +00:00
parent 4521968b3f
commit 7deac83d33
6 changed files with 29 additions and 37 deletions

View File

@@ -7,11 +7,8 @@
... ...
}: }:
{ {
imports = [
../../common/incus.nix
];
deployment = { deployment = {
targetHost = "192.168.1.69"; targetHost = "192.168.1.70";
targetPort = 22; targetPort = 22;
targetUser = "phoenix"; targetUser = "phoenix";
buildOnTarget = true; buildOnTarget = true;
@@ -24,7 +21,9 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/common.nix ../../modules/common.nix
../../modules/common/incus.nix
./networking.nix ./networking.nix
./users.nix ./users.nix
./power-plan.nix
]; ];
} }

View File

@@ -0,0 +1,22 @@
{
name,
nodes,
pkgs,
lib,
inputs,
...
}:
{
services.power-profiles-daemon.enable = true;
powerManagement.powertop.enable = true;
# boot.kernelParams = [
# "pcie_aspm=force"
# ];
environment.systemPackages = with pkgs; [
powertop
turbostat
];
}

View File

@@ -7,6 +7,5 @@
./common/services.nix ./common/services.nix
./common/networking.nix ./common/networking.nix
./common/system.nix ./common/system.nix
./common/persisting.nix
]; ];
} }

View File

@@ -74,4 +74,7 @@
}; };
}; };
}; };
networking.nftables.enable = true;
users.users.phoenix.extraGroups = ["incus-admin"];
networking.firewall.trustedInterfaces = [ "incusbr*" "internalbr0" ];
} }

View File

@@ -1,31 +0,0 @@
{ config, lib, pkgs, ... }:
{
persisting = {
enable = true;
# Default directories to persist
directories = [
{
path = "/persist";
target = "/persist";
options = [ "defaults" "bind" ];
}
{
path = "/var/log";
target = "/var/log";
options = [ "defaults" "bind" ];
}
{
path = "/var/lib";
target = "/var/lib";
options = [ "defaults" "bind" ];
}
];
};
# Ensure persist directory exists
systemd.tmpfiles.rules = [
"d /persist 0755 root root - -"
];
}

View File

@@ -21,7 +21,7 @@
security.sudo.extraRules = [ security.sudo.extraRules = [
{ {
users = [ "phoenix" ]; users = [ "phoenix" "deploy" ];
commands = [ commands = [
{ {
command = "ALL"; command = "ALL";