swaybg systemd service

This commit is contained in:
Tristan 2023-05-11 11:55:57 +01:00
parent 3ffd1c7822
commit a5f9c29669
6 changed files with 64 additions and 10 deletions

22
hardware/displays.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, ... }:
{
displays = {
enable = true;
displays = [
{
name = "DP-1";
description = "HP Inc. HP 24x 1CR9500W9Q";
resolution = { x = 1920; y = 1080; freq = 144; };
position = "0x0";
}
{
name = "eDP-1";
description = "BOE 0x07D8";
scaling = 1.2;
position = "0x1080";
wallpaper = "/home/tristan/Pictures/backgrounds/nix-wallpaper-watersplash.png";
}
];
};
}

View file

@ -7,6 +7,7 @@
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
./displays.nix
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];