home: cleanup

This commit is contained in:
Guanran Wang 2024-08-31 04:01:43 +08:00
parent 737b2cad33
commit def36f2ab3
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
3 changed files with 14 additions and 50 deletions

View file

@ -6,14 +6,6 @@
... ...
}: }:
{ {
imports = [
../i3status-rust
../kanshi
../mako
../swayidle
../swaylock
];
home.packages = with pkgs; [ home.packages = with pkgs; [
wl-clipboard wl-clipboard
pwvucontrol pwvucontrol

View file

@ -1,14 +1,9 @@
{ {
pkgs,
lib, lib,
config, config,
... ...
}: }:
{ {
imports = [
../swaylock
];
services.swayidle = { services.swayidle = {
enable = true; enable = true;
timeouts = [ timeouts = [

View file

@ -1,4 +1,5 @@
{ {
lib,
pkgs, pkgs,
... ...
}: }:
@ -6,49 +7,26 @@
home = { home = {
username = "guanranwang"; username = "guanranwang";
homeDirectory = "/home/guanranwang"; homeDirectory = "/home/guanranwang";
stateVersion = "23.05"; stateVersion = "24.05";
}; };
imports = imports = [
[
./theme.nix ./theme.nix
./xdg-mime.nix ./xdg-mime.nix
] ] ++ lib.filter (x: lib.hasSuffix "default.nix" x) (lib.fileset.toList ./applications);
++ map (n: ./applications/${n}) [
"atuin"
"bash"
"bat"
"eza"
"fcitx5"
"firefox"
"fish"
"foot"
"git"
"go"
"gpg"
"mpv"
"nautilus"
"neovim"
"nix"
"ssh"
"starship"
"sway"
"tealdeer"
"thunderbird"
"tmux"
"ydict"
];
programs.jq.enable = true; programs = {
programs.obs-studio.enable = true; jq.enable = true;
programs.ripgrep.enable = true; obs-studio.enable = true;
programs.skim.enable = true; ripgrep.enable = true;
programs.zoxide.enable = true; skim.enable = true;
zoxide.enable = true;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
dconf-editor
fastfetch fastfetch
fd fd
dconf-editor
file-roller file-roller
fractal fractal
gnome-calculator gnome-calculator
@ -56,5 +34,4 @@
loupe loupe
seahorse seahorse
]; ];
} }