home: sorting

This commit is contained in:
Guanran Wang 2023-11-30 02:38:05 +08:00
parent 81ebafa0df
commit eb713cc12e
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
65 changed files with 118 additions and 74 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
home.packages = [pkgs.ydict];
home.shellAliases = {
"yd" = "ydict -c";
};
}

View file

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

View file

@ -1,6 +0,0 @@
{pkgs, ...}: {
imports = [../resources/common];
home.packages = with pkgs; [
trashy
];
}

View file

@ -1,3 +0,0 @@
{...}: {
imports = [../resources/fancy-stuff];
}

View file

@ -1,14 +0,0 @@
{pkgs, ...}: {
home.shellAliases = {
"yd" = "ydict -c";
};
home.packages = with pkgs; [
### Fancy stuff
fastfetch
freshfetch
ydict
yt-dlp
aria2
android-tools
];
}

View file

@ -25,6 +25,6 @@
programs.home-manager.enable = true; programs.home-manager.enable = true;
imports = [ imports = [
./modules ../../modules
]; ];
} }

View file

@ -4,7 +4,7 @@
lib, lib,
... ...
}: { }: {
imports = map (n: ../../../../home-manager/applications/${n}) [ imports = map (n: ../../../../applications/${n}) [
# Terminal # Terminal
"alacritty" "alacritty"

View file

@ -9,7 +9,7 @@
./theme.nix ./theme.nix
./xdg-mime.nix ./xdg-mime.nix
] ]
++ map (n: ../../../../home-manager/applications/${n}) [ ++ map (n: ../../../../applications/${n}) [
# Terminal # Terminal
"alacritty" "alacritty"
@ -33,7 +33,7 @@
# Media # Media
"loupe" "loupe"
"mpv" "mpv"
"spotify/spicetify" "spotify/spicetify.nix"
"amberol" "amberol"
"mousai" "mousai"

View file

@ -1,10 +1,21 @@
{pkgs, ...}: { {...}: {
imports = [ imports = [
../../../../applications/git ../../../../applications/git
../../../../applications/starship ../../../../applications/starship
../../../../applications/eza ../../../../applications/eza
../../../../applications/skim ../../../../applications/skim
../../../../applications/bat ../../../../applications/bat
../../../../applications/bottom
../../../../applications/zoxide
../../../../applications/ripgrep
../../../../applications/wget
../../../../applications/fd
../../../../applications/hyperfine
../../../../applications/ydict
../../../../applications/fastfetch
../../../../applications/android-tools
../../../../applications/tealdeer
]; ];
home.shellAliases = { home.shellAliases = {
@ -15,19 +26,6 @@
"setproxy" = let "setproxy" = let
proxy = "http://127.0.0.1:7890/"; proxy = "http://127.0.0.1:7890/";
in "export http_proxy=${proxy} https_proxy=${proxy} ftp_proxy=${proxy} rsync_proxy=${proxy}"; in "export http_proxy=${proxy} https_proxy=${proxy} ftp_proxy=${proxy} rsync_proxy=${proxy}";
"unsetproxy" = "set -e http_proxy https_proxy all_proxy"; # fish syntax (?) "unsetproxy" = "set -e http_proxy https_proxy all_proxy";
};
home.packages = with pkgs; [
wget
fd
hyperfine
];
programs = {
tealdeer.enable = true;
zoxide.enable = true;
bottom.enable = true;
joshuto.enable = true;
ripgrep.enable = true;
}; };
} }

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [../resources/common]; imports = [../common];
home.packages = with pkgs; [ home.packages = with pkgs; [
### Outdated macOS components ### Outdated macOS components
coreutils coreutils

View file

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

View file

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

View file

@ -1,17 +0,0 @@
{pkgs, ...}: {
home.packages = with pkgs; [
### Games
steam
osu-lazer-bin
prismlauncher
#lunar-client
### Tools
protonup-qt
];
programs.mangohud = {
enable = true;
# TODO: add configuration, i have no idea how to display stuff with nix syntax
};
}

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
../../../../applications/prismlauncher
];
}

View file

@ -0,0 +1,9 @@
{...}: {
imports = [
../../../../applications/steam
../../../../applications/prismlauncher
../../../../applications/osu-lazer
../../../../applications/mangohud
../../../../applications/protonup-qt
];
}

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
../../../../applications/qbittorrent
];
}

View file

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

View file

@ -50,7 +50,7 @@
### home-manager ### home-manager
home-manager.users.guanranwang.imports = map (n: ../../../home-manager/${n}) [ home-manager.users.guanranwang.imports = map (n: ../../../home-manager/${n}) [
"default.nix" "profiles/core"
"profiles/command-line/nixos" "profiles/device-type/non-graphical/nixos"
]; ];
} }

View file

@ -18,8 +18,8 @@
### home-manager ### home-manager
home-manager.users.guanranwang.imports = map (n: ../../../../home-manager/${n}) [ home-manager.users.guanranwang.imports = map (n: ../../../../home-manager/${n}) [
"profiles/command-line/nixos/fancy-stuff.nix" "profiles/device-type/non-graphical/nixos"
"profiles/graphical-stuff/nixos" "profiles/device-type/graphical/nixos"
]; ];
fonts.enableDefaultPackages = false; fonts.enableDefaultPackages = false;

View file

@ -1,5 +1,5 @@
{...}: { {...}: {
home-manager.users.guanranwang.imports = [ home-manager.users.guanranwang.imports = [
../../../home-manager/profiles/gaming/nixos ../../../home-manager/profiles/opt-in/gaming/nixos
]; ];
} }

View file

@ -1,5 +1,5 @@
{...}: { {...}: {
home-manager.users.guanranwang.imports = [ home-manager.users.guanranwang.imports = [
../../../home-manager/profiles/torrenting/nixos ../../../home-manager/profiles/opt-in/torrenting/nixos
]; ];
} }