treewide: chores

This commit is contained in:
Guanran Wang 2024-08-19 22:45:14 +08:00
parent 2c19dabe24
commit c1920e0036
5 changed files with 6 additions and 22 deletions

View file

@ -12,11 +12,6 @@
["nix" "nom" "nh" "podman" "docker" "atuin" "hugo" "adb"] ["nix" "nom" "nh" "podman" "docker" "atuin" "hugo" "adb"]
# default # default
++ ["cargo" "go" "git" "npm" "yarn" "pnpm" "kubectl"]; ++ ["cargo" "go" "git" "npm" "yarn" "pnpm" "kubectl"];
common_prefix =
["env"]
# default
++ ["sudo"];
}; };
}; };
}; };

View file

@ -2,7 +2,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
alejandra alejandra
colmena colmena
comma
deadnix deadnix
nh nh
nil nil
@ -14,7 +13,6 @@
nix-update nix-update
nixfmt-rfc-style nixfmt-rfc-style
nixpkgs-review nixpkgs-review
nurl
sops sops
statix statix
]; ];

View file

@ -18,30 +18,21 @@
timeout = 60 * 9; timeout = 60 * 9;
command = "${brightness} -s set 20%"; command = "${brightness} -s set 20%";
resumeCommand = "${brightness} -r"; resumeCommand = "${brightness} -r";
} # dim screen }
{ {
timeout = 60 * 10; 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"; command = "systemctl suspend";
} # suspend }
]; ];
events = [ events = [
{ {
event = "lock"; event = "lock";
command = lock; command = lock;
} # loginctl lock-session }
{ {
event = "before-sleep"; event = "before-sleep";
command = lock; command = lock;
} # systemctl suspend }
]; ];
}; };
} }

View file

@ -20,6 +20,8 @@
home-manager.users.guanranwang = import ./home; home-manager.users.guanranwang = import ./home;
boot.tmp.useTmpfs = true;
services.tailscale = { services.tailscale = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;

View file

@ -18,14 +18,12 @@
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
amberol
dconf-editor dconf-editor
file-roller file-roller
fractal fractal
gnome-calculator gnome-calculator
hyperfine hyperfine
loupe loupe
mousai
seahorse seahorse
]; ];