summaryrefslogtreecommitdiff
path: root/hosts/yashinoki
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/yashinoki')
-rw-r--r--hosts/yashinoki/configuration.nix24
-rw-r--r--hosts/yashinoki/programs.nix4
2 files changed, 18 insertions, 10 deletions
diff --git a/hosts/yashinoki/configuration.nix b/hosts/yashinoki/configuration.nix
index 09656b2..2917994 100644
--- a/hosts/yashinoki/configuration.nix
+++ b/hosts/yashinoki/configuration.nix
@@ -47,7 +47,7 @@ in {
padding = { top = -2; left = -6; text = 0; };
position = "left";
footer = "";
- footer_offset = 0;
+ footer-offset = 0;
};
monitors = {
monitor1 = "eDP-1";
@@ -63,16 +63,19 @@ in {
boot.binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
- boot.supportedFilesystems = [ ];
boot.loader.systemd-boot.enable = true;
- boot.kernelParams = [ "mitigations=off" "file_caps=1" ];
- #boot.extraModulePackages = [
- # config.boot.kernelPackages.v4l2loopback.out
- #];
- #boot.kernelModules = [ "v4l2loopback" ];
- boot.initrd.kernelModules = [ ];
+ boot.kernelParams = [ "mitigations=off" "file_caps=1" "i915.enable_guc=2" ];
services.fwupd.enable = true;
+ virtualisation.kvmgt = {
+ enable = true;
+ vgpus = {
+ "i915-GVTg_V5_4" = {
+ uuid = [ "2efaf13a-e65a-11ef-84b4-235363f4a8d4" ];
+ };
+ };
+ };
+
security.wrappers = {
"mount.nfs" = {
owner = "root";
@@ -142,7 +145,7 @@ in {
linuxPackages_latest.perf
linuxPackages_latest.cpupower
(pkgs.writeShellScriptBin "run-sway" ''
- export WLR_RENDERER=vulkan
+ export WLR_RENDERER=gles2
export WLR_DRM_DEVICES=/dev/dri/card1
cd $HOME
exec ${pkgs.sway}/bin/sway
@@ -165,7 +168,8 @@ in {
"${s.monitors.monitor1}" = {
mode = "3000x2000@59.999Hz";
render_bit_depth = "10";
- adaptive_sync = "on";
+ max_render_time = "off";
+ allow_tearing = "yes";
scale = "2";
bg = "${../../themes/year_of_snake/wallpaper.png} fit";
};
diff --git a/hosts/yashinoki/programs.nix b/hosts/yashinoki/programs.nix
index 30136ef..19742cd 100644
--- a/hosts/yashinoki/programs.nix
+++ b/hosts/yashinoki/programs.nix
@@ -9,4 +9,8 @@
mpv
camu
];
+ local.scripts.imports = [
+ "battery"
+ "discord-wayland"
+ ];
}