unliterated my config
This commit is contained in:
parent
02f76a734e
commit
1f978da586
3 changed files with 566 additions and 2495 deletions
23
hosts/phostron/configuration.nix
Normal file
23
hosts/phostron/configuration.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
system.stateVersion = "26.05"; # I didn't read the comment.
|
||||
|
||||
networking.hostName = "phostron";
|
||||
networking.networkmanager.enable = true;
|
||||
networking.firewall.enable = true;
|
||||
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = [pkgs.epson-escpr];
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.extraBackends = [pkgs.epsonscan2];
|
||||
|
||||
# SDDM look, specific to this machine
|
||||
services.displayManager.sddm.settings.Theme.Font = "Inter";
|
||||
services.displayManager.sddm.settings.Theme.CursorSize = 18;
|
||||
}
|
||||
8
hosts/phostron/default.nix
Normal file
8
hosts/phostron/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
../../modules/common.nix
|
||||
../../modules/desktop/kde-plasma.nix
|
||||
./hardware-configuration.nix
|
||||
./configuration.nix
|
||||
];
|
||||
}
|
||||
30
hosts/phostron/hardware-configuration.nix
Normal file
30
hosts/phostron/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||
|
||||
boot.initrd.availableKernelModules = ["nvme" "ehci_pci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = ["kvm-amd"];
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/24fb172c-c29f-40c3-ae4d-ff652358563a";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/DFC9-994A";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0077" "dmask=0077"];
|
||||
};
|
||||
|
||||
swapDevices = [{device = "/dev/disk/by-uuid/91d96247-85c3-4e0a-93a2-5632b96179b6";}];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Reference in a new issue