update, add utils and suspend on idle

This commit is contained in:
tristan 2023-09-02 14:20:28 +01:00
parent 6885594e02
commit 91b08381c0
3 changed files with 66 additions and 35 deletions

68
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1691039228, "lastModified": 1693399033,
"narHash": "sha256-iPNZJ1LvfUf1Y456ewC0DXgf99TNssG8OLObOyqxO6M=", "narHash": "sha256-yXhiMo8MnE86sGtPIHAKaLHhmhe8v9tqGGotlUgKJvY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "86dd48d70a2e2c17e84e747ba4faa92453e68d4a", "rev": "f5c15668f9842dd4d5430787d6aa8a28a07f7c10",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -25,15 +25,16 @@
"inputs": { "inputs": {
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"systems": "systems",
"wlroots": "wlroots", "wlroots": "wlroots",
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1690975298, "lastModified": 1693606917,
"narHash": "sha256-MYrsuMcQdV1wuqB0ZPrGvsGk66KjFRjaN2fI0weGH8k=", "narHash": "sha256-A6AmYGtmPQ9eqG1QGcPYbUHzWevtWUdxdptty4ol2qA=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "5c50fac907df3463492a019f01f84d547ab93650", "rev": "f69c5469d79f31f77f4662731ac6255e285febed",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -47,14 +48,18 @@
"nixpkgs": [ "nixpkgs": [
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
],
"systems": [
"hyprland",
"systems"
] ]
}, },
"locked": { "locked": {
"lastModified": 1684265364, "lastModified": 1691753796,
"narHash": "sha256-AxNnWbthsuNx73HDQr0eBxrcE3+yfl/WsaXZqUFmkpQ=", "narHash": "sha256-zOEwiWoXk3j3+EoF3ySUJmberFewWlagvewDRuWYAso=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland-protocols", "repo": "hyprland-protocols",
"rev": "8c279b9fb0f2b031427dc5ef4eab53f2ed835530", "rev": "0c2ce70625cb30aef199cb388f99e19a61a6ce03",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -65,11 +70,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1690179384, "lastModified": 1693158576,
"narHash": "sha256-+arbgqFTAtoeKtepW9wCnA0njCOyoiDFyl0Q0SBSOtE=", "narHash": "sha256-aRTTXkYvhXosGx535iAFUaoFboUrZSYb1Ooih/auGp0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b12803b6d90e2e583429bb79b859ca53c348b39a", "rev": "a999c1cc0c9eb2095729d5aa03e0d8f7ed256780",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -81,11 +86,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1691006197, "lastModified": 1693471703,
"narHash": "sha256-DbtxVWPt+ZP5W0Usg7jAyTomIM//c3Jtfa59Ht7AV8s=", "narHash": "sha256-0l03ZBL8P1P6z8MaSDS/MvuU8E75rVxe5eE1N6gxeTo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "66aedfd010204949cb225cf749be08cb13ce1813", "rev": "3e52e76b70d5508f3cec70b882a29199f4d1ee85",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -101,22 +106,37 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }
}, },
"systems": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"wlroots": { "wlroots": {
"flake": false, "flake": false,
"locked": { "locked": {
"host": "gitlab.freedesktop.org", "host": "gitlab.freedesktop.org",
"lastModified": 1690165843, "lastModified": 1692976565,
"narHash": "sha256-gv5kjss6REeQG0BmvK2gTx7jHLRdCnP25po6It6I6N8=", "narHash": "sha256-eBKkG7tMxg92NskEn8dHRFY245JwjirWRoOZzW6DnUw=",
"owner": "wlroots", "owner": "wlroots",
"repo": "wlroots", "repo": "wlroots",
"rev": "e8d545a9770a2473db32e0a0bfa757b05d2af4f3", "rev": "717ded9bb0191ea31bf4368be32e7a15fe1b8294",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
"host": "gitlab.freedesktop.org", "host": "gitlab.freedesktop.org",
"owner": "wlroots", "owner": "wlroots",
"repo": "wlroots", "repo": "wlroots",
"rev": "e8d545a9770a2473db32e0a0bfa757b05d2af4f3", "rev": "717ded9bb0191ea31bf4368be32e7a15fe1b8294",
"type": "gitlab" "type": "gitlab"
} }
}, },
@ -129,14 +149,18 @@
"nixpkgs": [ "nixpkgs": [
"hyprland", "hyprland",
"nixpkgs" "nixpkgs"
],
"systems": [
"hyprland",
"systems"
] ]
}, },
"locked": { "locked": {
"lastModified": 1685385764, "lastModified": 1691841170,
"narHash": "sha256-r+XMyOoRXq+hlfjayb+fyi9kq2JK48TrwuNIAXqlj7U=", "narHash": "sha256-RCTm1/MVWYPnReMgyp7tr2ogGYo/pvw38jZaFwemgPU=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland", "repo": "xdg-desktop-portal-hyprland",
"rev": "4d9ff0c17716936e0b5ca577a39e263633901ed1", "rev": "57a3a41ba6b358109e4fc25c6a4706b5f7d93c6b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -32,6 +32,8 @@ in
home.packages = (with pkgs; [ home.packages = (with pkgs; [
libnotify libnotify
dig dig
jq
usbutils
wl-clipboard wl-clipboard
du-dust du-dust
htop htop
@ -390,7 +392,6 @@ in
programs.qutebrowser = { programs.qutebrowser = {
enable = true; enable = true;
package = pkgs.qutebrowser-qt6;
searchEngines = { searchEngines = {
DEFAULT = "https://search.brave.com/search?q={}"; DEFAULT = "https://search.brave.com/search?q={}";
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1"; w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";

View file

@ -154,18 +154,24 @@ in
}; };
}; };
services.swayidle.enable = true; services.swayidle = {
services.swayidle.systemdTarget = "graphical-session.target"; enable = true;
services.swayidle.events = [ systemdTarget = "graphical-session.target";
{ event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; } events = [
{ event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; } { event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
]; { event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
services.swayidle.timeouts = [ ];
{ timeouts = [
timeout = 300; {
command = "${pkgs.swaylock-effects}/bin/swaylock -f"; timeout = 300;
} command = "${pkgs.swaylock-effects}/bin/swaylock -f";
]; }
{
timeout = 600;
command = "systemctl suspend";
}
];
};
services.mako = { services.mako = {
enable = true; enable = true;