feat(attic): update storage config and refine system settings
- Switch disk device from `/dev/vda` to `/dev/sda` for compatibility. - Add S3 storage configuration with bucket, region, and endpoint. - Update system state version from `24.05` to `25.11`. - Remove unused imports and clean up redundant attributes.
This commit is contained in:
parent
04ebe32c3c
commit
8c1eadf474
4 changed files with 10 additions and 6 deletions
|
|
@ -31,6 +31,13 @@
|
||||||
|
|
||||||
listen = "[::]:8080";
|
listen = "[::]:8080";
|
||||||
|
|
||||||
|
storage = {
|
||||||
|
type = "s3";
|
||||||
|
bucket = "attic";
|
||||||
|
region = "hel1";
|
||||||
|
endpoint = "https://hel1.your-objectstorage.com";
|
||||||
|
};
|
||||||
|
|
||||||
# Data chunking
|
# Data chunking
|
||||||
#
|
#
|
||||||
# Warning: If you change any of the values here, it will be
|
# Warning: If you change any of the values here, it will be
|
||||||
|
|
@ -1,9 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
|
||||||
with lib.metacfg;
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
@ -29,11 +26,11 @@ with lib.metacfg;
|
||||||
security.tpm2.enable = false;
|
security.tpm2.enable = false;
|
||||||
security.tpm2.abrmd.enable = false;
|
security.tpm2.abrmd.enable = false;
|
||||||
|
|
||||||
networking.wireless.enable = false; # Enables wireless support via wpa_supplicant.
|
networking.wireless.enable = false;
|
||||||
networking.firewall.allowedTCPPorts = [ 8080 ];
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||||
networking.firewall.allowPing = true;
|
networking.firewall.allowPing = true;
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "ondemand";
|
powerManagement.cpuFreqGovernor = "ondemand";
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
./disko.nix
|
./disko.nix
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
disko.devices.disk.main.device = "/dev/vda";
|
disko.devices.disk.main.device = "/dev/sda";
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"ahci"
|
"ahci"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue