···11-{ ... }: {
11+{ ... }:
22+{
23 # Since this server is on my local network, I'm also ignoring my local ip
34 services.fail2ban.ignoreIP = [ "192.168.1.94" ];
45}
···11-{ pkgs, ... }: {
11+{ pkgs, ... }:
22+{
23 services = {
34 desktopManager.plasma6.enable = true;
45 xserver.enable = true; # Without this set plasma6 will fail to start even when using wayland
+2-1
modules/machine-id.nix
···11-{ config, ... }: {
11+{ config, ... }:
22+{
23 # This needs to be world readable
34 sops.secrets."machine-id".mode = "0444";
45 environment.etc."machine-id".source = config.sops.secrets."machine-id".path;
···22# nixos-rebuild is a shellscript and inside that shellscript they create a tmpdir using mktemp.
33# This is fine, but TMPDIR environment variable isn't available at this point, so mktemp puts the
44# directory in the wrong place.
55-{ makeWrapper, nixos-rebuild, symlinkJoin }: symlinkJoin {
55+{
66+ makeWrapper,
77+ nixos-rebuild,
88+ symlinkJoin,
99+}:
1010+symlinkJoin {
611 name = "nixos-rebuild-tmpdir";
712 paths = [ nixos-rebuild ];
813 buildInputs = [ makeWrapper ];