diff --git a/configuration.nix b/configuration.nix index a1cb241..191f63a 100755 --- a/configuration.nix +++ b/configuration.nix @@ -148,15 +148,17 @@ zip xz unzip + pinentry ]; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + }; + services.pcscd.enable = true; # List services that you want to enable: diff --git a/flake.lock b/flake.lock index c029846..ddd63e2 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,23 @@ { "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -37,6 +55,22 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1750365781, + "narHash": "sha256-XE/lFNhz5lsriMm/yjXkvSZz5DfvKJLUjsS6pP8EC50=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "08f22084e6085d19bcfb4be30d1ca76ecb96fe54", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "plasma-manager": { "inputs": { "home-manager": [ @@ -64,7 +98,64 @@ "inputs": { "home-manager": "home-manager", "nixpkgs": "nixpkgs", - "plasma-manager": "plasma-manager" + "plasma-manager": "plasma-manager", + "sopswarden": "sopswarden" + } + }, + "sops-nix": { + "inputs": { + "nixpkgs": [ + "sopswarden", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1750119275, + "narHash": "sha256-Rr7Pooz9zQbhdVxux16h7URa6mA80Pb/G07T4lHvh0M=", + "owner": "Mic92", + "repo": "sops-nix", + "rev": "77c423a03b9b2b79709ea2cb63336312e78b72e2", + "type": "github" + }, + "original": { + "owner": "Mic92", + "repo": "sops-nix", + "type": "github" + } + }, + "sopswarden": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs_2", + "sops-nix": "sops-nix" + }, + "locked": { + "lastModified": 1752774858, + "narHash": "sha256-hA4WtNFxYUovbV//vxZIGu6I4kXhhOxA6138y9gHee4=", + "owner": "pfassina", + "repo": "sopswarden", + "rev": "01ff4cbfb96e4aa1f2c70761e3254d0c853b6031", + "type": "github" + }, + "original": { + "owner": "pfassina", + "repo": "sopswarden", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" } } }, diff --git a/flake.nix b/flake.nix index d558ac2..52dec10 100755 --- a/flake.nix +++ b/flake.nix @@ -12,9 +12,10 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.home-manager.follows = "home-manager"; }; + sopswarden.url = "github:pfassina/sopswarden"; }; - outputs = { self, nixpkgs, home-manager, plasma-manager, ... }@inputs: { + outputs = { self, nixpkgs, home-manager, plasma-manager, sopswarden, ... }@inputs: { nixosConfigurations = { Felix-Desktop = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -26,6 +27,12 @@ home-manager.users.felix = import ./home.nix; home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ]; } + sopswarden.nixosModules.default{ + services.sopswarden = { + enable = true; + secrets = {}; + }; + } ]; }; }; diff --git a/home.nix b/home.nix index e768c93..9fb156c 100755 --- a/home.nix +++ b/home.nix @@ -28,6 +28,7 @@ home.packages = with pkgs; [ # nix related nix-output-monitor + bitwarden-desktop ] ++ (with pkgs.kdePackages; [ kcalc kmail