diff --git a/hosts/polaris/system.nix b/hosts/polaris/system.nix index 309f3e2..8b2e5ed 100644 --- a/hosts/polaris/system.nix +++ b/hosts/polaris/system.nix @@ -3,10 +3,22 @@ imports = [ ../../modules/nixos/desktop.nix + ../../modules/nixos/ssh.nix ./hardware-configuration.nix ./variables.nix ]; + networking = { + interfaces = { + enp5s0 = { + wakeOnLan.enable = true; + }; + }; + firewall = { + allowedUDPPorts = [ 9 ]; + }; + }; + home-manager.users."${config.var.username}" = import ./home.nix; system.stateVersion = "24.05"; diff --git a/modules/home-manager/desktop.nix b/modules/home-manager/desktop.nix index 2abe117..e93cf2c 100644 --- a/modules/home-manager/desktop.nix +++ b/modules/home-manager/desktop.nix @@ -89,6 +89,8 @@ cmatrix libreoffice-qt6-fresh + + trash-cli ]; }; } diff --git a/modules/home-manager/hyprland/default.nix b/modules/home-manager/hyprland/default.nix index 3a1f49b..e530de1 100644 --- a/modules/home-manager/hyprland/default.nix +++ b/modules/home-manager/hyprland/default.nix @@ -144,9 +144,10 @@ in windowrule = [ "match:title hyprpanel-settings, float on" - "match:class xdg-desktop-portal-gtk, float on, center on, size monitor_w/2 monitor_h/2" + "match:class xdg-desktop-portal-gtk, float on, center on, size (monitor_w * 0.5) (monitor_h * 0.5)" # Match on bitwarden chrome extension id - "match:class .*nngceckbapebfimnlniiiahkandclblb.*, float on, center on, size monitor_w/2 monitor_h/2" + "match:class .*nngceckbapebfimnlniiiahkandclblb.*, float on, center on, size (monitor_w * 0.5) (monitor_h * 0.5)" + "match:class imv, float on, center on, max_size (monitor_w * 0.8) (monitor_h * 0.8)" ]; layerrule = [ diff --git a/modules/home-manager/nixCats/default.nix b/modules/home-manager/nixCats/default.nix index 48cde22..d6c5c70 100644 --- a/modules/home-manager/nixCats/default.nix +++ b/modules/home-manager/nixCats/default.nix @@ -61,6 +61,8 @@ let typstyle ltex-ls-plus + + harper ]; }; diff --git a/modules/home-manager/nixCats/lua/plugins/lsp.lua b/modules/home-manager/nixCats/lua/plugins/lsp.lua index af55801..fabcea7 100644 --- a/modules/home-manager/nixCats/lua/plugins/lsp.lua +++ b/modules/home-manager/nixCats/lua/plugins/lsp.lua @@ -64,7 +64,7 @@ require("lz.n").load({ -- 1. Setup Diagnostics (Visuals) vim.diagnostic.config({ severity_sort = true, - underline = { severity = vim.diagnostic.severity.ERROR }, + -- underline = { severity = vim.diagnostic.severity.ERROR }, signs = { text = { [vim.diagnostic.severity.ERROR] = " ", @@ -165,6 +165,8 @@ require("lz.n").load({ }, }) vim.lsp.enable("ltex_plus") + + vim.lsp.enable("harper_ls") end, }, }) diff --git a/modules/nixos/syncthing.nix b/modules/nixos/syncthing.nix index 5ca8561..94ad246 100644 --- a/modules/nixos/syncthing.nix +++ b/modules/nixos/syncthing.nix @@ -4,6 +4,18 @@ ... }: let + devices = { + "altair" = { + id = "HDHWROJ-ZLNQKCL-PN6WGHA-IGJHIRI-3UHDYUU-LUJHYK4-UMKWLAZ-VFISJQF"; + }; + "orion" = { + id = "7ESQ3BX-FEW7656-ZPT3CKF-FLXON26-HXRNTDW-THSJBNF-LFWCHFB-ASP4WAG"; + }; + "polaris" = { + id = "6YBO3OK-3QVMKWL-ZOS4ZTF-G53CY6K-WYZJNFG-DTYCUA4-WJF2LRC-PJT3NAL"; + }; + }; + username = config.var.username; hostname = config.var.hostname; isOrion = hostname == "orion"; @@ -33,12 +45,12 @@ in overrideFolders = true; # Overrides any folders added via Web UI settings = { - devices = config.var.syncthing.devices; + devices = devices; folders = { "sync" = { path = syncPath; - devices = builtins.attrNames config.var.syncthing.devices; # Share with all defined devices + devices = builtins.attrNames devices; # Share with all defined devices # Ensure new files are readable by the group (chmod 770 approx) ignorePerms = true; }; diff --git a/modules/variables.nix b/modules/variables.nix index ee5e5ca..ab6fe4c 100644 --- a/modules/variables.nix +++ b/modules/variables.nix @@ -25,17 +25,6 @@ browser = "brave"; }; - syncthing = { - devices = { - "altair" = { - id = "HDHWROJ-ZLNQKCL-PN6WGHA-IGJHIRI-3UHDYUU-LUJHYK4-UMKWLAZ-VFISJQF"; - }; - "orion" = { - id = "7ESQ3BX-FEW7656-ZPT3CKF-FLXON26-HXRNTDW-THSJBNF-LFWCHFB-ASP4WAG"; - }; - }; - }; - autoUpgrade = false; autoGarbageCollector = true; };