Compare commits

..

No commits in common. "842f37310165203f4eb39e1b9b76e4829a43a4de" and "2a812c1bdb1a69253a4e6ae8f2f381a02ac85ce1" have entirely different histories.

6 changed files with 26 additions and 40 deletions

View File

@ -118,7 +118,6 @@ inputs.nixpkgs.lib.nixosSystem {
dwarf-fortress.enable = true; dwarf-fortress.enable = true;
enable = true; enable = true;
steam.enable = true; steam.enable = true;
moonlight.enable = true;
legendary.enable = true; legendary.enable = true;
lutris.enable = true; lutris.enable = true;
ryujinx.enable = true; ryujinx.enable = true;

View File

@ -12,7 +12,6 @@
./legendary.nix ./legendary.nix
./lutris.nix ./lutris.nix
./minecraft-server.nix ./minecraft-server.nix
./moonlight.nix
./ryujinx.nix ./ryujinx.nix
./steam.nix ./steam.nix
]; ];

View File

@ -1,14 +0,0 @@
{
config,
pkgs,
lib,
...
}:
{
options.gaming.moonlight.enable = lib.mkEnableOption "Enable Moonlight game streaming client.";
config = lib.mkIf config.gaming.moonlight.enable {
environment.systemPackages = with pkgs; [ moonlight-qt ];
};
}

View File

@ -209,6 +209,12 @@
label-foreground = config.theme.colors.base06; label-foreground = config.theme.colors.base06;
# format-background = colors.background; # format-background = colors.background;
}; };
"module/keyboard" = {
type = "custom/text";
content = "󰌌";
click-left = "doas systemctl restart keyd";
content-foreground = config.theme.colors.base04;
};
"module/power" = { "module/power" = {
type = "custom/text"; type = "custom/text";
content = " "; content = " ";

View File

@ -1,4 +1,9 @@
{ config, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
config = lib.mkIf config.physical { config = lib.mkIf config.physical {
@ -12,30 +17,24 @@
autoRepeatInterval = 40; autoRepeatInterval = 40;
}; };
# Swap Caps-Lock with Escape when pressed or LCtrl when held/combined with others # Use capslock as escape and/or control
# Inspired by: https://www.youtube.com/watch?v=XuQVbZ0wENE services.keyd = {
services.kanata = {
enable = true; enable = true;
keyboards.default = { keyboards = {
devices = [ default = {
"/dev/input/by-id/usb-Logitech_Logitech_G710_Keyboard-event-kbd" ids = [ "*" ];
"/dev/input/by-id/usb-Logitech_Logitech_G710_Keyboard-if01-event-kbd" settings = {
]; main = {
extraDefCfg = "process-unmapped-keys yes"; capslock = "overload(control, esc)";
config = '' };
(defsrc };
caps };
)
(defalias
escctrl (tap-hold-press 1000 1000 esc lctrl)
)
(deflayer base
@escctrl
)
'';
}; };
}; };
# For some reason, keyd doesn't restart properly when updating
system.activationScripts.keyd.text = "${pkgs.systemd}/bin/systemctl restart keyd.service";
# Enable num lock on login # Enable num lock on login
home-manager.users.${config.user}.xsession.numlock.enable = true; home-manager.users.${config.user}.xsession.numlock.enable = true;
}; };

View File

@ -116,9 +116,6 @@ in
[ "127.0.0.1" ] ++ cloudflareIpRanges [ "127.0.0.1" ] ++ cloudflareIpRanges
); );
# Using dyn-dns instead of ddclient because I can't find a way to choose
# between proxied and non-proxied records for Cloudflare using just
# ddclient.
services.cloudflare-dyndns = services.cloudflare-dyndns =
lib.mkIf ((builtins.length config.services.cloudflare-dyndns.domains) > 0) lib.mkIf ((builtins.length config.services.cloudflare-dyndns.domains) > 0)
{ {