From 1e73d7a66e3fbdb642d5d915f4ac5cfc1506d1b2 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sun, 28 Dec 2025 17:18:45 +0000 Subject: [PATCH] sops updates --- flake.lock | 6 +++--- hosts/doloro-laptop/home.nix | 8 +++++++- hosts/doloro-laptop/nixos.nix | 1 + 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index afc149d..11ab4e7 100644 --- a/flake.lock +++ b/flake.lock @@ -1102,11 +1102,11 @@ ] }, "locked": { - "lastModified": 1765231718, - "narHash": "sha256-qdBzo6puTgG4G2RHG0PkADg22ZnQo1JmSVFRxrD4QM4=", + "lastModified": 1766894905, + "narHash": "sha256-pn8AxxfajqyR/Dmr1wnZYdUXHgM3u6z9x0Z1Ijmz2UQ=", "owner": "Mic92", "repo": "sops-nix", - "rev": "7fd1416aba1865eddcdec5bb11339b7222c2363e", + "rev": "61b39c7b657081c2adc91b75dd3ad8a91d6f07a7", "type": "github" }, "original": { diff --git a/hosts/doloro-laptop/home.nix b/hosts/doloro-laptop/home.nix index 1698723..907c428 100644 --- a/hosts/doloro-laptop/home.nix +++ b/hosts/doloro-laptop/home.nix @@ -1,11 +1,18 @@ { inputs, config, + system, pkgs, fetchFromGitHub, ... }: { + imports = [ + inputs.sops-nix.homeManagerModules.sops + ]; + sops = { + age.keyFile = "/home/doloro/.config/sops/age/key.txt"; # must have no password! + }; modules = { Hyprland.enable = true; quickshell.enable = true; @@ -84,7 +91,6 @@ gcr qbittorrent ]; - sops.age.keyFile = "/home/doloro/.config/sops/age/key.txt"; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. diff --git a/hosts/doloro-laptop/nixos.nix b/hosts/doloro-laptop/nixos.nix index c6105ce..e630f59 100644 --- a/hosts/doloro-laptop/nixos.nix +++ b/hosts/doloro-laptop/nixos.nix @@ -90,6 +90,7 @@ in # Enable the X11 windowing system. services.xserver.enable = true; + sops.age.keyFile = "/home/doloro/.config/sops/age/key.txt"; sops = { defaultSopsFile = builtins.toPath "${nix-meow.flakeRoot}/secrets/users.yaml"; secrets = {