From bce801220955a61555f38443bf96c113846732d8 Mon Sep 17 00:00:00 2001 From: jasmine Date: Mon, 1 Sep 2025 01:48:47 +0800 Subject: [PATCH] chore: add all --- home-manager/sajenim/features/cli/default.nix | 1 - .../sajenim/features/desktop/default.nix | 5 +++ .../features/desktop/dunst/default.nix | 31 +++++++++++++++++++ .../sajenim/features/desktop/obs/default.nix | 9 ++++++ nixos/fuchsia/hardware-configuration.nix | 2 +- nixos/viridian/configuration.nix | 6 ++-- nixos/viridian/hardware-configuration.nix | 6 ---- .../viridian/services/borgbackup/default.nix | 2 -- nixos/viridian/services/default.nix | 1 - 9 files changed, 50 insertions(+), 13 deletions(-) create mode 100644 home-manager/sajenim/features/desktop/dunst/default.nix create mode 100644 home-manager/sajenim/features/desktop/obs/default.nix diff --git a/home-manager/sajenim/features/cli/default.nix b/home-manager/sajenim/features/cli/default.nix index de1a8e5..f81e392 100644 --- a/home-manager/sajenim/features/cli/default.nix +++ b/home-manager/sajenim/features/cli/default.nix @@ -13,7 +13,6 @@ [ mum btop - pulsemixer unstable.qmk unstable.rmapi ] diff --git a/home-manager/sajenim/features/desktop/default.nix b/home-manager/sajenim/features/desktop/default.nix index 1340f78..3ae2fe0 100644 --- a/home-manager/sajenim/features/desktop/default.nix +++ b/home-manager/sajenim/features/desktop/default.nix @@ -5,7 +5,9 @@ }: { imports = [ ./cava + ./dunst ./mpv + ./obs ./picom ./wezterm ]; @@ -16,6 +18,9 @@ gimp piper zathura + + # KDE Packages + kdePackages.kdenlive ]; home.file = { diff --git a/home-manager/sajenim/features/desktop/dunst/default.nix b/home-manager/sajenim/features/desktop/dunst/default.nix new file mode 100644 index 0000000..8afb5a5 --- /dev/null +++ b/home-manager/sajenim/features/desktop/dunst/default.nix @@ -0,0 +1,31 @@ +{...}: { + services.dunst = { + enable = true; + settings = { + global = { + width = 300; + height = 300; + origin = "top-right"; + offset = "20x20"; + frame_width = 5; + frame_color = "#32302f"; + corner_radius = 10; + }; + + urgency_low = { + background = "#282828"; + foreground = "#d4be98"; + }; + + urgency_normal = { + background = "#282828"; + foreground = "#d4be98"; + }; + + urgency_critical = { + background = "#282828"; + foreground = "#d4be98"; + }; + }; + }; +} diff --git a/home-manager/sajenim/features/desktop/obs/default.nix b/home-manager/sajenim/features/desktop/obs/default.nix new file mode 100644 index 0000000..6dc3ebd --- /dev/null +++ b/home-manager/sajenim/features/desktop/obs/default.nix @@ -0,0 +1,9 @@ +{pkgs, ...}: { + programs.obs-studio = { + enable = true; + + plugins = with pkgs.obs-studio-plugins; [ + obs-vaapi # AMD hardware acceleration + ]; + }; +} diff --git a/nixos/fuchsia/hardware-configuration.nix b/nixos/fuchsia/hardware-configuration.nix index ee33041..49773dd 100644 --- a/nixos/fuchsia/hardware-configuration.nix +++ b/nixos/fuchsia/hardware-configuration.nix @@ -20,7 +20,7 @@ }; # Linux kernel used by NixOS. - kernelPackages = pkgs.unstable.linuxPackages; + kernelPackages = pkgs.linuxPackages_latest; # Parameters added to the kernel command line. kernelParams = [ # Enable amdgpu driver sysfs API that allows fine grain control of GPU diff --git a/nixos/viridian/configuration.nix b/nixos/viridian/configuration.nix index 703932f..e52b24b 100644 --- a/nixos/viridian/configuration.nix +++ b/nixos/viridian/configuration.nix @@ -20,7 +20,10 @@ networking = { hostName = "viridian"; networkmanager.enable = true; - firewall = { + }; + + # Firewall configuration + networking.firewall = { enable = true; allowPing = true; allowedTCPPorts = [ @@ -29,7 +32,6 @@ 6600 # mpd 6667 # inspircd ]; - }; }; # Configure programs diff --git a/nixos/viridian/hardware-configuration.nix b/nixos/viridian/hardware-configuration.nix index 7f51f6f..2b11a45 100644 --- a/nixos/viridian/hardware-configuration.nix +++ b/nixos/viridian/hardware-configuration.nix @@ -63,12 +63,6 @@ options = ["subvol=containers" "compress=zstd"]; }; - fileSystems."/srv/shares" = { - device = "/dev/disk/by-label/data"; - fsType = "btrfs"; - options = ["subvol=shares" "compress=zstd"]; - }; - swapDevices = [ { device = "/swap/swapfile"; diff --git a/nixos/viridian/services/borgbackup/default.nix b/nixos/viridian/services/borgbackup/default.nix index c0443ed..1e11d42 100644 --- a/nixos/viridian/services/borgbackup/default.nix +++ b/nixos/viridian/services/borgbackup/default.nix @@ -7,8 +7,6 @@ paths = [ # Websites "/srv/www/sajenim.dev" - # File shares - "/srv/shares/sajenim" # Services "/var/lib/crowdsec" "/var/lib/forgejo" diff --git a/nixos/viridian/services/default.nix b/nixos/viridian/services/default.nix index f2a826d..d4e83aa 100644 --- a/nixos/viridian/services/default.nix +++ b/nixos/viridian/services/default.nix @@ -10,7 +10,6 @@ ./mpd ./murmur ./opengist - ./projectsend ./traefik ]; }