diff --git a/modules/home/git.nix b/modules/home/git.nix index 5d7040d..58c882e 100644 --- a/modules/home/git.nix +++ b/modules/home/git.nix @@ -3,7 +3,7 @@ options.myConfig.git.enable = lib.mkEnableOption ""; config = lib.mkIf config.myConfig.git.enable { - sops.secrets.github-ssh-key.path = "${config.home.homeDirectory}/.ssh/github"; + sops.secrets."github-ssh-key".path = "${config.home.homeDirectory}/.ssh/github"; programs = { git = { diff --git a/modules/system/geoclue.nix b/modules/system/geoclue.nix index b24145f..a0b21a4 100644 --- a/modules/system/geoclue.nix +++ b/modules/system/geoclue.nix @@ -4,14 +4,16 @@ config = lib.mkIf config.myConfig.geoclue.enable { sops = { - secrets.geolocation-api-key = { }; + secrets."geolocation-api-key" = { }; templates."geoclue-location-service.conf" = { owner = "geoclue"; path = "/etc/geoclue/conf.d/location-service.conf"; content = '' [wifi] - url=https://www.googleapis.com/geolocation/v1/geolocate?key=${config.sops.placeholder.geolocation-api-key} + url=https://www.googleapis.com/geolocation/v1/geolocate?key=${ + config.sops.placeholder."geolocation-api-key" + } ''; }; }; diff --git a/modules/system/tailscale.nix b/modules/system/tailscale.nix index 0107707..fea8c20 100644 --- a/modules/system/tailscale.nix +++ b/modules/system/tailscale.nix @@ -19,11 +19,11 @@ in }; config = lib.mkIf cfg.enable { - sops.secrets.tailscale-auth-key = { }; + sops.secrets."tailscale-auth-key" = { }; services.tailscale = { enable = true; - authKeyFile = config.sops.secrets.tailscale-auth-key.path; + authKeyFile = config.sops.secrets."tailscale-auth-key".path; openFirewall = true; useRoutingFeatures = if (cfg.exitNode.enable || (cfg.serve != null)) then "server" else "client"; extraUpFlags = [ "--reset=true" ]; diff --git a/users/seb/user.nix b/users/seb/user.nix index 0e8abae..80cb542 100644 --- a/users/seb/user.nix +++ b/users/seb/user.nix @@ -1,11 +1,11 @@ { config, pkgs, ... }: { - sops.secrets.seb-password.neededForUsers = true; + sops.secrets."seb-password".neededForUsers = true; users.users.seb = { isNormalUser = true; description = "Sebastian Stork"; - hashedPasswordFile = config.sops.secrets.seb-password.path; + hashedPasswordFile = config.sops.secrets."seb-password".path; shell = pkgs.zsh; extraGroups = [ "wheel"