update: nixosConfigurations: astora

This commit is contained in:
L-Nafaryus 2023-12-26 15:17:02 +05:00
parent 4d715dad8b
commit f85c503686
No known key found for this signature in database
GPG Key ID: C76D8DCD2727DBB7
4 changed files with 41 additions and 4 deletions

View File

@ -60,4 +60,11 @@ return {
require("orgmode").setup()
end,
},
{
"williamboman/mason.nvim",
config = function()
require("mason").setup({ PATH = "append" })
end
}
}

View File

@ -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 = {

View File

@ -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";

View File

@ -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;
}