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"]
# default
++ ["cargo" "go" "git" "npm" "yarn" "pnpm" "kubectl"];
common_prefix =
["env"]
# default
++ ["sudo"];
};
};
};

View file

@ -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
];

View file

@ -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
}
];
};
}

View file

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

View file

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