feat: add xps config

This commit is contained in:
Michael Mandl 2024-01-12 23:31:01 +01:00
parent 6d6cbf767f
commit 9f102bdc9e
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
5 changed files with 140 additions and 10 deletions

View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
networking.hostName = "xps";
boot.loader.grub.enableCryptodisk = true;
}

View file

@ -0,0 +1,66 @@
# 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, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices = {
nixos = {
device = "/dev/disk/by-uuid/1d5f812e-300f-4858-a136-3dc85ac0e0c4";
preLVM = true;
};
};
fileSystems."/" =
{
device = "/dev/disk/by-uuid/058b1bb0-c825-48e6-b951-9b93b6035ca9";
fsType = "ext4";
};
fileSystems."/home" =
{
device = "/dev/disk/by-uuid/cd7339d9-c5fb-47ff-bff0-38cd1f725241";
fsType = "ext4";
};
fileSystems."/var/lib/docker" =
{
device = "/dev/disk/by-uuid/b8c81698-4410-4b16-9293-f076772ce4f9";
fsType = "ext4";
};
fileSystems."/nix" =
{
device = "/dev/disk/by-uuid/ba748b3f-178c-4e3c-9314-66cd5d070e1c";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/EE44-9788";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/028125a3-2772-4aad-b901-d08783b85f83"; }];
# 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.enp0s13f0u1u4u4.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, user, ... }:
{
wayland.windowManager.sway.config = {
output = {
eDP-1 = {
scale = "1.3";
};
};
};
}