1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-01-09 00:15:30 +01:00
parent f44a65d108
commit e0f1f5b6fb
No known key found for this signature in database
49 changed files with 10 additions and 2 deletions

View file

@ -0,0 +1,26 @@
{
inputs,
modulesPath,
...
}: {
imports = [
"${modulesPath}/installer/scan/not-detected.nix"
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-gpu-amd
inputs.hardware.nixosModules.common-pc-ssd
];
nixpkgs.hostPlatform = "x86_64-linux";
boot = {
initrd = {
availableKernelModules = ["nvme" "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod"];
kernelModules = ["amdgpu"];
};
kernelModules = ["kvm-amd"];
binfmt.emulatedSystems = ["aarch64-linux"];
};
powerManagement.cpuFreqGovernor = "performance";
}

View file

@ -0,0 +1,3 @@
{
system.stateVersion = "24.11";
}

View file

@ -0,0 +1,15 @@
{
config,
lib,
...
}: {
age.secrets = lib.mkSecrets {"user-guest" = {};};
users.users.guest = {
description = "Guest";
uid = 1001;
isNormalUser = true;
hashedPasswordFile = config.age.secrets."user-guest".path;
openssh.authorizedKeys.keys = builtins.attrValues config.pubkeys.users;
};
}