install attic client for my user

pull/58/head
Tudor Roman 2024-01-28 15:22:15 +01:00
parent 4dc0a6e413
commit e0e4820de2
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, flake, ... }:
{ config, pkgs, lib, flake, ... }:
let
cfg = config.homeModules.tools.nix;
in
@ -6,10 +6,17 @@ with lib; {
options = {
homeModules.tools.nix = {
enable = mkEnableOption "Nix user settings";
installAttic = mkEnableOption "Install attic client";
};
};
config = mkIf cfg.enable {
nix.registry.stable.flake = flake.inputs.nixpkgs;
nixpkgs.overlays = mkIf cfg.installAttic [
flake.inputs.attic.overlays.default
];
home.packages = with pkgs; mkIf cfg.installAttic [
attic
];
};
}

View File

@ -24,6 +24,7 @@ in {
homeModules = {
tools = {
nix.installAttic = true;
git.opCommitSign = true;
};
shell.starship.enable = true;