From 6a31fd1d9e2a7544eb9933fcc6bd18feec420148 Mon Sep 17 00:00:00 2001 From: Origami404 Date: Sat, 24 Jan 2026 22:18:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20host=20=E4=B8=8A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20home-manager=20=E5=92=8C=20sops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/hosts/hypnos.nix | 2 ++ hosts/hypnos/configuration.nix | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/home/hosts/hypnos.nix b/home/hosts/hypnos.nix index 6c9c48f..4774ead 100644 --- a/home/hosts/hypnos.nix +++ b/home/hosts/hypnos.nix @@ -55,6 +55,8 @@ nixpkgs-fmt nix-index nix-tree + sops + age ] ); } diff --git a/hosts/hypnos/configuration.nix b/hosts/hypnos/configuration.nix index 994c63c..6e015de 100644 --- a/hosts/hypnos/configuration.nix +++ b/hosts/hypnos/configuration.nix @@ -20,9 +20,20 @@ useGlobalPkgs = true; useUserPackages = true; backupFileExtension = "bak"; + sharedModules = [ + inputs.sops-nix.homeManagerModules.sops + ]; + extraSpecialArgs = { + lib = import ../../home/lib/origami404.nix { + hmSource = inputs.home-manager-darwin; + npLib = inputs.nixpkgs-darwin.lib; + }; + }; users.origami = import ../../home/hosts/hypnos.nix; }; + environment.systemPackages = with pkgs; [ home-manager ]; + nixpkgs.config.allowUnfreePredicate = _: true; system.stateVersion = 5;