feat: edit host settings for desktop

This commit is contained in:
leonhard committed 2026-11-22 15:04:23 +01:00
1 parent 5b75d9194f
commit 216f2cca81
3 files changed
+17 -32

No files matched your search

-18
View File
@@ -6,24 +6,6 @@
nix-leonhard.graphical.enable = true;
nix-leonhard.neovim.enable = true;
# Enable CUPS to print documents.
#services.printing.enable = true;
# Enable firmware
#hardware.enableAllFirmware = true;
# Enable bluetooth
#hardware.bluetooth.enable = true;
# Enable sound with pipewire.
# security.rtkit.enable = true;
# services.pipewire = {
# enable = true;
# alsa.enable = true;
# alsa.support32Bit = true;
# pulse.enable = true;
# };
users.users = {
leonhard = {
initialPassword = "leonhard";
+13 -14
View File
@@ -1,17 +1,25 @@
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ ];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
@@ -28,17 +36,8 @@
];
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eth0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.hypervGuest.enable = true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}