From 9b0336a74d44ffde9c48620393bb43257c98dd63 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 18 Dec 2022 16:00:43 +0100 Subject: [PATCH] Switch to local name --- baldur/configuration.nix | 73 ---------------------------------------- flake.nix | 2 +- 2 files changed, 1 insertion(+), 74 deletions(-) diff --git a/baldur/configuration.nix b/baldur/configuration.nix index 33e3ad3..9933100 100644 --- a/baldur/configuration.nix +++ b/baldur/configuration.nix @@ -144,40 +144,6 @@ with lib; { shell = pkgs.zsh; }; - # services.snapper = { - # configs = - # let - # commonExtraConfig = '' - # ALLOW_USERS="bertof" - # TIMELINE_CREATE=yes - # TIMELINE_CLEANUP=yes - # ''; - # in - # { - # bertof_raid0 = { - # subvolume = "/mnt/raid0/bertof"; - # extraConfig = '' - # ALLOW_USERS="bertof" - # ${commonExtraConfig} - # ''; - # }; - # tiziano_raid0 = { - # subvolume = "/mnt/raid0/tiziano"; - # extraConfig = '' - # ALLOW_USERS="tiziano" - # ${commonExtraConfig} - # ''; - # }; - # condiviso_raid0 = { - # subvolume = "/mnt/raid0/condiviso"; - # extraConfig = '' - # ALLOW_USERS="bertof tiziano" - # ${commonExtraConfig} - # ''; - # }; - # }; - # }; - # systemd.packages = with pkgs; [ syncthing ]; # systemd.services = # let @@ -242,44 +208,5 @@ with lib; { # extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns''; # }; - # virtualisation = { - # docker.enable = true; - # kvmgt.enable = true; - # libvirtd.enable = true; - # podman.enable = true; - # # virtualbox.host.enable = true; - - # oci-containers.containers = { - # hass = { - # image = "ghcr.io/home-assistant/home-assistant:stable"; - # environment = { - # TZ = "Europe/Rome"; - # }; - # extraOptions = [ "--privileged" "--network=host" "--pull=always" ]; - # ports = [ "8123:8123" ]; - # volumes = [ - # "/var/lib/hass:/config" - # "/mnt/raid0/condiviso:/media" - # ]; - # }; - # }; - # }; - - security.sudo.extraConfig = '' - Defaults pwfeedback - ''; - - # nixpkgs.config.allowUnfree = true; - - # system.autoUpgrade = { - # enable = true; - # allowReboot = true; - # flags = [ - # "-I" - # "nixos-config=/home/bertof/.config/nixpkgs/nixos/loki.nix" - # "--upgrade" - # ]; - # }; - system.stateVersion = "22.11"; } diff --git a/flake.nix b/flake.nix index 2e5de58..2ff108c 100644 --- a/flake.nix +++ b/flake.nix @@ -242,7 +242,7 @@ }; baldur = { - hostname = "164.90.208.134"; + hostname = "baldur.local"; profiles.system = { user = "root"; path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.baldur;