home: cleanup

This commit is contained in:
Guanran Wang 2024-03-26 16:49:35 +08:00
parent dd785d8825
commit 1d6adde578
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
36 changed files with 43 additions and 160 deletions

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.amberol];
}

View file

@ -1,4 +0,0 @@
{pkgs, ...}: {
# requires sudo
home.packages = [pkgs.android-tools];
}

View file

@ -1,3 +0,0 @@
{
services.batsignal.enable = true;
}

View file

@ -1,3 +0,0 @@
{
programs.bottom.enable = true;
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.cava];
}

View file

@ -1,3 +0,0 @@
{
services.cliphist.enable = true;
}

View file

@ -1,16 +1,8 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = with pkgs; [ home.packages = with pkgs; [pavucontrol];
pavucontrol
];
dconf.settings = { # remove csd window buttons
"org/gnome/desktop/wm/preferences" = { # https://github.com/localsend/localsend/blob/2457acd8a7412723b174672d174e4853dccd7d99/app/linux/my_application.cc#L45
"button-layout" = "icon,appmenu:"; # remove csd window buttons home.sessionVariables.GTK_CSD = 0;
}; dconf.settings."org/gnome/desktop/wm/preferences"."button-layout" = "icon,appmenu:";
};
home.sessionVariables = {
# https://github.com/localsend/localsend/blob/2457acd8a7412723b174672d174e4853dccd7d99/app/linux/my_application.cc#L45
GTK_CSD = 0;
};
} }

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.easyeffects];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.fd];
}

View file

@ -1,5 +0,0 @@
{pkgs, ...}: {
home.packages = [
pkgs.hyperfine
];
}

View file

@ -1,4 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.irssi];
#programs.irssi.enable = true;
}

View file

@ -1,3 +0,0 @@
{
programs.joshuto.enable = true;
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.lunar-client];
}

View file

@ -1,6 +0,0 @@
{
programs.mangohud = {
enable = true;
# TODO: add configuration, i have no idea how to display stuff with nix syntax
};
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.mousai];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.mumble];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.netease-cloud-music-gtk];
}

View file

@ -1,7 +0,0 @@
{
pkgs,
inputs,
...
}: {
home.packages = [inputs.nix-gaming.packages.${pkgs.stdenv.hostPlatform.system}.osu-lazer-bin];
}

View file

@ -1,12 +0,0 @@
{
pkgs,
inputs,
config,
...
}: {
home.packages = [
(inputs.nix-gaming.packages.${pkgs.stdenv.hostPlatform.system}.osu-stable.override {
location = "${config.xdg.dataHome}/osu-stable";
})
];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [(pkgs.prismlauncher.override {glfw = pkgs.glfw-wayland-minecraft;})];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.protonup-qt];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.qbittorrent];
}

View file

@ -1,3 +0,0 @@
{
programs.ripgrep.enable = true;
}

View file

@ -1,10 +0,0 @@
{pkgs, ...}: {
home.packages = [
pkgs.steam
# with ProtonGE
# (pkgs.steam.override {
# extraProfile = "export STEAM_EXTRA_COMPAT_TOOLS_PATHS='${inputs.nix-gaming.packages.${pkgs.stdenv.hostPlatform.system}.proton-ge}'";
# })
];
}

View file

@ -8,15 +8,16 @@
imports = [ imports = [
../common/wayland.nix ../common/wayland.nix
../common/wm.nix ../common/wm.nix
../cliphist
../i3status-rust ../i3status-rust
../mako ../mako
../rofi ../rofi
../swayidle ../swayidle
../swaylock ../swaylock
../udiskie
]; ];
services.cliphist.enable = true;
services.udiskie.enable = true;
home.sessionVariables = { home.sessionVariables = {
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3 GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
}; };

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.swww];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.trashy];
}

View file

@ -1,3 +0,0 @@
{
services.udiskie.enable = true;
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.wget];
}

View file

@ -1,3 +0,0 @@
{pkgs, ...}: {
home.packages = [pkgs.yesplaymusic];
}

View file

@ -1,3 +0,0 @@
{
programs.zoxide.enable = true;
}

View file

@ -35,22 +35,22 @@
inputs.self.homeManagerModules.default inputs.self.homeManagerModules.default
inputs.nur.hmModules.nur inputs.nur.hmModules.nur
./applications/atuin
./applications/bat
./applications/eza
./applications/fastfetch
./applications/git ./applications/git
./applications/gpg ./applications/gpg
./applications/starship
./applications/eza
./applications/skim ./applications/skim
./applications/bat ./applications/starship
./applications/zoxide
./applications/ripgrep
./applications/wget
./applications/fd
./applications/atuin
./applications/zellij
./applications/fastfetch
./applications/tealdeer ./applications/tealdeer
./applications/zellij
]; ];
programs.ripgrep.enable = true;
programs.zoxide.enable = true;
home.packages = with pkgs; [fd] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs; [trashy]);
home.shellAliases = { home.shellAliases = {
".." = "cd .."; ".." = "cd ..";
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb "farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb

View file

@ -27,18 +27,17 @@
home-manager.users.guanranwang = { home-manager.users.guanranwang = {
imports = map (n: ../../home/applications/${n}) [ imports = map (n: ../../home/applications/${n}) [
"spotify/spicetify.nix" "spotify/spicetify.nix"
"amberol"
"mousai"
"thunderbird" "thunderbird"
"telegram-desktop" "telegram-desktop"
"hyperfine"
"ydict" "ydict"
"android-tools"
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
amberol
fractal fractal
gnome.gnome-calculator gnome.gnome-calculator
hyperfine
mousai
]; ];
programs.obs-studio.enable = true; programs.obs-studio.enable = true;

View file

@ -28,7 +28,7 @@
]; ];
### home-manager ### home-manager
home-manager.users.guanranwang = import ./home; home-manager.users.guanranwang = import ../../../../home;
users.mutableUsers = false; users.mutableUsers = false;
home-manager = { home-manager = {

View file

@ -1,6 +0,0 @@
{...}: {
imports = [
../../../../../home
../../../../../home/applications/trashy
];
}

View file

@ -1,12 +1,23 @@
{...}: { {
imports = map (n: ../../../../../../home/applications/${n}) [ pkgs,
"steam" inputs,
"prismlauncher" ...
"osu-lazer" }: let
#"osu-stable" gamePkgs = inputs.nix-gaming.packages.${pkgs.stdenv.hostPlatform.system};
"mangohud" in {
programs.mangohud.enable = true;
# VOIP home.packages = with pkgs;
"mumble" [
]; (prismlauncher.override {glfw = glfw-wayland-minecraft;})
mumble
steam
# (pkgs.steam.override {extraProfile = "export STEAM_EXTRA_COMPAT_TOOLS_PATHS='${gamePkgs.proton-ge}'";})
# lunar-client
# protonup-qt
]
++ (with gamePkgs; [
osu-lazer-bin
# (osu-stable.override {location = "${config.xdg.dataHome}/osu-stable";})
]);
} }