Skip to content

Commit

Permalink
feat(jeeves)!: spring updating
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
reo101 committed Mar 17, 2024
1 parent 36e14ad commit ee98e15
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 3 deletions.
1 change: 1 addition & 0 deletions machines/nixos/x86_64-linux/jeeves/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
./wireguard.nix
./jellyfin.nix
./mindustry.nix
./home-assistant.nix
./samba.nix
];

Expand Down
24 changes: 24 additions & 0 deletions machines/nixos/x86_64-linux/jeeves/home-assistant.nix
Original file line number Diff line number Diff line change
@@ -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 = {};
};
};
}
5 changes: 5 additions & 0 deletions machines/nixos/x86_64-linux/jeeves/jellyfin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
127.0.0.1 jeeves
'';

hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
libva1
];

services = {
transmission = {
enable = true;
Expand Down
3 changes: 3 additions & 0 deletions machines/nixos/x86_64-linux/jeeves/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
environment.systemPackages = with pkgs; [
];

# networking.nftables.enable = true;

age.secrets."home.wifi.env" = {
rekeyFile = "${inputs.self}/secrets/home/wifi/env.age";
};
Expand Down Expand Up @@ -31,6 +33,7 @@
networks."10-eth0" = {
matchConfig.Name = "eth0";
networkConfig.DHCP = "yes";
networkConfig.DHCPServer = "yes";
};
links."10-eth0" = {
matchConfig.PermanentMACAddress = "04:7c:16:80:3c:2c";
Expand Down
9 changes: 7 additions & 2 deletions machines/nixos/x86_64-linux/jeeves/samba.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
extraConfig = ''
# Files
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
server string = Jeeves
netbios name = jeeves
security = user
#use sendfile = yes
#max protocol = smb2
Expand All @@ -30,6 +30,9 @@
guest account = nobody
map to guest = bad user
# Symlinks
allow insecure wide links = yes
# Printers
load printers = yes
printing = cups
Expand All @@ -55,6 +58,8 @@
"directory mask" = "0755";
"force user" = "jeeves";
"force group" = "users";
"follow symlinks" = "yes";
"wide links" = "yes";
};
};
};
Expand Down
15 changes: 14 additions & 1 deletion machines/nixos/x86_64-linux/jeeves/wireguard.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
PublicKey = "+x4cKc16KxhW/M3wv64FU1J0AkiLyXT5Oar6I1n1xk4=";
AllowedIPs = [
"10.100.0.3/32"
"192.168.1.123/32"
"0.0.0.0/0"
];
};
Expand All @@ -71,6 +70,20 @@
"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"
];
};
};
};
};
Expand Down
9 changes: 9 additions & 0 deletions modules/nixos/default-editor/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ lib, pkgs, config, ... }:

with lib;
let
in
{
programs.nano.enable = false;
programs.neovim.enable = true;
}

0 comments on commit ee98e15

Please sign in to comment.