feat(jeeves)!: spring updating

More `wireguard` peers
`nano` -> `neovim` for default available editor
`samba` better names + symlink support
More `opengl` packages for `Jellyfin`
Add `home-assistant` (no config yet)
This commit is contained in:
reo101 2024-03-17 23:43:11 +02:00
parent 36e14ad3f6
commit ee98e1582c
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
7 changed files with 63 additions and 3 deletions

View file

@ -10,6 +10,7 @@
./wireguard.nix ./wireguard.nix
./jellyfin.nix ./jellyfin.nix
./mindustry.nix ./mindustry.nix
./home-assistant.nix
./samba.nix ./samba.nix
]; ];

View file

@ -0,0 +1,24 @@
{ inputs, outputs, lib, pkgs, config, ... }:
{
environment.systemPackages = with pkgs; [
];
nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1w"
];
services.home-assistant = {
enable = true;
extraComponents = [
# Components required to complete the onboarding
"esphome"
"met"
"radio_browser"
];
config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/default_config/
default_config = {};
};
};
}

View file

@ -8,6 +8,11 @@
127.0.0.1 jeeves 127.0.0.1 jeeves
''; '';
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
libva1
];
services = { services = {
transmission = { transmission = {
enable = true; enable = true;

View file

@ -3,6 +3,8 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
]; ];
# networking.nftables.enable = true;
age.secrets."home.wifi.env" = { age.secrets."home.wifi.env" = {
rekeyFile = "${inputs.self}/secrets/home/wifi/env.age"; rekeyFile = "${inputs.self}/secrets/home/wifi/env.age";
}; };
@ -31,6 +33,7 @@
networks."10-eth0" = { networks."10-eth0" = {
matchConfig.Name = "eth0"; matchConfig.Name = "eth0";
networkConfig.DHCP = "yes"; networkConfig.DHCP = "yes";
networkConfig.DHCPServer = "yes";
}; };
links."10-eth0" = { links."10-eth0" = {
matchConfig.PermanentMACAddress = "04:7c:16:80:3c:2c"; matchConfig.PermanentMACAddress = "04:7c:16:80:3c:2c";

View file

@ -19,8 +19,8 @@
extraConfig = '' extraConfig = ''
# Files # Files
workgroup = WORKGROUP workgroup = WORKGROUP
server string = smbnix server string = Jeeves
netbios name = smbnix netbios name = jeeves
security = user security = user
#use sendfile = yes #use sendfile = yes
#max protocol = smb2 #max protocol = smb2
@ -30,6 +30,9 @@
guest account = nobody guest account = nobody
map to guest = bad user map to guest = bad user
# Symlinks
allow insecure wide links = yes
# Printers # Printers
load printers = yes load printers = yes
printing = cups printing = cups
@ -55,6 +58,8 @@
"directory mask" = "0755"; "directory mask" = "0755";
"force user" = "jeeves"; "force user" = "jeeves";
"force group" = "users"; "force group" = "users";
"follow symlinks" = "yes";
"wide links" = "yes";
}; };
}; };
}; };

View file

@ -53,7 +53,6 @@
PublicKey = "+x4cKc16KxhW/M3wv64FU1J0AkiLyXT5Oar6I1n1xk4="; PublicKey = "+x4cKc16KxhW/M3wv64FU1J0AkiLyXT5Oar6I1n1xk4=";
AllowedIPs = [ AllowedIPs = [
"10.100.0.3/32" "10.100.0.3/32"
"192.168.1.123/32"
"0.0.0.0/0" "0.0.0.0/0"
]; ];
}; };
@ -71,6 +70,20 @@
"0.0.0.0/0" "0.0.0.0/0"
]; ];
}; };
a41 = {
PublicKey = "/YEBfjDO+CfmYOKg9pO//ZAZQNutAS5z/Ggt2pX2gn0=";
AllowedIPs = [
"10.100.0.6/32"
"0.0.0.0/0"
];
};
t410 = {
PublicKey = "YSTgtHXcvbCwYrnBCNujsTkLy+umVZWLGECtV88NIW0=";
AllowedIPs = [
"10.100.0.7/32"
"0.0.0.0/0"
];
};
}; };
}; };
}; };

View file

@ -0,0 +1,9 @@
{ lib, pkgs, config, ... }:
with lib;
let
in
{
programs.nano.enable = false;
programs.neovim.enable = true;
}