desktop-2024-11-21-18-15-49

This commit is contained in:
Alexander Szczepanski
2024-11-21 18:15:49 +01:00
parent 47b39d47b6
commit 4ce1b07a81
3 changed files with 40 additions and 39 deletions

View File

@ -89,10 +89,26 @@ in {
tmp.useTmpfs = false;
supportedFilesystems = ["btrfs"];
kernelPackages = pkgs.linuxPackages_cachyos;
kernelParams = ["clearcpuid=514"];
kernelParams = ["clearcpuid=514" "ip=dhcp"];
kernelModules = ["nct6775"];
extraModulePackages = with pkgs.linuxPackages_cachyos; [ryzen-smu];
initrd = {
availableKernelModules = ["r8169"];
systemd.users.root.shell = "/bin/cryptsetup-askpass";
network = {
enable = true;
ssh = {
enable = true;
port = 22;
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOYEaT0gH9yJM2Al0B+VGXdZB/b2qjZK7n01Weq0TcmQ alex@framework"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN99h5reZdz9+DOyTRh8bPYWO+Dtv7TbkLbMdvi+Beio alex@desktop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIkURF5v9vRyEPhsK80kUgYh1vsS0APL4XyH4F3Fpyic alex@macbook"
];
hostKeys = ["/persist/pre_boot_ssh_host_rsa_key"];
};
};
luks.devices = {
root = {
device = "/dev/disk/by-uuid/cc43f1eb-49c3-41a6-9279-6766de3659e7";
@ -305,6 +321,5 @@ in {
};
};
system.stateVersion = "24.11";
}

View File

@ -1,6 +1,3 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
@ -12,11 +9,6 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "uas" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = ["dm-snapshot"];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/87c6b0fb-b921-47d5-a3a1-4b4c0a4f02ad";