diff --git a/modules/core/ssh.nix b/modules/core/ssh.nix index 8a2a383..17d11ac 100644 --- a/modules/core/ssh.nix +++ b/modules/core/ssh.nix @@ -4,6 +4,16 @@ services.openssh = { enable = true; openFirewall = true; + + users.users.moons = { + isNormalUser = true; + + openssh.authorizedKeys.keys = [ + "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIKhxDkucmeCor6CKoXAua7DgDSzuXrZOtpdkyzQxz5+aAAAABHNzaDo= moons@moons14.com" + "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIN6hZJyng/5LgFKPjR6uZAd/00UkO0vN0uQOoIvfSELdAAAABHNzaDo= moons@moons14.com" + ]; + }; + settings = { PermitRootLogin = "no"; PasswordAuthentication = false; diff --git a/modules/home/niri/default.nix b/modules/home/niri/default.nix index 93ae606..4656508 100644 --- a/modules/home/niri/default.nix +++ b/modules/home/niri/default.nix @@ -1,15 +1,15 @@ { inputs, pkgs, ... }: -let +let defaultKeyBind = import ./defaultKeyBind.nix; -in +in { imports = [ inputs.niri-flake.homeModules.niri ]; programs.niri.package = pkgs.niri; programs.niri.settings = { - input.touchpad = { + input.touchpad = { natural-scroll = true; - scroll-factor = 0.5; + scroll-factor = 1.0; accel-speed = 0.3; scroll-method = "two-finger"; click-method = "clickfinger"; @@ -23,7 +23,7 @@ in outputs."eDP-1".scale = 1; cursor.size = 16; - + # Doracura color layout = { focus-ring = { @@ -31,7 +31,7 @@ in inactive.color = "#6272a4"; }; border = { - active.color = "#ffc87f" ; + active.color = "#ffc87f"; inactive.color = "#505050"; urgent.color = "#9b0000"; }; @@ -46,46 +46,99 @@ in hotkey-overlay.title = "Open a Terminal: ghostty"; }; "Mod+D" = { - action.spawn = [ "vicinae" "toggle"]; + action.spawn = [ + "vicinae" + "toggle" + ]; hotkey-overlay.title = "Run an Application: vicinae"; }; "Mod+Space" = { - action.spawn = [ "vicinae" "toggle"]; + action.spawn = [ + "vicinae" + "toggle" + ]; hotkey-overlay.title = "Run an Application: vicinae"; }; "Mod+E" = { - action.spawn = [ "nautilus" "--new-window" ]; + action.spawn = [ + "nautilus" + "--new-window" + ]; hotkey-overlay.title = "Open File Manager: nautilus"; }; "Mod+L" = { - action.spawn = [ "noctalia-shell" "ipc" "call" "lockScreen" "lock" ]; + action.spawn = [ + "noctalia-shell" + "ipc" + "call" + "lockScreen" + "lock" + ]; hotkey-overlay.title = "Lock the Screen: noctalia"; }; "Mod+V" = { - action.spawn = [ "vicinae" "vicinae://extensions/vicinae/clipboard/history" ]; + action.spawn = [ + "vicinae" + "vicinae://extensions/vicinae/clipboard/history" + ]; hotkey-overlay.title = "Clipboard History"; }; - "XF86AudioRaiseVolume" = { - action.spawn = [ "noctalia-shell" "ipc" "call" "volume" "increase" ]; + action.spawn = [ + "noctalia-shell" + "ipc" + "call" + "volume" + "increase" + ]; }; "XF86AudioLowerVolume" = { - action.spawn = [ "noctalia-shell" "ipc" "call" "volume" "decrease" ]; + action.spawn = [ + "noctalia-shell" + "ipc" + "call" + "volume" + "decrease" + ]; }; "XF86AudioMute" = { - action.spawn = [ "noctalia-shell" "ipc" "call" "volume" "muteOutput" ]; + action.spawn = [ + "noctalia-shell" + "ipc" + "call" + "volume" + "muteOutput" + ]; }; "XF86AudioMicMute" = { - action.spawn = [ "noctalia-shell" "ipc" "call" "volume" "muteInput" ]; + action.spawn = [ + "noctalia-shell" + "ipc" + "call" + "volume" + "muteInput" + ]; }; - + "XF86MonBrightnessUp" = { - action.spawn = [ "noctalia-shell" "ipc" "call" "brightness" "increase" ]; + action.spawn = [ + "noctalia-shell" + "ipc" + "call" + "brightness" + "increase" + ]; }; "XF86MonBrightnessDown" = { - action.spawn = [ "noctalia-shell" "ipc" "call" "brightness" "decrease" ]; + action.spawn = [ + "noctalia-shell" + "ipc" + "call" + "brightness" + "decrease" + ]; }; }; }; -} \ No newline at end of file +}