switch laptop config

This commit is contained in:
ParkerTenBroeck 2026-05-23 23:30:27 -04:00
parent 079b1eb5d6
commit 3a429b7fe1
10 changed files with 118 additions and 14 deletions

6
modules/arduino.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ...}: {
home-manager.users.may.home.packages = with pkgs; [
arduino
arduino-ide
];
}

11
modules/gui.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, ...}: {
home-manager.users.may.home.packages = with pkgs; [
firefox # browser
nautilus # gui file manager
alacritty # terminal
imv # image viewer
file-roller # archive manager
vscode # text editor
gnome-disk-utility
];
}

View file

@ -10,6 +10,7 @@ in {
./nwg-panel-conf.nix
# assume any desktop env will have audio
../audio.nix
../gui.nix
];
@ -80,12 +81,6 @@ in {
};
home.packages = with pkgs; [
firefox # browser
nautilus # gui file manager
alacritty # terminal
imv # image viewer
file-roller # archive manager
# notifications
libnotify
dunst

View file

@ -1,8 +1,8 @@
{
{ lib, ...}: {
time.timeZone = "America/Toronto";
i18n.defaultLocale = "en_CA.UTF-8";
services.xserver.xkb = {
services.xserver.xkb = lib.mkDefault {
layout = "us";
variant = "";
};

View file

@ -7,7 +7,6 @@
openjdk21
vlc
spotify
vscode
jetbrains.idea
obs-studio
discord

4
modules/saleae-logic.nix Normal file
View file

@ -0,0 +1,4 @@
{ pkgs, ...}: {
services.udev.packages = [ pkgs.saleae-logic-2 ];
home-manager.users.may.home.packages = [ pkgs.saleae-logic-2 ];
}

8
modules/virt.nix Normal file
View file

@ -0,0 +1,8 @@
{
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["may"];
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
}

View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
let
in
{
networking.firewall = {
# if packets are still dropped, they will show up in dmesg
logReversePathDrops = true;
# wireguard trips rpfilter up
extraCommands = ''
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN
'';
extraStopCommands = ''
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN || true
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
'';
allowedUDPPorts = [ 51820 ];
};
}