chore: comment out sops stuff - for now
This commit is contained in:
parent
3d5554a8bf
commit
6f7b69d96d
11 changed files with 152 additions and 31 deletions
40
home-manager/backup.nix
Normal file
40
home-manager/backup.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
# };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue