Compare commits

...

5 Commits

Author SHA1 Message Date
9bcca96597 aspi firefwall: reactivate checkReversePath
Some checks failed
Update Nix Flake / update-flake (push) Failing after 12s
2025-10-28 09:09:03 +01:00
78e219a6cb sops: do not use keyfile makes ssh keys work 2025-10-28 09:09:03 +01:00
8b958d6a56 mdns: try fixes for bug with pianonix 2025-10-28 09:09:03 +01:00
1a1aa20690 pianonix: add bluetooth, fix firefox autostart 2025-10-28 09:09:03 +01:00
54952923f3 fish: add ctrl-space shortcut for zi 2025-10-28 09:09:03 +01:00
8 changed files with 27 additions and 10 deletions

View File

@@ -47,6 +47,10 @@ with lib; {
end end
nix shell $args nix shell $args
''; '';
fish_user_key_bindings = ''
bind ctrl-space 'zi; commandline -f repaint'
bind -M insert ctrl-space 'zi; commandline -f repaint'
'';
}; };
}; };
} }

View File

@@ -52,8 +52,9 @@
# Autostart link # Autostart link
home.file = { home.file = {
# ".config/autostart/sheet-organizer.desktop".source = "${pkgs.sheet-organizer}/share/applications/sheet-organizer.desktop"; # ".config/autostart/sheet-organizer.desktop".source = "${pkgs.sheet-organizer}/share/applications/sheet-organizer.desktop";
# ".config/autostart/firefox.desktop".source = "${pkgs.firefox}/share/applications/firefox.desktop"; ".config/autostart/firefox.desktop".source = "${pkgs.firefox}/share/applications/firefox.desktop";
".config/autostart/chromium.desktop".source = "${pkgs.chromium}/share/applications/chromium.desktop"; ".config/autostart/onboard.desktop".source = "${pkgs.onboard}/share/applications/onboard.desktop";
# ".config/autostart/chromium.desktop".source = "${pkgs.chromium}/share/applications/chromium.desktop";
".config/sheet-organizer/config.toml".text = '' ".config/sheet-organizer/config.toml".text = ''
working_directory = "/home/julian/Klavier" working_directory = "/home/julian/Klavier"
''; '';

View File

@@ -29,6 +29,8 @@
networking.hostName = "aspi"; networking.hostName = "aspi";
system.stateVersion = "24.05"; system.stateVersion = "24.05";
# networking.firewall.checkReversePath = false; # Makes wg interface with all ips work
modules = { modules = {
syncthing = { syncthing = {
enable = true; enable = true;

View File

@@ -31,6 +31,10 @@
]; ];
}; };
services.resolved.enable = true; services.resolved.enable = true;
# MDNS Taken by avahi
services.resolved.extraConfig = ''
MulticastDNS=false
'';
networking.nameservers = lib.mkDefault [ networking.nameservers = lib.mkDefault [
"1.1.1.1" "1.1.1.1"

View File

@@ -13,7 +13,7 @@ in {
sshKeyPaths = map getKeyPath keys; sshKeyPaths = map getKeyPath keys;
# TODO: remove? only rely on ssh or pgp keys (e.g. ubikey like misterio is using!!!) # TODO: remove? only rely on ssh or pgp keys (e.g. ubikey like misterio is using!!!)
keyFile = "/home/julian/.config/sops/age/keys.txt"; # keyFile = "/home/julian/.config/sops/age/keys.txt";
# Generate key if none of the above worked. With this, building will still work, just without secrets # Generate key if none of the above worked. With this, building will still work, just without secrets
generateKey = false; # TODO: building should not work without secrets!? generateKey = false; # TODO: building should not work without secrets!?
}; };

View File

@@ -3,7 +3,10 @@
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns4 = true; nssmdns4 = true;
nssmdns6 = true;
publish.enable = true; publish.enable = true;
publish.addresses = true; publish.addresses = true;
ipv4 = true;
ipv6 = true;
}; };
} }

View File

@@ -31,9 +31,12 @@
# enabled by fish, disabling speeds up builds # enabled by fish, disabling speeds up builds
documentation.man.generateCaches = false; documentation.man.generateCaches = false;
networking.enableIPv6 = false; # This only leads to issues with avahi # networking.enableIPv6 = false; # This only leads to issues with avahi
# services.avahi.ipv6 = false;
hardware.raspberry-pi."4".bluetooth.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true; # bluetooth gui services.blueman.enable = true; # bluetooth gui
# raspberry pi specific # raspberry pi specific
# systemd.services.btattach = { # systemd.services.btattach = {

View File

@@ -14,12 +14,12 @@
boot.initrd.kernelModules = []; boot.initrd.kernelModules = [];
boot.kernelModules = []; boot.kernelModules = [];
boot.extraModulePackages = []; boot.extraModulePackages = [];
boot.kernelPackages = pkgs.linuxPackages_latest; # use latest linux kernel boot.kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
boot.supportedFilesystems = lib.mkForce [ # boot.supportedFilesystems = lib.mkForce [
# remove zfs, since its incompatible with latest kernel # # remove zfs, since its incompatible with latest kernel
"vfat" # "vfat"
"ext4" # "ext4"
]; # ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD"; device = "/dev/disk/by-label/NIXOS_SD";