pointers & 3 drag
This commit is contained in:
parent
7705f24e0f
commit
4717886bcc
@ -1,4 +1,4 @@
|
|||||||
{ lib, config, namespace, osConfig, ... }:
|
{ pkgs, lib, config, namespace, osConfig, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.${namespace}) enabled;
|
inherit (lib.${namespace}) enabled;
|
||||||
in
|
in
|
||||||
@ -11,6 +11,7 @@ in
|
|||||||
|
|
||||||
services = {
|
services = {
|
||||||
ssh-agent = enabled;
|
ssh-agent = enabled;
|
||||||
|
fusuma = enabled;
|
||||||
sops = {
|
sops = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultSopsFile = lib.snowfall.fs.get-file "secrets/default.yaml";
|
defaultSopsFile = lib.snowfall.fs.get-file "secrets/default.yaml";
|
||||||
@ -40,6 +41,22 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dconf = {
|
||||||
|
settings = {
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
cursor-theme = "catppuccin-macchiato-mauve-cursors";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.pointerCursor = {
|
||||||
|
x11.enable = true;
|
||||||
|
gtk.enable = true;
|
||||||
|
package = pkgs.catppuccin-cursors.macchiatoMauve;
|
||||||
|
name = "catppuccin-macchiato-mauve-cursors";
|
||||||
|
size = 64;
|
||||||
|
};
|
||||||
|
|
||||||
# Kubernetes Secrets
|
# Kubernetes Secrets
|
||||||
sops.secrets = lib.mkIf osConfig.${namespace}.security.sops.enable {
|
sops.secrets = lib.mkIf osConfig.${namespace}.security.sops.enable {
|
||||||
rke2_kubeconfig = {
|
rke2_kubeconfig = {
|
||||||
|
@ -167,6 +167,7 @@ input {
|
|||||||
disable_while_typing = true
|
disable_while_typing = true
|
||||||
natural_scroll = true
|
natural_scroll = true
|
||||||
clickfinger_behavior = true
|
clickfinger_behavior = true
|
||||||
|
tap-to-click = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
35
modules/home/services/fusuma/default.nix
Normal file
35
modules/home/services/fusuma/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ config, pkgs, lib, namespace, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.${namespace}.services.fusuma;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.${namespace}.services.fusuma = {
|
||||||
|
enable = lib.mkEnableOption "Fusuma";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.fusuma = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [ ydotool deterministic-uname uutils-coreutils-noprefix ];
|
||||||
|
settings = {
|
||||||
|
swipe = {
|
||||||
|
"3" = {
|
||||||
|
begin = {
|
||||||
|
command = "ydotool click 40";
|
||||||
|
interval = 0.00;
|
||||||
|
};
|
||||||
|
update = {
|
||||||
|
command = "ydotool mousemove -- $move_x, $move_y";
|
||||||
|
interval = 0.01;
|
||||||
|
accel = 1.00;
|
||||||
|
# accel = 1.70;
|
||||||
|
};
|
||||||
|
end = {
|
||||||
|
command = "ydotool click 80";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -14,11 +14,6 @@ in
|
|||||||
catppuccin-sddm
|
catppuccin-sddm
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.sessionVariables = {
|
|
||||||
QT_SCREEN_SCALE_FACTORS = "2";
|
|
||||||
QT_FONT_DPI = "192";
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
displayManager = {
|
displayManager = {
|
||||||
sddm = {
|
sddm = {
|
||||||
@ -29,5 +24,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
QT_SCREEN_SCALE_FACTORS = "2";
|
||||||
|
QT_FONT_DPI = "192";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
19
modules/nixos/services/ydotool/default.nix
Normal file
19
modules/nixos/services/ydotool/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ config, lib, namespace, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
|
||||||
|
cfg = config.${namespace}.services.ydotool;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.${namespace}.services.ydotool = {
|
||||||
|
enable = lib.mkEnableOption "ydotool";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
reichard.user.extraGroups = [ "input" ];
|
||||||
|
programs.ydotool = {
|
||||||
|
enable = true;
|
||||||
|
group = "input";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -21,12 +21,9 @@ in
|
|||||||
users.users.${cfg.name} = {
|
users.users.${cfg.name} = {
|
||||||
inherit (cfg) name initialPassword;
|
inherit (cfg) name initialPassword;
|
||||||
|
|
||||||
extraGroups = [
|
|
||||||
"wheel"
|
|
||||||
] ++ cfg.extraGroups;
|
|
||||||
|
|
||||||
group = "users";
|
group = "users";
|
||||||
home = "/home/${cfg.name}";
|
home = "/home/${cfg.name}";
|
||||||
|
extraGroups = [ "wheel" ] ++ cfg.extraGroups;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.bashInteractive;
|
shell = pkgs.bashInteractive;
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
|
@ -7,6 +7,9 @@ in
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
system.stateVersion = "24.11";
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
# System Config
|
# System Config
|
||||||
reichard = {
|
reichard = {
|
||||||
nix = enabled;
|
nix = enabled;
|
||||||
@ -15,6 +18,7 @@ in
|
|||||||
boot = {
|
boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
showNotch = true;
|
showNotch = true;
|
||||||
|
silentBoot = true;
|
||||||
};
|
};
|
||||||
networking = {
|
networking = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -33,6 +37,7 @@ in
|
|||||||
|
|
||||||
services = {
|
services = {
|
||||||
avahi = enabled;
|
avahi = enabled;
|
||||||
|
ydotool = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
@ -49,13 +54,4 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Hardware Config
|
|
||||||
hardware = {
|
|
||||||
bluetooth.enable = true;
|
|
||||||
bluetooth.powerOnBoot = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
time.timeZone = "America/New_York";
|
|
||||||
system.stateVersion = "24.11";
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user