Compare commits
6 Commits
81c59857e5
...
35645a3e9c
| Author | SHA1 | Date | |
|---|---|---|---|
| 35645a3e9c | |||
| 67002a94dd | |||
| 6beb28477f | |||
| dc03836ac0 | |||
| 646ba6d63f | |||
| e34b5161d4 |
@@ -13,7 +13,7 @@ in {
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gamescopeSession.enable = true; # requires setting launch option `gamescope %command%`
|
gamescopeSession.enable = true; # requires setting launch option `gamescope <options> -- %command%`
|
||||||
remotePlay.openFirewall = true; # open ports for remote play
|
remotePlay.openFirewall = true; # open ports for remote play
|
||||||
#dedicatedServer.openFirewall = true; # open ports for source dedicated server
|
#dedicatedServer.openFirewall = true; # open ports for source dedicated server
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,14 @@ in {
|
|||||||
enable = lib.mkEnableOption "enables ${program}";
|
enable = lib.mkEnableOption "enables ${program}";
|
||||||
cursor = lib.mkOption {
|
cursor = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "Posy_Cursor_Black";
|
#default = "Posy_Cursor_Black";
|
||||||
|
default = "posy_dark";
|
||||||
|
description = "cursor to use";
|
||||||
|
};
|
||||||
|
cursor_hypr = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
#default = "Posy_Cursor_Black";
|
||||||
|
default = "posy_dark_hypr";
|
||||||
description = "cursor to use";
|
description = "cursor to use";
|
||||||
};
|
};
|
||||||
size = lib.mkOption {
|
size = lib.mkOption {
|
||||||
@@ -24,31 +31,31 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# shelving for now lmao
|
# shelving for now lmao, the home grown way
|
||||||
# xdg.dataFile."icons/posy_dark" = {
|
# xdg.dataFile."icons/${cfg.cursor}" = {
|
||||||
# #config.lib.file.mkOutOfStoreSymlink
|
# #config.lib.file.mkOutOfStoreSymlink
|
||||||
# source = "${home_dir}/.nix/users/blake/assets/icons/cursors/posy_dark";
|
# source = config.lib.file.mkOutOfStoreSymlink "${home_dir}/.nix/users/blake/assets/icons/cursors/${cfg.cursor}";
|
||||||
# recursive = true;
|
# recursive = true;
|
||||||
# };
|
# };
|
||||||
# xdg.dataFile."icons/posy_dark_hypr" = {
|
# xdg.dataFile."icons/${cfg.cursor_hypr}" = {
|
||||||
# source = "${home_dir}/.nix/users/blake/assets/icons/cursors/posy_dark_hypr";
|
# source = config.lib.file.mkOutOfStoreSymlink "${home_dir}/.nix/users/blake/assets/icons/cursors/${cfg.cursor_hypr}";
|
||||||
# recursive = true;
|
# recursive = true;
|
||||||
# };
|
# };
|
||||||
|
#
|
||||||
home.sessionVariables = {
|
# home.sessionVariables = {
|
||||||
XCURSOR_SIZE = cfg.size;
|
# HYPRCURSOR_SIZE = cfg.size;
|
||||||
XCURSOR_THEME = cfg.cursor;
|
# HYPRCURSOR_THEME = cfg.cursor_hypr;
|
||||||
HYPRCURSOR_SIZE = cfg.size;
|
# XCURSOR_SIZE = cfg.size;
|
||||||
HYPRCURSOR_THEME = cfg.cursor;
|
# XCURSOR_THEME = cfg.cursor;
|
||||||
};
|
# };
|
||||||
|
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
dotIcons.enable = false;
|
dotIcons.enable = false;
|
||||||
enable = true;
|
enable = true;
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
x11.enable = true;
|
#x11.enable = true;
|
||||||
package = pkgs.posy-cursors;
|
package = pkgs.posy-cursors;
|
||||||
name = cfg.cursor;
|
name = "Posy_Cursor_Black";
|
||||||
size = 64;
|
size = 64;
|
||||||
hyprcursor = {
|
hyprcursor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ in {
|
|||||||
"XDG_SESSION_DESKTOP,Hyprland"
|
"XDG_SESSION_DESKTOP,Hyprland"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
exec-once = [
|
||||||
|
"hyprctl setcursor ${config.home.pointerCursor.name} ${toString config.home.pointerCursor.size}"
|
||||||
|
];
|
||||||
|
|
||||||
# --- input ---
|
# --- input ---
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "us";
|
kb_layout = "us";
|
||||||
|
|||||||
Reference in New Issue
Block a user