From 043b474e3aaad324d8b6b5f9801f86d316fa9945 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Tue, 29 Jul 2025 14:12:04 +0300 Subject: [PATCH] --- hosts/dunamis/configuration.nix | 24 +++++++++++++++++++++-- modules/home/desktop/niri/default.nix | 2 ++ modules/home/desktop/niri/niri.nix | 2 +- modules/nixos/system/stylix/default.nix | 26 +++++++++++++++++++++++++ modules/shared/nixos/boot/default.nix | 3 ++- 5 files changed, 53 insertions(+), 4 deletions(-) diff --git a/hosts/dunamis/configuration.nix b/hosts/dunamis/configuration.nix index f7bb637..8ae9afe 100644 --- a/hosts/dunamis/configuration.nix +++ b/hosts/dunamis/configuration.nix @@ -1,4 +1,8 @@ -{inputs, ...}: { +{ + inputs, + lib, + ... +}: { imports = with inputs; [ self.modules.shared.nixos self.nixosModules.desktop @@ -22,6 +26,21 @@ user = "user"; }; + networking.firewall.allowedTCPPorts = [3923 3921 3990]; # for github:9001/copyparty + + networking.networkmanager.enable = lib.mkDefault false; + systemd.network.networks."10-wan" = { + matchConfig.Name = "enp8s0"; + networkConfig = { + # start a DHCP Client for IPv4 Addressing/Routing + DHCP = "ipv4"; + # accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC) + IPv6AcceptRA = true; + }; + # make routing on this interface a dependency for network-online.target + linkConfig.RequiredForOnline = "routable"; + }; + module = { config = { secureBoot = true; @@ -30,7 +49,7 @@ }; stylix = { enable = true; - theme = "sandcastle"; + theme = "oxocarbon-dark"; }; locale = "uk_UA.UTF-8"; misc = { @@ -38,5 +57,6 @@ qmk-vial.enable = true; }; virt.libvirt.enable = true; + virt.podman.enable = true; }; } diff --git a/modules/home/desktop/niri/default.nix b/modules/home/desktop/niri/default.nix index 31a1fb3..644c647 100644 --- a/modules/home/desktop/niri/default.nix +++ b/modules/home/desktop/niri/default.nix @@ -45,6 +45,8 @@ in { then "indigo" else if (hasPrefix "nord" theme) then "nordic" + else if (hasPrefix "oxocarbon" theme) + then "green" else if (hasPrefix "s" theme) then "teal" else null; diff --git a/modules/home/desktop/niri/niri.nix b/modules/home/desktop/niri/niri.nix index bb4fea0..45212c3 100644 --- a/modules/home/desktop/niri/niri.nix +++ b/modules/home/desktop/niri/niri.nix @@ -302,7 +302,7 @@ in { Mod+Ctrl+Space repeat=false { toggle-overview; } - Mod+Return repeat=false { spawn "sh" "-c" "$TERMINAL"; } + Mod+Return repeat=false { spawn "/bin/sh" "-c" "$TERMINAL"; } Mod+BackSpace repeat=false { spawn "${launcher}"; } Mod+A repeat=false { spawn "${launcher}"; } Mod+Ctrl+L repeat=false { spawn "${lockscreen}"; } diff --git a/modules/nixos/system/stylix/default.nix b/modules/nixos/system/stylix/default.nix index 8a451e4..25be79e 100644 --- a/modules/nixos/system/stylix/default.nix +++ b/modules/nixos/system/stylix/default.nix @@ -55,6 +55,11 @@ name = "wallhaven-ymo2y7.png"; sha256 = "1b3j0hxxy8m25scq42lxsxc99xvr15pha1j4wplgz761asrvxly3"; }; + retro-deck = fetchurl { + url = "https://w.wallhaven.cc/full/1q/wallhaven-1q83qg.jpg"; + name = "wallhaven-1q83qg.jpg"; + sha256 = "QPmG4QTRvubuX6Fy5rmMwYKw4aQdBiH/zGL/PMmUZOk="; + }; nixos-rainbow = fetchurl { url = "https://w.wallhaven.cc/full/p9/wallhaven-p9pd23.png"; name = "wallhaven-p9pd23.png"; @@ -77,6 +82,27 @@ }; }; themes = { + oxocarbon-dark = { + polarity = "dark"; + scheme = fromBase16Schemes "porple"; + wallpaper = wallpapers.retro-deck; + + serif = { + package = iosevkaPackage; + name = "Iosevka Nerd Font Propo"; + }; + + monospace = { + package = iosevkaTermPackage; + name = "IosevkaTerm Nerd Font Mono"; + }; + + cursor = { + package = pkgs.bibata-cursors; + name = "Bibata-Modern-Classic"; + size = 24; + }; + }; rose-pine-dawn = { polarity = "light"; scheme = fromBase16Schemes "rose-pine-dawn"; diff --git a/modules/shared/nixos/boot/default.nix b/modules/shared/nixos/boot/default.nix index 010eb4e..1a524ec 100644 --- a/modules/shared/nixos/boot/default.nix +++ b/modules/shared/nixos/boot/default.nix @@ -11,7 +11,8 @@ boot = { plymouth.enable = true; consoleLogLevel = 0; - kernelPackages = pkgs.linuxPackages_cachyos; + # kernelPackages = pkgs.linuxPackages_cachyos; + kernelPackages = pkgs.linuxPackages_latest; initrd = { systemd.enable = true; };