feat: add sops-nix input

This commit is contained in:
Yorick Barbanneau 2024-09-25 21:38:31 +02:00
parent 5c153d3b08
commit 01092ee7ef
4 changed files with 68 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, stateVersion, hostname, username, hostConfig, ... }:
{ inputs, pkgs, lib, stateVersion, hostname, username, hostConfig, config, ... }:
{
imports = [ # Include the results of the hardware scan.
../hosts/${hostname}/hardware-configuration.nix
@ -43,6 +43,12 @@
inherit hostConfig;
inherit hostname;
};
# NixOS system-wide home-manager configuration
sharedModules = [
inputs.sops-nix.homeManagerModules.sops
];
users.${username} = {
home.stateVersion = stateVersion;
programs.home-manager.enable = true;