mirror of
https://github.com/henrysipp/omarchy-nix.git
synced 2026-06-05 18:29:26 -05:00
Update config
This commit is contained in:
+4
-5
@@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ in {
|
|||||||
selected_wallpaper_path
|
selected_wallpaper_path
|
||||||
];
|
];
|
||||||
wallpaper = [
|
wallpaper = [
|
||||||
"eDP-1,${selected_wallpaper_path}"
|
",${selected_wallpaper_path}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user