nixos: clean up unused applications

This commit is contained in:
Guanran Wang 2024-03-01 03:17:14 +08:00
parent 147c40bb82
commit 352d1dcb30
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
7 changed files with 47 additions and 71 deletions

View file

@ -5,7 +5,7 @@
}: { }: {
programs.helix = { programs.helix = {
enable = true; enable = true;
defaultEditor = true; # defaultEditor = true;
settings = { settings = {
theme = theme =
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight") lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")

View file

@ -12,6 +12,8 @@
(pkgs.writeShellScriptBin "vim" ''nvim "$@"'') (pkgs.writeShellScriptBin "vim" ''nvim "$@"'')
]; ];
home.sessionVariables."EDITOR" = "nvim";
# TODO: couldn't make it work # TODO: couldn't make it work
#programs.neovim = { #programs.neovim = {
# enable = true; # enable = true;

View file

@ -36,18 +36,13 @@
./applications/eza ./applications/eza
./applications/skim ./applications/skim
./applications/bat ./applications/bat
./applications/bottom
./applications/zoxide ./applications/zoxide
./applications/ripgrep ./applications/ripgrep
./applications/wget ./applications/wget
./applications/fd ./applications/fd
./applications/hyperfine
./applications/atuin ./applications/atuin
./applications/zellij ./applications/zellij
./applications/ydict
./applications/fastfetch ./applications/fastfetch
./applications/android-tools
./applications/tealdeer ./applications/tealdeer
]; ];

View file

@ -1,4 +1,4 @@
{...}: { {pkgs, ...}: {
imports = [ imports = [
# OS # OS
../../nixos/profiles/laptop ../../nixos/profiles/laptop
@ -22,4 +22,28 @@
enable = true; enable = true;
openFirewall = true; openFirewall = true;
}; };
# Stuff that I only want on my main machine
home-manager.users.guanranwang = {
imports = map (n: ../../home/applications/${n}) [
"spotify/spicetify.nix"
"amberol"
"mousai"
"thunderbird"
"telegram-desktop"
"hyperfine"
"ydict"
"android-tools"
];
home.packages = with pkgs; [
fractal
gnome.gnome-calculator
];
programs.obs-studio.enable = true;
};
# for udev rules
programs.adb.enable = true;
} }

View file

@ -1,11 +1,10 @@
{...}: { {pkgs, ...}: {
imports = imports =
[ [
./fonts ./fonts
./scripts ./scripts
./wallpapers ./wallpapers
./packages.nix
./theme.nix ./theme.nix
./xdg-mime.nix ./xdg-mime.nix
] ]
@ -18,14 +17,14 @@
"bash" "bash"
# Editor # Editor
"helix"
"neovim" "neovim"
"vscode" # "helix"
# "vscode"
# Browser # Browser
"chromium"
#"librewolf"
"firefox" "firefox"
# "chromium"
# "librewolf"
# Language # Language
"nix" "nix"
@ -34,20 +33,13 @@
# Media # Media
"loupe" "loupe"
"mpv" "mpv"
"spotify/spicetify.nix"
"amberol"
"mousai"
# WM # WM
"sway" "sway"
# Misc # Misc
"thunderbird"
"telegram-desktop"
"nautilus" "nautilus"
"fcitx5" "fcitx5"
"irssi"
"mumble"
]; ];
# https://wiki.archlinux.org/title/Fish#Start_X_at_login # https://wiki.archlinux.org/title/Fish#Start_X_at_login
@ -56,4 +48,15 @@
exec sway exec sway
end end
''; '';
home.packages = with pkgs.gnome; [
seahorse
file-roller
gnome-calculator
dconf-editor
];
services = {
ssh-agent.enable = true;
};
} }

View file

@ -1,51 +0,0 @@
{pkgs, ...}: {
home.packages =
(with pkgs; [
# Messaging
### Matrix
#libsForQt5.neochat # kinda buggy with window resizing, but it works and its not electron
#nheko # wont let me login for some reason
fractal # does not work with Mozilla's SAML login
## # vvv 3 UI libraries I dislike vvv
#cinny-desktop # # Tauri
#element-desktop # # Electron
#fluffychat # # Flutter
### Misc
#discord
#qq
# Misc
#bitwarden
#gparted
#timeshift
#tuba
#piper
#gradience
#dippi
])
++ (with pkgs.gnome; [
zenity
seahorse
file-roller
gnome-weather
gnome-calculator
dconf-editor
]);
programs = {
obs-studio.enable = true;
};
services = {
ssh-agent.enable = true;
};
#programs.boxxy = {
# enable = true;
# #rules = {
# #
# #};
#};
}

View file

@ -5,5 +5,8 @@
"osu-lazer" "osu-lazer"
#"osu-stable" #"osu-stable"
"mangohud" "mangohud"
# VOIP
"mumble"
]; ];
} }