laptop config changes, create backups for laptop

This commit is contained in:
insert 2024-07-16 09:30:57 -04:00
parent 71c8ab1178
commit 85ca624a2c
Signed by: insert
GPG key ID: A70775C389ACF105
2 changed files with 56 additions and 3 deletions

View file

@ -303,8 +303,6 @@
systemd.user.services.waybar.enable = false; systemd.user.services.waybar.enable = false;
xdg.portal.wlr.settings = { xdg.portal.wlr.settings = {
screencast = { screencast = {
output_name = "HDMI-A-1";
max_fps = 30;
chooser_type = "simple"; chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or"; chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or";
}; };

View file

@ -1,6 +1,6 @@
{ inputs, config, lib, pkgs, ... }: { inputs, config, lib, pkgs, ... }:
{ {
networking.hostName = "insertlaptop"; networking.hostName = "insertlaptop";
environment.systemPackages = [ environment.systemPackages = [
pkgs.acpi pkgs.acpi
@ -11,6 +11,61 @@
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true; hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true; services.blueman.enable = true;
services.borgbackup.jobs.insertlaptop = {
paths = "/home/insert";
encryption.mode = "repokey-blake2";
encryption.passCommand = "cat ${config.age.secrets.borg.path}";
compression = "auto,zstd";
prune.keep = {
daily = 10;
weekly = 4;
monthly = 2;
yearly = 1;
};
readWritePaths = [ "/mnt/NAS-backup/insertlaptop-insert" ];
repo = "/mnt/NAS-backup/insertlaptop-insert";
user = "insert";
startAt = "daily";
doInit = true;
exclude = [
"^data.img$"
"^.Trash-100$"
"*/node.repl_history"
"*/.oldprofile"
"*/.steampath"
"*/mnt"
"*/.steampid"
"*/.zshenv"
"*/.zshrc"
"*/.android"
"*/.compose-cache"
"*/.docker"
"*/.gradle"
"*/.hyprland"
"*/.java"
"*/.kube"
"*/.minecraft-bta"
"*/.mozilla"
"*/.pki"
"*/.nix-defexpr"
"*/.nix-profile"
"*/.nv"
"*/.thunderbird"
"*/.zsh"
"*/Downloads"
"*/.cache"
"*/.var/app/*/cache"
"*/.local/share/flatpak/repo/"
"*/.local/share/Trash"
"*/.local/share/libvirt"
"*/.local/share/containers"
"*/.local/share/flatpak/overrides"
"*/.var/app/*/config/cache"
"*/.var/app/*/config"
];
};
home-manager.users.insert.wayland.windowManager.sway.config.modifier = "Mod4"; home-manager.users.insert.wayland.windowManager.sway.config.modifier = "Mod4";
home-manager.users.insert.home.file.".config/hypr/hyprland.conf" = { home-manager.users.insert.home.file.".config/hypr/hyprland.conf" = {
text = ''autogenerated = 0 # remove this line to remove the warning text = ''autogenerated = 0 # remove this line to remove the warning