2021-11-06 14:18:27 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/d06b511d-1970-421d-b006-231a7af91942";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/DFCE-FE5C";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
swapDevices = [ ]; # TODO
|
|
|
|
boot = {
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
|
|
|
kernelModules = [ "dm-snapshot" ];
|
|
|
|
luks.devices = {
|
|
|
|
cryptroot = {
|
|
|
|
device = "/dev/disk/by-uuid/e1011c40-e1a9-4ce6-b89f-f14b046639c1";
|
|
|
|
preLVM = false; # NOTE: Since this LUKS device is within an LVM group
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
extraModulePackages = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
ptw = {
|
|
|
|
programs = {
|
|
|
|
alacritty.enable = true;
|
|
|
|
sway.enable = true;
|
|
|
|
emacs.enable = true;
|
|
|
|
firefox.enable = true;
|
|
|
|
tmux.enable = true;
|
|
|
|
waybar = {
|
|
|
|
enable = true;
|
|
|
|
output = "eDP-1";
|
|
|
|
};
|
|
|
|
zsh.enable = true;
|
2021-11-06 20:33:24 +00:00
|
|
|
git.enable = true;
|
2021-11-06 14:18:27 +00:00
|
|
|
};
|
|
|
|
services = {
|
|
|
|
kanshi = let
|
2021-11-06 20:33:05 +00:00
|
|
|
horizontal = "Samsung Electric Company C27F398 H4ZR101145";
|
|
|
|
|
2021-11-06 14:18:27 +00:00
|
|
|
helpers = import ../lib/helpers/kanshi.nix;
|
|
|
|
mkProfile = helpers.mkProfile;
|
|
|
|
wallpaperScript = helpers.mkWallpaperScript {
|
|
|
|
inherit pkgs config;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
profiles = {
|
2021-11-06 20:33:05 +00:00
|
|
|
laptop = mkProfile {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "enable";
|
|
|
|
mode = "1920x1080";
|
|
|
|
position = "0,0";
|
|
|
|
}
|
|
|
|
];
|
2021-11-07 12:58:22 +00:00
|
|
|
|
2021-11-06 20:33:05 +00:00
|
|
|
name = "laptop";
|
|
|
|
script = wallpaperScript;
|
|
|
|
};
|
2021-11-07 12:58:22 +00:00
|
|
|
laptopMultihead = mkProfile {
|
2021-11-06 14:18:27 +00:00
|
|
|
outputs = [
|
2021-11-06 20:33:05 +00:00
|
|
|
{
|
2021-11-07 12:58:22 +00:00
|
|
|
criteria = "HDMI-A-1";
|
2021-11-06 20:33:05 +00:00
|
|
|
status = "enable";
|
|
|
|
mode = "1920x1080";
|
2021-11-06 20:33:24 +00:00
|
|
|
position = "-1920,0";
|
2021-11-06 20:33:05 +00:00
|
|
|
}
|
2021-11-06 14:18:27 +00:00
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "enable";
|
|
|
|
mode = "1920x1080";
|
|
|
|
position = "0,0";
|
|
|
|
}
|
|
|
|
];
|
2021-11-06 20:33:05 +00:00
|
|
|
|
2021-11-07 12:58:22 +00:00
|
|
|
name = "laptopMultihead";
|
2021-11-06 14:18:27 +00:00
|
|
|
script = wallpaperScript;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
swaync.enable = true;
|
|
|
|
};
|
|
|
|
system = {
|
|
|
|
i18n.enable = true;
|
|
|
|
singleUser = "alexander";
|
|
|
|
hostName = "nishimiya";
|
|
|
|
wireless = true;
|
|
|
|
primaryInterface = "wlp5s0";
|
|
|
|
};
|
|
|
|
virtualisation.enable = true;
|
|
|
|
hardware = {
|
|
|
|
intel.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "de";
|
|
|
|
libinput.enable = true;
|
|
|
|
displayManager.gdm = {
|
|
|
|
enable = true;
|
|
|
|
wayland = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-11-07 12:58:22 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
ansible
|
|
|
|
];
|
|
|
|
|
2021-11-06 14:18:27 +00:00
|
|
|
programs = {
|
|
|
|
gnupg.agent.pinentryFlavor = "qt";
|
|
|
|
};
|
|
|
|
}
|