Pro audio + fixes

This commit is contained in:
Filippo Berto 2021-07-19 07:57:47 +02:00
parent 1f49192ab3
commit 6bbfc7cdc0
11 changed files with 181 additions and 37 deletions

View file

@ -8,7 +8,8 @@ in
programs.alacritty = {
enable = true;
settings = {
env.TERM = "xterm-256color";
# env.TERM = "xterm-256color";
env.TERM = "alacritty";
scrolling.history = 3000;
font = {
normal.family = pkgs.rice.font.monospace.name;

View file

@ -34,11 +34,13 @@ in
${pkgs.polybar}/bin/polybar-msg cmd restart
if grep DP-1-1 <(${xrandr} --listactivemonitors); then
${xrandr} --output DP-1-1 --auto --above eDP-1-1
${xrandr} --output DP-1-1 --auto --left-of HDMI-0 --rotate right ||
${xrandr} --output DP-1-1 --auto --left-of eDP-1-1 --rotate right
elif grep DP1 <(${xrandr} --listactivemonitors); then
${xrandr} --output DP-1-1 --auto --above eDP1;
fi
systemctl --user restart polybar.service update-background.service || true
'';
startupPrograms = [];
};

View file

@ -5,15 +5,8 @@
rules = [
{
name = "Nvidia2screens";
outputs_connected = [ "eDP-1-1" "HDMI-0" ];
configure_row = [ "eDP-1-1" "HDMI-0" ];
primary = "HDMI-0";
}
{
name = "Nvidia3screens";
outputs_connected = [ "DP-1-1" "eDP-1-1" "HDMI-0" ];
configure_row = [ "eDP-1-1" "HDMI-0" ];
configure_column = [ "DP-1-1" "eDP-1-1" ];
outputs_connected = [ "HDMI-0" "eDP-1-1" ];
configure_column = [ "HDMI-0" "eDP-1-1" ];
primary = "HDMI-0";
}
{

View file

@ -134,4 +134,21 @@ in
};
xdg.configFile."kak/colors/nord.kak".source = ../configs/kak/colors/nord.kak;
xdg.configFile."kak-lsp/kak-lsp.toml".source = ../configs/kak-lsp/kak-lsp.toml;
xdg.dataFile."applications/kakoune.desktop".source =
let
desktopItem = pkgs.makeDesktopItem {
name = "kakoune";
type = "Application";
exec = "${kakCmd} %U";
icon = "kakoune";
desktopName = "Kakoune";
comment = "Kakoune text editor";
terminal = true;
categories = "Development;Office;";
mimeType = "text/plain;text/*";
};
in
builtins.toPath "${desktopItem}/share/applications/kakoune.desktop";
}

View file

@ -5,7 +5,7 @@
blur = true;
experimentalBackends = true;
fade = true;
fade = false;
shadow = true;
vSync = true;
extraOptions = ''

43
modules/pro_audio.nix Normal file
View file

@ -0,0 +1,43 @@
{ pkgs, ... }:
let
variables = {
DSSI_PATH = "$HOME/.dssi:$HOME/.nix-profile/lib/dssi:/run/current-system/sw/lib/dssi";
LADSPA_PATH = "$HOME/.ladspa:$HOME/.nix-profile/lib/ladspa:/run/current-system/sw/lib/ladspa";
LV2_PATH = "$HOME/.lv2:$HOME/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2";
LXVST_PATH = "$HOME/.lxvst:$HOME/.nix-profile/lib/lxvst:/run/current-system/sw/lib/lxvst";
VST_PATH = "$HOME/.vst:$HOME/.nix-profile/lib/vst:/run/current-system/sw/lib/vst";
VST3_PATH = "$HOME/.vst3:$HOME/.nix-profile/lib/vst3:/run/current-system/sw/lib/vst3";
};
in
{
home.packages = with pkgs; [
ardour
carla
artyFX
boops
geonkick
lsp-plugins
noise-repellent
speech-denoiser
stochas
surge
talentedhack
tunefish
x42-plugins
];
home.sessionVariables = variables;
# home.file = {
# ".lv2" = { source = ~/.nix-profile/lib/lv2; };
# # ".dssi" = { source= ~/.nix-profile/lib/dssi; };
# ".ladspa" = { source = ~/.nix-profile/lib/ladspa; };
# # ".lxvst" = { source = ~/.nix-profile/lib/lxvst; };
# ".vst" = { source = ~/.nix-profile/lib/vst; };
# ".vst3" = { source = ~/.nix-profile/lib/vst3; };
# };
}

12
modules/security.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
# WEB
postman
burpsuite
httpie
# REVERSING
ghidra-bin
];
}

View file

@ -37,6 +37,10 @@
identityFile = "~/.ssh/local";
identitiesOnly = true;
};
"*moon-cloud.eu" = {
identityFile = "~/.ssh/moon-cloud";
identitiesOnly = true;
};
"*" = {
identityFile = "~/.ssh/id_ed25519";
};