diff --git a/flake.lock b/flake.lock index 2a3820f..86640a8 100644 --- a/flake.lock +++ b/flake.lock @@ -65,11 +65,11 @@ ] }, "locked": { - "lastModified": 1776876344, - "narHash": "sha256-Ubqb/agkuMJK+k19gjQgHux/eOYRc1sRGoOZOho8+VY=", + "lastModified": 1776702787, + "narHash": "sha256-qc5uwEWbuubzYthmZcfCapooZGXhoYZWfTQ24TozbCQ=", "owner": "hyprwm", "repo": "aquamarine", - "rev": "648a13d0ee1e03a843b3e145b8ece15393058701", + "rev": "9a1ca6b8cb4d86a599787a55b78f2ddf809bf945", "type": "github" }, "original": { @@ -206,11 +206,11 @@ ] }, "locked": { - "lastModified": 1777183754, - "narHash": "sha256-EOnvDz4y4b64qMFgZhdJkeXl2L9hpD0sjnmnR7WoFd8=", + "lastModified": 1776854955, + "narHash": "sha256-00zg+nyGPPvvIqNaI+yiak+7gffvGAQrinObbMNEnrQ=", "owner": "Daaboulex", "repo": "cachyos-settings-nix", - "rev": "dd453b94533d9850e1a22bf21b73201b1f279df3", + "rev": "9517fbff2cbddcd5ecb10da2167c459629b28340", "type": "github" }, "original": { @@ -306,11 +306,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1777374399, - "narHash": "sha256-7l5lBvVcMF4yyWD6rRF4qGLkqWkZ6XjFGX/ug+DTF2c=", + "lastModified": 1777083982, + "narHash": "sha256-O44P8qcFEv0PYQd+9vFAgCu/e9RclHIAyAmRDJ8qR5s=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "caffeac5f51131d1fc095da8d526e0a94443e2d0", + "rev": "42711d50137a45b8065c3e329946e2d4525235d0", "type": "github" }, "original": { @@ -349,11 +349,11 @@ }, "locked": { "dir": "pkgs/firefox-addons", - "lastModified": 1777348977, - "narHash": "sha256-9aKuCI5TKHKnP073B1VzBdLRLAQJE7R9rbJWaSFXr3M=", + "lastModified": 1777089773, + "narHash": "sha256-ZIlNuebeWTncyl7mcV9VbceSLAaZki+UeXLPQG959xI=", "owner": "rycee", "repo": "nur-expressions", - "rev": "a314975f42bfa9665bf77d1586ee0e123790ed27", + "rev": "402ba229617a12d918c2a887a4c83a9a24f9a36c", "type": "gitlab" }, "original": { @@ -767,11 +767,11 @@ ] }, "locked": { - "lastModified": 1776796298, - "narHash": "sha256-PcRvlWayisPSjd0UcRQbhG8Oqw78AcPE6x872cPRHN8=", + "lastModified": 1775585728, + "narHash": "sha256-8Psjt+TWvE4thRKktJsXfR6PA/fWWsZ04DVaY6PUhr4=", "owner": "cachix", "repo": "git-hooks.nix", - "rev": "3cfd774b0a530725a077e17354fbdb87ea1c4aad", + "rev": "580633fa3fe5fc0379905986543fd7495481913d", "type": "github" }, "original": { @@ -1072,11 +1072,11 @@ ] }, "locked": { - "lastModified": 1777349711, - "narHash": "sha256-PGKgo2dO6fK603QGI+DWXdKmS09pbJjjTxwRHdhkGZA=", + "lastModified": 1777086106, + "narHash": "sha256-hlNpIN18pw3xo34Lsrp6vAMUPn0aB/zFBqL0QXI1Pmk=", "owner": "nix-community", "repo": "home-manager", - "rev": "c1140540536d483e2730320100f6835d62c94fdf", + "rev": "5826802354a74af18540aef0b01bc1320f82cc17", "type": "github" }, "original": { @@ -1210,11 +1210,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1777371432, - "narHash": "sha256-Cx6p8WPb9iKWgtFGmx0W2x+gQiqsdTKSZw8qaZXEiOc=", + "lastModified": 1777040476, + "narHash": "sha256-BEzeFZYo9J3wgKbtBhIhiK46NsRqvyEzN/euJq78Wco=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "d4c6ff434c5c7aa66bc7c28e5ce336d2a694bfcc", + "rev": "e3c9b64812042ade8bec47499f461f2c7d36c184", "type": "github" }, "original": { @@ -1439,11 +1439,11 @@ ] }, "locked": { - "lastModified": 1777148223, - "narHash": "sha256-PTf7kRFFzCW6rIYxLH2fWfVJmj86FSYe3k6L8B+IM9o=", + "lastModified": 1776428866, + "narHash": "sha256-XfRlBolGtjvalTHJp3XvvpYLBjkMhaZLLU0WqZ91Fcg=", "owner": "hyprwm", "repo": "hyprutils", - "rev": "fa3992be2dfebe4ab06d753c6ca59bea298e798f", + "rev": "eedd60805cd96d4442586f2ba5fe51d549b12674", "type": "github" }, "original": { @@ -1489,11 +1489,11 @@ ] }, "locked": { - "lastModified": 1777148232, - "narHash": "sha256-Uv0WZLhu89SafuSOmYDA7akrPt4wBRmsa1ucasO5aXg=", + "lastModified": 1776430932, + "narHash": "sha256-Yv3RPiUvl7CAsJgwIVsqcj7akn1gLyJP1F/mocof5hA=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "fec9cf1abcc1011e46f0a0986f46bf93c6bf8b92", + "rev": "4c2fcc06dc9722c97dbb54ba649c69b18ce83d2e", "type": "github" }, "original": { @@ -1633,11 +1633,11 @@ ] }, "locked": { - "lastModified": 1777361204, - "narHash": "sha256-O5ZV2FJ0GfT1OXsbhVtLIRvz9chjhRddH+BHQ8A1C68=", + "lastModified": 1777075675, + "narHash": "sha256-VhK5HyE6tGb36+NOrKGcsDW94Ag1keLv4L4euwNAMqk=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "14adfd1c1a789e471abba7c56d4299f3ffd5ceb5", + "rev": "9a01d7c31b5e7984415fa08d8818e1d7d74ca24c", "type": "github" }, "original": { @@ -1649,11 +1649,11 @@ "neovim-src": { "flake": false, "locked": { - "lastModified": 1777332043, - "narHash": "sha256-nTHh5p4ADW0EohmB7//vcWYr1iUdNy6PVg+LCbOXx5I=", + "lastModified": 1777070903, + "narHash": "sha256-bX3kOxrzI6phJIOdFVsNvr4Daq4r9OA6IQA1cDZ8VF0=", "owner": "neovim", "repo": "neovim", - "rev": "e4458b7f244b28a0f685552a4c20f0696f7e3f6c", + "rev": "f83d0b9653a8a548093645a9397f9f293b91c127", "type": "github" }, "original": { @@ -1671,11 +1671,11 @@ "nixpkgs": "nixpkgs_7" }, "locked": { - "lastModified": 1777227006, - "narHash": "sha256-A7GcOXjfo2xmZ3ERgN0j6GcqaVzqIf5zpYQcdfDaMr0=", + "lastModified": 1777054238, + "narHash": "sha256-qaqHPZO3oQJiIZgD6sp5HKwvYAVyMtHVJiXVwPSEkx0=", "owner": "xddxdd", "repo": "nix-cachyos-kernel", - "rev": "0f7e2bea4088227a80502557f6c0e3b74949d6b5", + "rev": "acb94409639d6d6d64bea140f939ac34938560b1", "type": "github" }, "original": { @@ -1750,11 +1750,11 @@ ] }, "locked": { - "lastModified": 1777181277, - "narHash": "sha256-yVJbd07ortDRAttDFmDV5p220aOLTHgVAx//0nW/xW8=", + "lastModified": 1776829403, + "narHash": "sha256-oHVcvP2Ahhj1KUsEzp+2BQF55/r5VSa3QxdPdwE1p00=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "b8eb7acee0f7604fe1bf6a5b3dcf5254369180fa", + "rev": "c43246d4e9e506178b69baed075d797ec2d873e2", "type": "github" }, "original": { @@ -1871,11 +1871,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1777077449, - "narHash": "sha256-AIiMJiqvGrN4HyLEbKAoCSRRYn0rnlW5VbKNIMIYqm4=", + "lastModified": 1776734388, + "narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a4bf06618f0b5ee50f14ed8f0da77d34ecc19160", + "rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac", "type": "github" }, "original": { @@ -1951,11 +1951,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1776877367, - "narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=", + "lastModified": 1776548001, + "narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0726a0ecb6d4e08f6adced58726b95db924cef57", + "rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc", "type": "github" }, "original": { @@ -1999,11 +1999,11 @@ }, "nixpkgs_7": { "locked": { - "lastModified": 1777187199, - "narHash": "sha256-RJlLGrl+xHndIVK1NbPkIsItePNB3X4PIe8UTk3AHnw=", + "lastModified": 1777014002, + "narHash": "sha256-x6BrXhfnsM2SG/n00O5o1Azn2txRHxU4cCZXiDZkFxU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "facea5e538604efa4893c08770fe9fca5bf62c2f", + "rev": "15ebe06759175c2e98dba23c0b125913589094e7", "type": "github" }, "original": { @@ -2278,11 +2278,11 @@ "systems": "systems_10" }, "locked": { - "lastModified": 1777186687, - "narHash": "sha256-uENM6Bp3oeLCojEw446emrSGUiE9TZ+VoL7WwyyN49c=", + "lastModified": 1776651011, + "narHash": "sha256-0S5KPwzJHHGWhy0qPHR/DvVqIfKg9SYDzSIV3+zl9sE=", "owner": "hyprland-community", "repo": "pyprland", - "rev": "56887dfae9980f057a9b66143628c2ca88ed380e", + "rev": "4f483bcd5bce6344965a98bb362f6400654c87e4", "type": "github" }, "original": { @@ -2804,11 +2804,11 @@ ] }, "locked": { - "lastModified": 1777035886, - "narHash": "sha256-m1TNuBoSXUBSKhD9UVMkU90M0wFTPTfvIOOltO8IM8A=", + "lastModified": 1776608502, + "narHash": "sha256-UH8YoQxx4hFOm6qjMdjRQNRvSejFIR/wBZ8fW1p9sME=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "ecfcdcc781f48821d83e1e2a0e30d7beca0eeb5e", + "rev": "4a293523d36dfa367e67ec304cc718ea66a8fec2", "type": "github" }, "original": { @@ -2825,11 +2825,11 @@ ] }, "locked": { - "lastModified": 1777356688, - "narHash": "sha256-fOhJpz7QAkBWAAih72CmnIfIN0pHfuZjhZQ/hBLNWxo=", + "lastModified": 1777084302, + "narHash": "sha256-qHE5XpgtRedzND5xzaqzbSOw4amse0aA4/BaVI4ONcU=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "b3c972b3d8537a9cf7a0db96b164c9c3e580884a", + "rev": "f6bab88f8566ddc13fb5e5500bd6c720b61d5321", "type": "github" }, "original": { diff --git a/hosts/skadi/configuration.nix b/hosts/skadi/configuration.nix index 1d8c3c6..1d690a8 100644 --- a/hosts/skadi/configuration.nix +++ b/hosts/skadi/configuration.nix @@ -105,9 +105,6 @@ # Enable bpftune for better networking services.bpftune.enable = true; - # Setup vial udev rule - hardware.keyboard.qmk.enable = true; - # Set your time zone. time.timeZone = "Europe/Zagreb"; @@ -201,9 +198,8 @@ libva-utils alsa-utils ddcutil - vial ]; # DO NOT CHANGE - system.stateVersion = "24.11"; + system.stateVersion = "26.05"; } diff --git a/modules/linux/home-manager/emulators.nix b/modules/linux/home-manager/emulators.nix index 74425de..727b8c1 100644 --- a/modules/linux/home-manager/emulators.nix +++ b/modules/linux/home-manager/emulators.nix @@ -25,7 +25,7 @@ rpcs3 # mame-tools # steam-rom-manager - # shadps4 # flatpak version just works + shadps4 ]; }; } diff --git a/modules/linux/home-manager/flatpak.nix b/modules/linux/home-manager/flatpak.nix index d6889da..9181945 100644 --- a/modules/linux/home-manager/flatpak.nix +++ b/modules/linux/home-manager/flatpak.nix @@ -20,7 +20,6 @@ "com.github.tchx84.Flatseal" "com.stremio.Stremio" "org.raspberrypi.rpi-imager" - "net.shadps4.shadPS4" ]; update.auto = { diff --git a/modules/linux/home-manager/pipewire.nix b/modules/linux/home-manager/pipewire.nix index af22eed..41065db 100644 --- a/modules/linux/home-manager/pipewire.nix +++ b/modules/linux/home-manager/pipewire.nix @@ -11,47 +11,47 @@ in { }; config = lib.mkIf config.crony.pipewire.enable { - # xdg.configFile."pipewire/pipewire.conf.d/99-rnnoise.conf" = { - # text = builtins.toJSON { - # "context.modules" = [ - # { - # name = "libpipewire-module-filter-chain"; - # args = { - # "node.description" = "Noise Canceling source"; - # "media.name" = "Noise Canceling source"; - # - # "filter.graph" = { - # nodes = [ - # { - # type = "ladspa"; - # name = "rnnoise"; - # plugin = "${rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so"; - # label = "noise_suppressor_stereo"; - # control = { - # "VAD Threshold (%)" = 80.0; - # "VAD Grace Period (ms)" = 200; - # "Retroactive VAD Grace (ms)" = 0; - # }; - # } - # ]; - # }; - # - # "capture.props" = { - # "node.name" = "capture.rnnoise_source"; - # "node.passive" = true; - # "audio.rate" = 48000; - # }; - # - # "playback.props" = { - # "node.name" = "rnnoise_source"; - # "media.class" = "Audio/Source"; - # "audio.rate" = 48000; - # }; - # }; - # } - # ]; - # }; - # }; + xdg.configFile."pipewire/pipewire.conf.d/99-rnnoise.conf" = { + text = builtins.toJSON { + "context.modules" = [ + { + name = "libpipewire-module-filter-chain"; + args = { + "node.description" = "Noise Canceling source"; + "media.name" = "Noise Canceling source"; + + "filter.graph" = { + nodes = [ + { + type = "ladspa"; + name = "rnnoise"; + plugin = "${rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so"; + label = "noise_suppressor_stereo"; + control = { + "VAD Threshold (%)" = 80.0; + "VAD Grace Period (ms)" = 200; + "Retroactive VAD Grace (ms)" = 0; + }; + } + ]; + }; + + "capture.props" = { + "node.name" = "capture.rnnoise_source"; + "node.passive" = true; + "audio.rate" = 48000; + }; + + "playback.props" = { + "node.name" = "rnnoise_source"; + "media.class" = "Audio/Source"; + "audio.rate" = 48000; + }; + }; + } + ]; + }; + }; xdg.configFile."pipewire/filter-chain.conf.d/sink-eq6.conf" = { text = builtins.toJSON { diff --git a/modules/linux/nixos/default.nix b/modules/linux/nixos/default.nix index 111d683..b01a4c5 100644 --- a/modules/linux/nixos/default.nix +++ b/modules/linux/nixos/default.nix @@ -63,7 +63,7 @@ crony.oom.enable = lib.mkDefault true; crony.boot.enable = lib.mkDefault false; crony.kanata.enable = lib.mkDefault false; - crony.keyd.enable = lib.mkDefault false; + crony.keyd.enable = lib.mkDefault true; crony.localsend.enable = lib.mkDefault false; crony.flatpak.enable = lib.mkDefault false; crony.pc-services.enable = lib.mkDefault false; diff --git a/modules/linux/nixos/gaming.nix b/modules/linux/nixos/gaming.nix index c415a12..0e08b6e 100644 --- a/modules/linux/nixos/gaming.nix +++ b/modules/linux/nixos/gaming.nix @@ -24,23 +24,23 @@ }; # Install gamemode - # programs.gamemode = { - # enable = true; - # enableRenice = true; - # settings = { - # general = { - # softrealtime = "auto"; - # renice = 10; - # }; - # cpu = { - # pin_cores = "no"; - # }; - # custom = { - # start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'"; - # end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'"; - # }; - # }; - # }; + programs.gamemode = { + enable = true; + enableRenice = true; + settings = { + general = { + softrealtime = "auto"; + renice = 10; + }; + cpu = { + pin_cores = "no"; + }; + custom = { + start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'"; + end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'"; + }; + }; + }; services.udev.extraRules = '' SUBSYSTEM=="powercap", KERNEL=="intel-rapl:0", RUN+="${pkgs.coreutils}/bin/chgrp wheel /sys/%p/energy_uj", RUN+="${pkgs.coreutils}/bin/chmod g+r /sys/%p/energy_uj"