tootpc and toothpick nvidia changes and switching to zen
This commit is contained in:
@@ -26,7 +26,8 @@
|
|||||||
};
|
};
|
||||||
nvidia = {
|
nvidia = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = "latest";
|
open = false;
|
||||||
|
package = "beta";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
logitech = {
|
logitech = {
|
||||||
|
|||||||
@@ -120,8 +120,8 @@ in {
|
|||||||
(mkIf (host == "toothpc") {
|
(mkIf (host == "toothpc") {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
"$terminal" = "foot";
|
"$terminal" = "foot";
|
||||||
"$browser" = "firefox";
|
"$browser" = "zen";
|
||||||
"$browserinc" = "firefox --private-window";
|
"$browserinc" = "zen --private-window";
|
||||||
"$mod" = "ALT_L";
|
"$mod" = "ALT_L";
|
||||||
bind = [
|
bind = [
|
||||||
# Add more host-specific binds as needed
|
# Add more host-specific binds as needed
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
}: let
|
}: let
|
||||||
inherit (lib) mkIf mkEnableOption elem;
|
inherit (lib) mkIf mkEnableOption elem;
|
||||||
browser =
|
browser =
|
||||||
if elem osConfig.networking.hostName ["cnix" "cnixpad"]
|
if elem osConfig.networking.hostName ["cnix" "cnixpad" "toothpc"]
|
||||||
then "zen.desktop"
|
then "zen.desktop"
|
||||||
else "firefox.desktop";
|
else "firefox.desktop";
|
||||||
cfg = config.home.services.xdg;
|
cfg = config.home.services.xdg;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ in {
|
|||||||
options = {
|
options = {
|
||||||
nixos.hardware.graphics.nvidia = {
|
nixos.hardware.graphics.nvidia = {
|
||||||
enable = mkEnableOption "Enables NVidia graphics";
|
enable = mkEnableOption "Enables NVidia graphics";
|
||||||
|
open.enable = mkEnableOption "Enables open version of drivers";
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.enum ["stable" "beta" "production" "latest"];
|
type = types.enum ["stable" "beta" "production" "latest"];
|
||||||
default = "stable";
|
default = "stable";
|
||||||
@@ -64,7 +65,7 @@ in {
|
|||||||
enable = false;
|
enable = false;
|
||||||
finegrained = false;
|
finegrained = false;
|
||||||
};
|
};
|
||||||
open = true;
|
open = cfg.open.enable;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
filezilla
|
filezilla
|
||||||
];
|
];
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
BROWSER = "firefox";
|
BROWSER = "zen";
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
TERM = "xterm-256color";
|
TERM = "xterm-256color";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user