aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configuration.nix79
-rw-r--r--flake.nix4
-rw-r--r--home.nix16
3 files changed, 74 insertions, 25 deletions
diff --git a/configuration.nix b/configuration.nix
index fd9ea5a..fd5fb06 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -12,13 +12,15 @@
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
+ kernelModules = [ "snd-seq" "snd-rawmidi" ];
+ # kernelPackages = pkgs.linuxKernel.packages.linux_6_1;
};
networking = {
hostName = "continuity";
networkmanager.enable = true;
firewall = {
- allowedTCPPorts = [ 80 443 6600 8000 18080 37889 11434 7777 ];
+ allowedTCPPorts = [ 22 80 443 6600 8000 8080 18080 37889 11434 7777 ];
};
};
@@ -47,6 +49,7 @@
open = false;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
+
pulseaudio.enable = false;
};
@@ -90,6 +93,25 @@
pulse.enable = true;
jack.enable = true;
wireplumber.enable = true;
+ extraConfig.pipewire-pulse."92-low-latency" = {
+ "context.properties" = [
+ {
+ name = "libpipewire-module-protocol-pulse";
+ args = { };
+ }
+ ];
+ "pulse.properties" = {
+ "pulse.min.req" = "32/48000";
+ "pulse.default.req" = "32/48000";
+ "pulse.max.req" = "32/48000";
+ "pulse.min.quantum" = "32/48000";
+ "pulse.max.quantum" = "32/48000";
+ };
+ "stream.properties" = {
+ "node.latency" = "32/48000";
+ "resample.quality" = 1;
+ };
+ };
};
kanata = {
@@ -163,7 +185,8 @@
openssh = {
enable = true;
settings = {
- PasswordAuthentication = false;
+ PasswordAuthentication = true;
+ AllowUsers = [ "preston" ];
PermitRootLogin = "no";
KbdInteractiveAuthentication = false;
};
@@ -246,6 +269,16 @@
};
programs = {
+ # nix-autobahn.enable = true;
+ nix-ld.enable = true;
+
+ nix-ld.libraries = with pkgs; [
+
+ # Add any missing dynamic libraries for unpackaged programs
+
+ # here, NOT in environment.systemPackages
+
+ ];
zsh.enable = true;
light.enable = true;
ssh.enableAskPassword = false;
@@ -265,6 +298,10 @@
# defaults.email = "ret2pop@gmail.com";
# };
+ pam.loginLimits = [
+ { domain = "*"; item = "nofile"; type = "-"; value = "32768"; }
+ { domain = "*"; item = "memlock"; type = "-"; value = "32768"; }
+ ];
rtkit.enable = true;
lockKernelModules = true;
@@ -290,27 +327,29 @@
linuxPackages.nvidia_x11
];
- users.users = {
- root.openssh.authorizedKeys.keys = [
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINSshvS1N/42pH9Unp3Zj4gjqs9BXoin99oaFWYHXZDJ preston@preston-arch"
- ];
-
- git = {
- isSystemUser = true;
- home = "/srv/git";
- shell = "${pkgs.git}/bin/git-shell";
- openssh.authorizedKeys.keys = [
+ users = {
+ users = {
+ root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINSshvS1N/42pH9Unp3Zj4gjqs9BXoin99oaFWYHXZDJ preston@preston-arch"
];
- };
- preston = {
- isNormalUser = true;
- description = "Preston Pan";
- extraGroups = [ "networkmanager" "wheel" "video" "docker" ];
- shell = pkgs.zsh;
- packages = [
- ];
+ git = {
+ isSystemUser = true;
+ home = "/srv/git";
+ shell = "${pkgs.git}/bin/git-shell";
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINSshvS1N/42pH9Unp3Zj4gjqs9BXoin99oaFWYHXZDJ preston@preston-arch"
+ ];
+ };
+
+ preston = {
+ isNormalUser = true;
+ description = "Preston Pan";
+ extraGroups = [ "networkmanager" "wheel" "video" "docker" "jackaudio" ];
+ shell = pkgs.zsh;
+ packages = [
+ ];
+ };
};
};
diff --git a/flake.nix b/flake.nix
index cf6925e..f6fcbd4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -27,7 +27,7 @@
system = "x86_64-linux";
specialArgs = attrs;
modules = [
- { nixpkgs.overlays = [ nur.overlay ]; }
+ { nixpkgs.overlays = [ nur.overlays.default ]; }
({ pkgs, ... }:
let
nur-no-pkgs = import nur {
@@ -57,7 +57,7 @@
system = "x86_64-linux";
specialArgs = attrs;
modules = [
- { nixpkgs.overlays = [ nur.overlay ]; }
+ { nixpkgs.overlays = [ nur.overlays.default ]; }
({ pkgs, ... }:
let
nur-no-pkgs = import nur {
diff --git a/home.nix b/home.nix
index 9577530..bd44a64 100644
--- a/home.nix
+++ b/home.nix
@@ -7,6 +7,7 @@
stateVersion = "23.11";
packages = with pkgs; [
+ alsa-utils
alsa-scarlett-gui
ardour
audacity
@@ -22,10 +23,12 @@
cowsay
croc
curl
+ cryptsetup
dmenu
electrum
ffmpeg
fira-code
+ fluidsynth
fswebcam
ghostscript
git
@@ -36,11 +39,12 @@
helvum
imagemagick
inkscape
- # kdenlive
+ kdenlive
kicad
krita
light
libnotify
+ miniserve
monero-gui
monero-cli
mpc-cli
@@ -63,12 +67,14 @@
poetry
python3
python312Packages.jedi
+ qjackctl
qsynth
qpwgraph
rsync
rust-analyzer
rustfmt
slack
+ simplex-chat-desktop
sox
swww
telegram-desktop
@@ -77,7 +83,6 @@
# typescript-language-server
typescript
tor-browser
- veracrypt
vesktop
vim
vscode-langservers-extracted
@@ -1014,6 +1019,7 @@ on-notify=exec mpv /home/preston/sounds/notification.mp3 --no-config
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
export EXTRA_CCFLAGS="-I/usr/include"
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
+ export QT_QPA_PLATFORM="wayland"
'';
localVariables = {
EDITOR = "emacsclient --create-frame --alternate-editor=vim";
@@ -1035,7 +1041,7 @@ on-notify=exec mpv /home/preston/sounds/notification.mp3 --no-config
};
loginExtra = ''
#if [ "$(tty)" = "/dev/tty1" ];then
-# exec Hyprland
+ exec Hyprland
#fi
'';
};
@@ -1212,6 +1218,8 @@ on-notify=exec mpv /home/preston/sounds/notification.mp3 --no-config
"fcitx5-remote -r"
"emacs"
"firefox"
+ "qsynth"
+ "qpwgraph"
];
env = [
"LIBVA_DRIVER_NAME,nvidia"
@@ -1235,6 +1243,8 @@ on-notify=exec mpv /home/preston/sounds/notification.mp3 --no-config
"workspace 3, ^(.*vesktop.*)$"
"workspace 3, ^(.*fluffychat.*)$"
"workspace 3, ^(.*element-desktop.*)$"
+ "workspace 4, ^(.*qsynth.*)$"
+ "workspace 4, ^(.*qpwgraph.*)$"
"workspace 5, ^(.*Monero.*)$"
"workspace 5, ^(.*electrum.*)$"
"pseudo,fcitx"