feat: add p330 config

This commit is contained in:
Michael Mandl 2022-07-07 15:33:38 +02:00
parent e7711fe634
commit 0efab4c6bd
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
10 changed files with 146 additions and 12 deletions

View file

@ -0,0 +1,27 @@
{ config, pkgs, ... }:
{
networking.hostName = "p330";
boot.loader.grub.enableCryptodisk = true;
services.xserver = {
videoDrivers = [ "intel" ];
dpi = 144;
xrandrHeads = [
{
output = "DP2";
primary = true;
monitorConfig = ''
Option "Position" "0 790"
'';
}
{
output = "DP3";
monitorConfig = ''
Option "Position" "3840 0"
Option "Rotate" "right"
'';
}
];
};
}

View file

@ -0,0 +1,48 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices = {
crypted = {
device = "/dev/disk/by-uuid/c24c9fba-fa0b-41a2-87c1-75edc7b3f64d";
preLVM = true;
};
};
fileSystems."/" =
{
device = "/dev/disk/by-uuid/9c6e1dc3-a442-431d-8cf4-6eaf1e45c296";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/3B69-8F97";
fsType = "vfat";
};
fileSystems."/home" =
{
device = "/dev/disk/by-uuid/6a44edab-e602-40e9-85c4-cb8517862992";
fsType = "ext4";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/b90199d6-05e8-4994-bf9d-7b07f10d583e"; }];
networking.interfaces.eno1.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
}

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, user, ... }:
{
xsession.windowManager.i3.config = {
workspaceOutputAssign = [
{ workspace = "1"; output = "DP3"; }
{ workspace = "2"; output = "DP2"; }
{ workspace = "3"; output = "DP3"; }
{ workspace = "4"; output = "DP2"; }
{ workspace = "5"; output = "DP3"; }
{ workspace = "6"; output = "DP2"; }
{ workspace = "7"; output = "DP3"; }
{ workspace = "8"; output = "DP2"; }
{ workspace = "9"; output = "DP3"; }
{ workspace = "10"; output = "DP2"; }
];
};
programs.kitty.font.size = 16;
}