Compare commits

..

7 commits

7 changed files with 64 additions and 32 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -1,16 +1,26 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -fF";
}
];
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;
}

View file

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