Compare commits

..

7 commits

7 changed files with 64 additions and 32 deletions

View file

@ -172,11 +172,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1764304195, "lastModified": 1765172714,
"narHash": "sha256-bO7FN/bF6gG7TlZpKAZjO3VvfsLaPFkefeUfJJ7F/7w=", "narHash": "sha256-/cjofqGxSWpRj2XJM+Bd5VUgWDkBWSxxO//HE+zOHMY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "86ff0ef506c209bb397849706e85cc3a913cb577", "rev": "a7887340779d5e70ef68012f3823568ee59eaa30",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -214,11 +214,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1763870992, "lastModified": 1765080594,
"narHash": "sha256-NPyc76Wxmv/vAsXJ8F+/8fXECHYcv2YGSqdiSHp/F/A=", "narHash": "sha256-5t3d655GqLblE+p5xN5ntkeRfZBesN7vehOWcRcU88M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "d7423982c7a26586aa237d130b14c8b302c7a367", "rev": "4194c582d0a3f440382ee00b729ea5cc5ef59754",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -229,11 +229,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1764328224, "lastModified": 1764440730,
"narHash": "sha256-hFyF1XQd+XrRx7WZCrGJp544dykexD8Q5SrJJZpEQYg=", "narHash": "sha256-ZlJTNLUKQRANlLDomuRWLBCH5792x+6XUJ4YdFRjtO4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "d62603a997438e19182af69d3ce7be07565ecad4", "rev": "9154f4569b6cdfd3c595851a6ba51bfaa472d9f3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -261,11 +261,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1764242076, "lastModified": 1764950072,
"narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=", "narHash": "sha256-BmPWzogsG2GsXZtlT+MTcAWeDK5hkbGRZTeZNW42fwA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4", "rev": "f61125a668a320878494449750330ca58b78c557",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -293,11 +293,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1764242076, "lastModified": 1764950072,
"narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=", "narHash": "sha256-BmPWzogsG2GsXZtlT+MTcAWeDK5hkbGRZTeZNW42fwA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4", "rev": "f61125a668a320878494449750330ca58b78c557",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -348,11 +348,11 @@
"systems": "systems_5" "systems": "systems_5"
}, },
"locked": { "locked": {
"lastModified": 1763985453, "lastModified": 1765082296,
"narHash": "sha256-vUqODgLIjeyHN7DP8dVx7oH9yB/L8qcxpN//4EmMQcM=", "narHash": "sha256-EcefoixU9ht+P6QB/TfjLY9E3MdJVfeSec6G8Ges0pA=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "89cd40c646ec5b12e5c20c0e18f082e7629d4819", "rev": "ac4927ea1ec7e7ea3635a1d8b933106a596c4356",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -6,18 +6,23 @@
backups = { backups = {
localbackup = { localbackup = {
exclude = [ exclude = [
"/home/*/.cache/*" "/home/$USER/.cache"
"/home/*/.local/share/libvirt/*" "/home/$USER/.local/share/libvirt"
"/home/*/.local/share/Steam/*" "/home/$USER/.local/share/Steam"
"/home/*/.local/share/Trash/*" "/home/$USER/.local/share/Trash"
"*/venv/*" "/home/$USER/Android"
"*/.direnv/*" ".venv"
"*/Android/*" "venv"
".direnv"
".git"
]; ];
initialize = true; initialize = true;
paths = [ paths = [
"/home" "/home"
]; ];
extraBackupArgs = [
"--one-file-system"
];
repository = "s3:https://s3.filmsli.de/restic-framework"; repository = "s3:https://s3.filmsli.de/restic-framework";
pruneOpts = [ pruneOpts = [
"--keep-daily 7" "--keep-daily 7"

View file

@ -86,12 +86,16 @@
jetbrains.webstorm jetbrains.webstorm
jetbrains.goland jetbrains.goland
dirbuster dirbuster
wakatime-cli
wireshark wireshark
devenv devenv
filezilla filezilla
python3 python3
usbmuxd usbmuxd
dig
w3m
inetutils
# virtualization # virtualization
virt-manager virt-manager

View file

@ -122,7 +122,7 @@ spawn-at-startup "firefox"
switch-events { switch-events {
lid-close { lid-close {
spawn "systemctl hybrid-sleep"; spawn "systemctl suspend-then-hibernate";
} }
} }

View file

@ -1,16 +1,26 @@
{ pkgs, ... }: { { pkgs, ... }:
{
services.swayidle = { services.swayidle = {
enable = true; enable = true;
systemdTarget = "graphical-session.target"; systemdTarget = "graphical-session.target";
events = [ events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock -fF"; } {
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -fF";
}
]; ];
timeouts = [ timeouts = [
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; } {
{ timeout = 301; command = "${pkgs.niri}/bin/niri msg action power-off-monitors && ${pkgs.systemd}/bin/systemctl hibernate"; } timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock -fF && ${pkgs.niri}/bin/niri msg action power-off-monitors";
}
{
timeout = 1800;
command = "${pkgs.systemd}/bin/systemctl suspend-then-hibernate";
}
]; ];
}; };
} }

View file

@ -45,5 +45,18 @@
}; };
}; };
services.resolved = {
enable = true;
dnsovertls = "opportunistic";
fallbackDns = [
"1.1.1.1"
"1.0.0.1"
"2606:4700:4700::1111"
"2606:4700:4700::1001"
];
};
programs.wireshark.enable = true; programs.wireshark.enable = true;
} }

View file

@ -1,6 +1,6 @@
{ {
services.logind.settings.Login = { services.logind.settings.Login = {
HandlePowerKey = "suspend"; HandlePowerKey = "suspend-then-hibernate";
}; };
services.power-profiles-daemon = { services.power-profiles-daemon = {