From c1920e0036ef5d364526df112cc81da426a45215 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 19 Aug 2024 22:45:14 +0800 Subject: [PATCH] treewide: chores --- home/applications/atuin/default.nix | 5 ----- home/applications/nix/default.nix | 2 -- home/applications/swayidle/default.nix | 17 ++++------------- hosts/dust/default.nix | 2 ++ hosts/dust/home/default.nix | 2 -- 5 files changed, 6 insertions(+), 22 deletions(-) diff --git a/home/applications/atuin/default.nix b/home/applications/atuin/default.nix index d4a3e71..49afc05 100644 --- a/home/applications/atuin/default.nix +++ b/home/applications/atuin/default.nix @@ -12,11 +12,6 @@ ["nix" "nom" "nh" "podman" "docker" "atuin" "hugo" "adb"] # default ++ ["cargo" "go" "git" "npm" "yarn" "pnpm" "kubectl"]; - - common_prefix = - ["env"] - # default - ++ ["sudo"]; }; }; }; diff --git a/home/applications/nix/default.nix b/home/applications/nix/default.nix index 774a8b4..f1bf1c4 100644 --- a/home/applications/nix/default.nix +++ b/home/applications/nix/default.nix @@ -2,7 +2,6 @@ home.packages = with pkgs; [ alejandra colmena - comma deadnix nh nil @@ -14,7 +13,6 @@ nix-update nixfmt-rfc-style nixpkgs-review - nurl sops statix ]; diff --git a/home/applications/swayidle/default.nix b/home/applications/swayidle/default.nix index cdd83e8..2d868b8 100644 --- a/home/applications/swayidle/default.nix +++ b/home/applications/swayidle/default.nix @@ -18,30 +18,21 @@ timeout = 60 * 9; command = "${brightness} -s set 20%"; resumeCommand = "${brightness} -r"; - } # dim screen + } { timeout = 60 * 10; - command = lock; - } # lock screen - { - timeout = 60 * 20; - command = ''${pkgs.sway}/bin/swaymsg "output * power off"''; - resumeCommand = ''${pkgs.sway}/bin/swaymsg "output * power on"''; - } # turn off screen - { - timeout = 60 * 30; command = "systemctl suspend"; - } # suspend + } ]; events = [ { event = "lock"; command = lock; - } # loginctl lock-session + } { event = "before-sleep"; command = lock; - } # systemctl suspend + } ]; }; } diff --git a/hosts/dust/default.nix b/hosts/dust/default.nix index dcdd207..ede10f7 100644 --- a/hosts/dust/default.nix +++ b/hosts/dust/default.nix @@ -20,6 +20,8 @@ home-manager.users.guanranwang = import ./home; + boot.tmp.useTmpfs = true; + services.tailscale = { enable = true; openFirewall = true; diff --git a/hosts/dust/home/default.nix b/hosts/dust/home/default.nix index 6868dae..354f4b1 100644 --- a/hosts/dust/home/default.nix +++ b/hosts/dust/home/default.nix @@ -18,14 +18,12 @@ ]; home.packages = with pkgs; [ - amberol dconf-editor file-roller fractal gnome-calculator hyperfine loupe - mousai seahorse ];