Compare commits

..

No commits in common. "b2b899b67ab0fec6c3c74a04c022582ad260a9f2" and "ec401a182c3eae5c689f4a9fce45400e651e31c1" have entirely different histories.

5 changed files with 22 additions and 43 deletions

20
flake.lock generated
View File

@ -23,11 +23,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1742376361, "lastModified": 1733861262,
"narHash": "sha256-VFMgJkp/COvkt5dnkZB4D2szVdmF6DGm5ZdVvTUy61c=", "narHash": "sha256-+jjPup/ByS0LEVIrBbt7FnGugJgLeG9oc+ivFASYn2U=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "daaae13dff0ecc692509a1332ff9003d9952d7a9", "rev": "cf737e2eba82b603f54f71b10cb8fd09d22ce3f5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,16 +38,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1742554312, "lastModified": 1716394534,
"narHash": "sha256-DJOKAFZMmFbRR12SQu/yXsgPG82fjkS0H7QvJJ82gi0=", "narHash": "sha256-R5cP4FbP/YLhkE2B1omXTZEUTOZG0tjCe4/n/yz+LwQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b393925ca6963c33dac1f65122802ffa6e06dd95", "rev": "4a817d2083d6cd7068dc55511fbf90f84653b301",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "release-24.11", "ref": "24.11-pre",
"type": "indirect" "type": "indirect"
} }
}, },
@ -66,11 +66,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1742406979, "lastModified": 1733965552,
"narHash": "sha256-r0aq70/3bmfjTP+JZs4+XV5SgmCtk1BLU4CQPWGtA7o=", "narHash": "sha256-GZ4YtqkfyTjJFVCub5yAFWsHknG1nS/zfk7MuHht4Fs=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "1770be8ad89e41f1ed5a60ce628dd10877cb3609", "rev": "2d73fc6ac4eba4b9a83d3cb8275096fbb7ab4004",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -2,7 +2,7 @@
description = "NixOS configurations for my machines"; description = "NixOS configurations for my machines";
inputs = { inputs = {
nixpkgs.url = "nixpkgs/release-24.11"; nixpkgs.url = "nixpkgs/24.11-pre";
nixos-hardware = { nixos-hardware = {
url = github:nixos/nixos-hardware; url = github:nixos/nixos-hardware;
}; };

View File

@ -7,10 +7,6 @@
./hardware-configuration-zfs.nix ./hardware-configuration-zfs.nix
]; ];
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
];
# This lets us pin the nixpkgs registry by default to the nixpkgs used to build this system. # This lets us pin the nixpkgs registry by default to the nixpkgs used to build this system.
# Doing this means we are less likely to require the 30+MB download when # Doing this means we are less likely to require the 30+MB download when
# running commands like nix search or nix run # running commands like nix search or nix run
@ -79,13 +75,11 @@
wireless = { wireless = {
enable = false; # turn of wifi until needed enable = false; # turn of wifi until needed
userControlled.enable = true; userControlled.enable = true;
#environmentFile = "/run/secrets/wifi/env"; environmentFile = "/run/secrets/wifi/env";
secretsFile = "/run/secrets/wifi/env";
networks = { networks = {
home.pskRaw = "ext:PSKRAW_HOME"; "@SSID_HOME@" = {
#"@SSID_HOME@" = { pskRaw = "@PSKRAW_HOME@";
#pskRaw = "@PSKRAW_HOME@"; };
#};
}; };
}; };
firewall = import ./firewall.nix; firewall = import ./firewall.nix;
@ -101,6 +95,9 @@
#}; #};
hardware.bluetooth.enable = false; hardware.bluetooth.enable = false;
# Enable sound.
sound.enable = false;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.jacob = { users.users.jacob = {
isNormalUser = true; isNormalUser = true;
@ -173,15 +170,6 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
openssh.enable = true; openssh.enable = true;
# This is an ollama frontend. Formerly called ollama-webui
open-webui = {
enable = true;
environment.OLLAMA_API_BASE_URL = "http://192.168.88.18:11434";
host = "cj.monster-squeaker.ts.net";
port = 8687;
stateDir = "/serverdata/open-webui";
};
pipewire = { pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
@ -197,11 +185,7 @@
syncthing = import ./syncthing.nix; syncthing = import ./syncthing.nix;
tailscale = { tailscale.enable = true;
enable = true;
extraUpFlags = "--accept-dns=false";
openFirewall = true;
};
timesyncd.enable = true; timesyncd.enable = true;

View File

@ -80,11 +80,6 @@
fsType = "zfs"; fsType = "zfs";
neededForBoot = true; neededForBoot = true;
}; };
fileSystems."/serverdata/open-webui" =
{ device = "rpool/serverdata/open-webui";
fsType = "zfs";
neededForBoot = true;
};
fileSystems."/serverdata/pihole" = fileSystems."/serverdata/pihole" =
{ device = "rpool/serverdata/pihole"; { device = "rpool/serverdata/pihole";
fsType = "zfs"; fsType = "zfs";

View File

@ -1,9 +1,9 @@
{ serverIP, serverIP6 } : { { serverIP, serverIP6 } : {
image = "pihole/pihole:2025.06.2"; image = "pihole/pihole:2024.07.0";
ports = [ ports = [
"53:53/tcp" "53:53/tcp"
"53:53/udp" "53:53/udp"
"8585:80" #"8088:80"
#"4438:443" #"4438:443"
]; ];
environment = { environment = {
@ -24,7 +24,7 @@
]; ];
extraOptions = [ extraOptions = [
#"--cap-add=NET_ADMIN" #"--cap-add=NET_ADMIN"
#"--network=host" "--network=host"
"--no-hosts" # do not populate internal /etc/hosts with container host's "--no-hosts" # do not populate internal /etc/hosts with container host's
]; ];
} }