Update config

This commit is contained in:
Henry Sipp
2025-07-04 12:55:59 -05:00
parent eed4800ffb
commit db70900337
5 changed files with 21 additions and 9 deletions
+4 -5
View File
@@ -1,10 +1,5 @@
lib: { lib: {
omarchyOptions = { omarchyOptions = {
hostname = lib.mkOption {
type = lib.types.str;
default = "omarchy";
description = "Hostname for the system";
};
full_name = lib.mkOption { full_name = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = "Main user's full name"; description = "Main user's full name";
@@ -34,6 +29,10 @@ lib: {
type = lib.types.attrs; type = lib.types.attrs;
default = {}; default = {};
}; };
monitors = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [];
};
quick_app_bindings = lib.mkOption { quick_app_bindings = lib.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
description = "A list of single keystroke key bindings to launch common apps."; description = "A list of single keystroke key bindings to launch common apps.";
@@ -33,5 +33,7 @@ in {
# "LIBVA_DRIVER_NAME,nvidia" # "LIBVA_DRIVER_NAME,nvidia"
# "__GLX_VENDOR_LIBRARY_NAME,nvidia" # "__GLX_VENDOR_LIBRARY_NAME,nvidia"
]; ];
monitor = cfg.monitors;
}; };
} }
+14 -2
View File
@@ -1,11 +1,23 @@
{ {
config, config,
lib,
pkgs, pkgs,
osConfig ? {},
... ...
}: { }:
let
hasNvidiaDrivers = builtins.elem "nvidia" osConfig.services.xserver.videoDrivers;
nvidiaEnv = [
"NVD_BACKEND,direct"
"LIBVA_DRIVER_NAME,nvidia"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
];
in
{
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
# Environment variables # Environment variables
env = [ env = (lib.optionals hasNvidiaDrivers nvidiaEnv) ++ [
"GDK_SCALE,2" # Change to 1 if on a 1x display "GDK_SCALE,2" # Change to 1 if on a 1x display
# Uncomment if running NVIDIA GPU: # Uncomment if running NVIDIA GPU:
# "NVD_BACKEND,direct" # "NVD_BACKEND,direct"
+1 -1
View File
@@ -41,7 +41,7 @@ in {
selected_wallpaper_path selected_wallpaper_path
]; ];
wallpaper = [ wallpaper = [
"eDP-1,${selected_wallpaper_path}" ",${selected_wallpaper_path}"
]; ];
}; };
}; };
-1
View File
@@ -29,7 +29,6 @@ in {
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
services.blueman.enable = true; services.blueman.enable = true;
networking = { networking = {
hostName = cfg.hostname;
networkmanager.enable = true; networkmanager.enable = true;
}; };