From f85c50368633a2ba92526920e8961cb91238bf19 Mon Sep 17 00:00:00 2001 From: L-Nafaryus Date: Tue, 26 Dec 2023 15:17:02 +0500 Subject: [PATCH] update: nixosConfigurations: astora --- config/nvim/lua/plugins/user.lua | 7 +++++++ nixosConfigurations/astora/default.nix | 10 +++++++--- nixosConfigurations/astora/hardware.nix | 7 +++++++ nixosConfigurations/astora/users.nix | 21 ++++++++++++++++++++- 4 files changed, 41 insertions(+), 4 deletions(-) diff --git a/config/nvim/lua/plugins/user.lua b/config/nvim/lua/plugins/user.lua index d03567e..b980cff 100644 --- a/config/nvim/lua/plugins/user.lua +++ b/config/nvim/lua/plugins/user.lua @@ -60,4 +60,11 @@ return { require("orgmode").setup() end, }, + + { + "williamboman/mason.nvim", + config = function() + require("mason").setup({ PATH = "append" }) + end + } } diff --git a/nixosConfigurations/astora/default.nix b/nixosConfigurations/astora/default.nix index 88c4740..92ae95a 100644 --- a/nixosConfigurations/astora/default.nix +++ b/nixosConfigurations/astora/default.nix @@ -64,7 +64,13 @@ startWhenNeeded = true; }; - services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ]; + services.udev = { + packages = with pkgs; [ gnome.gnome-settings-daemon ]; + extraRules = '' + KERNEL=="rtc0", GROUP="audio" + KERNEL=="hpet", GROUP="audio" + ''; + }; services.blueman.enable = true; @@ -99,8 +105,6 @@ cachix inputs.agenix.packages.${system}.default - - helix ]; programs = { diff --git a/nixosConfigurations/astora/hardware.nix b/nixosConfigurations/astora/hardware.nix index 3356c82..0c6bddd 100644 --- a/nixosConfigurations/astora/hardware.nix +++ b/nixosConfigurations/astora/hardware.nix @@ -13,6 +13,7 @@ initrd.kernelModules = [ ]; kernelModules = [ "kvm-amd" "tcp_bbr" "coretemp" "nct6775" ]; extraModulePackages = [ ]; + kernelParams = [ "threadirqs" ]; kernel.sysctl = { # The Magic SysRq key is a key combo that allows users connected to the @@ -62,6 +63,12 @@ acme.acceptTerms = true; sudo.extraConfig = ''Defaults timestamp_timeout=30''; rtkit.enable = true; + pam.loginLimits = [ + { domain = "@audio"; item = "memlock"; type = "-"; value = "unlimited"; } + { domain = "@audio"; item = "rtprio"; type = "-"; value = "99"; } + { domain = "@audio"; item = "nofile"; type = "soft"; value = "99999"; } + { domain = "@audio"; item = "nofile"; type = "hard"; value = "99999"; } + ]; }; users.users.root.initialPassword = "nixos"; diff --git a/nixosConfigurations/astora/users.nix b/nixosConfigurations/astora/users.nix index 74b0a5b..4413884 100644 --- a/nixosConfigurations/astora/users.nix +++ b/nixosConfigurations/astora/users.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { # Users users.users.nafaryus = { @@ -47,6 +47,9 @@ imagemagick blender ardour + + calf + zynaddsubfx ]; xdg.enable = true; @@ -65,4 +68,20 @@ enableSSHSupport = true; pinentryFlavor = "curses"; }; + + environment.variables = let + makePluginPath = name: (lib.makeSearchPath name [ + "/etc/profiles/per-user/$USER/lib" + "/run/current-system/sw/lib" + "$HOME/.nix-profile/lib" + ]) + ":$HOME/.${name}"; + in { + LADSPA_PATH = makePluginPath "ladspa"; + LV2_PATH = makePluginPath "lv2"; + VST_PATH = makePluginPath "vst"; + VST3_PATH = makePluginPath "vst3"; + }; + +# Services + services.spoofdpi.enable = true; }