chore: comment out sops stuff - for now

This commit is contained in:
Thiago Sposito 2025-10-12 18:53:39 -03:00
parent 3d5554a8bf
commit 6f7b69d96d
Signed by: thiago
GPG key ID: 3065EA73A976D430
11 changed files with 152 additions and 31 deletions

40
home-manager/backup.nix Normal file
View file

@ -0,0 +1,40 @@
{ config, lib, pkgs, sops, secrets, ... }:
{
# --- sops secret integration ---
sops.secrets."rclone.conf" = {
sopsFile = secrets + "/rclone.yaml";
format = "yaml";
};
# --- user service ---
systemd.user.services."rclone-backup" = {
Unit = {
Description = "Encrypted rclone backup to Google Drive";
After = [ "network-online.target" ];
};
Service = {
Type = "oneshot";
ExecStart = ''
${pkgs.rclone}/bin/rclone sync \
/home/thiago/Documents \
gcrypt:backup \
--config ${config.sops.secrets."rclone.conf".path} \
--log-file=${config.home.homeDirectory}/.local/share/rclone-backup.log \
--log-level INFO
'';
};
};
# --- timer (every 6 h) ---
systemd.user.timers."rclone-backup" = {
Unit.Description = "Periodic encrypted backup to Google Drive";
Timer = {
OnBootSec = "10m";
OnUnitActiveSec = "6h";
Persistent = true;
};
Install.WantedBy = [ "timers.target" ];
};
}

View file

@ -5,6 +5,7 @@
}:
{
imports = [
# ./backup.nix
./custom.nix
./gnome
./icons.nix
@ -130,4 +131,10 @@
systemd.user.startServices = "sd-switch";
home.stateVersion = "25.11";
# sops configuration
# sops = {
# age.keyFile = "/home/thiago/.config/sops/age/keys.txt";
# gnupg.home = "/home/thiago/.gnupg";
# };
}

View file

@ -2,16 +2,30 @@
{
home.packages = [ icons.packages.${pkgs.system}.default ];
xdg.desktopEntries.kitty = {
name = "Kitty";
exec = "kitty";
icon = "${
icons.packages.${pkgs.system}.default
}/share/icons/hicolor/scalable/apps/custom/kitty.svg";
terminal = false;
categories = [
"System"
"TerminalEmulator"
];
xdg.desktopEntries = {
kitty = {
name = "Kitty";
exec = "kitty";
icon = "${
icons.packages.${pkgs.system}.default
}/share/icons/hicolor/scalable/apps/custom/kitty.svg";
terminal = false;
categories = [
"System"
"TerminalEmulator"
];
};
xterm = {
name = "UXTerm";
exec = "uxterm";
icon = "${
icons.packages.${pkgs.system}.default
}/share/icons/hicolor/scalable/apps/custom/mini.xterm.svg";
terminal = false;
categories = [
"System"
"TerminalEmulator"
];
};
};
}