chore: lots of changes related to packages

This commit is contained in:
Ruben 2024-04-21 10:56:24 -05:00
commit 309af998f3
No known key found for this signature in database
GPG key ID: A6C94D84D2DA13EE
6 changed files with 285 additions and 301 deletions

View file

@ -14,7 +14,7 @@
isNormalUser = true;
description = "Ruben";
shell = pkgs.zsh;
extraGroups = ["wheel" "plugdev" "dialout" "libvirtd"] ++ (lib.optional config.networking.networkmanager.enable "networkmanager");
extraGroups = ["wheel" "plugdev" "dialout" "libvirtd" "podman"] ++ (lib.optional config.networking.networkmanager.enable "networkmanager");
initialHashedPassword = "changeme";
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO+V3b6oKMTLEBq8AKjdNF5ZwJGXuWTrS2u9QaEypBYP sneexy@disroot.org''];

View file

@ -21,8 +21,11 @@
# flatpaks home-manager flake
flake-inputs.flatpaks.homeManagerModules.nix-flatpak
# catppuccin home-manager flake
flake-inputs.catppuccin.homeManagerModules.catppuccin
# user packages
./packages.nix
# theme config
./themes.nix
];
home = {
@ -30,234 +33,8 @@
homeDirectory = "/home/ruben";
};
# ╭─────────────────────────────────╮
# │ __ _ _ _ │
# │ / _| |__ _| |_ _ __ __ _| |__ │
# │ | _| / _` | _| '_ \/ _` | / / │
# │ |_| |_\__,_|\__| .__/\__,_|_\_\ │
# │ |_| │
# │ flatpak │
# ╰─────────────────────────────────╯
services.flatpak.remotes = lib.mkOptionDefault [
{
name = "flathub-user";
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
}
];
services.flatpak.update.auto.enable = true;
services.flatpak.uninstallUnmanaged = true;
# flatpak user packages
services.flatpak.packages = [
"org.kde.kdenlive"
"org.kde.krita"
"org.nicotine_plus.Nicotine"
"org.kde.okteta"
"md.obsidian.Obsidian"
"io.github.martinrotter.rssguardlite"
"com.dec05eba.gpu_screen_recorder"
"org.gajim.Gajim"
"in.cinny.Cinny"
"chat.revolt.RevoltDesktop"
"dev.vencord.Vesktop"
"org.signal.Signal"
"page.kramo.Cartridges"
"org.prismlauncher.PrismLauncher"
"org.libretro.RetroArch"
"net.pcsx2.PCSX2"
"org.duckstation.DuckStation"
"net.kuribo64.melonDS"
"org.DolphinEmu.dolphin-emu"
"org.ppsspp.PPSSPP"
"io.github.dosbox-staging"
"com.usebottles.bottles"
"net.davidotek.pupgui2"
"com.github.Matoking.protontricks"
"io.gitlab.azymohliad.WatchMate"
];
services.flatpak.overrides = {
global = {
Context.filesystems = [
"xdg-config/gtk-4.0:ro"
"xdg-config/gtk-3.0:ro"
"xdg-run/discord-ipc-*"
"xdg-run/.flatpak/dev.vencord.Vesktop:create"
"xdg-config/fontconfig:ro"
"~/.themes:ro"
"~/.local/share/themes:ro"
];
Environment = {
GTK_THEME = "Catppuccin-Mocha-Compact-Green-Dark";
ICON_THEME = "Papirus-Dark";
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons";
XCURSOR_SIZE = "24";
XCURSOR_THEME = "Bibata-Modern-Light";
};
};
};
# ╭──────────────────────────────────────╮
# │ _ │
# │ _ __ __ _ __| |____ _ __ _ ___ ___ │
# │ | '_ \/ _` / _| / / _` / _` / -_|_-< │
# │ | .__/\__,_\__|_\_\__,_\__, \___/__/ │
# │ |_| |___/ │
# │ user packages │
# ╰──────────────────────────────────────╯
# Add stuff for your user as you see fit:
programs.neovim.enable = true;
home.packages = with pkgs; [
btop
bat
duf
fastfetch
fd
delta
lsd
ripgrep
sd
starship
zoxide
alejandra
cargo
usbutils
jq
ffmpeg_6-full
imagemagick
yt-dlp
mpdris2
ncmpcpp
mpv
nextcloud-client
obs-studio
joystickwake
ventoy-full
];
# my preferred shell customized to my needs
# TODO: theres only oh-my-zsh support out of the box, figure out
# how to customize sheldon and starship
programs.zsh = {
enable = true;
history.size = 50000;
syntaxHighlighting.enable = true;
};
# fuzzy command finder, required by a decent amount of things
programs.fzf = {
enable = true;
enableZshIntegration = true;
catppuccin.enable = true;
};
programs.git = {
enable = true;
userName = "Sneexy";
userEmail = "sneexy@disroot.org";
signing.signByDefault = true;
signing.key = "A6C94D84D2DA13EE";
extraConfig = {
commit.verbose = true;
init.defaultBranch = "main";
};
};
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
esbenp.prettier-vscode
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
arrterian.nix-env-selector
donjayamanne.githistory
];
userSettings = {
"editor.fontFamily" = "\'JetBrainsMono Nerd Font\', \'Droid Sans Mono\', \'monospace\', monospace";
"editor.fontSize" = 16;
"files.autoSave" = "onFocusChange";
"editor.cursorBlinking" = "expand";
"editor.cursorSmoothCaretAnimation" = "on";
"window.dialogStyle" = "custom";
"window.titleBarStyle" = "custom";
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
"catppuccin.accentColor" = "green";
};
};
# this is a got damn NEO VIMME HOUSE !!
home.sessionVariables = {
EDITOR = "nvim";
};
# music!!
services.mpd = {
enable = true;
dataDir = "/home/ruben/.config/mpd";
musicDirectory = "/home/ruben/Music";
playlistDirectory = "/home/ruben/.config/mpd/playlists";
dbFile = "/home/ruben/.config/mpd/db";
extraConfig = ''
state_file_interval "120"
restore_paused "yes"
audio_output {
type "pipewire"
name "PipeWire"
}
'';
};
xdg.userDirs.enable = true;
# ╭───────────────────────────────────────────╮
# │ _ _ │
# │ __ __ _| |_ _ __ _ __ _ _ __ __(_)_ _ │
# │ / _/ _` | _| '_ \ '_ \ || / _/ _| | ' \ │
# │ \__\__,_|\__| .__/ .__/\_,_\__\__|_|_||_| │
# │ |_| |_| │
# │ catppuccin │
# ╰───────────────────────────────────────────╯
# catppuccin flavour
catppuccin.flavour = "mocha";
# catppuccin's gtk theme
gtk = {
enable = true;
theme = {
name = "Catppuccin-Mocha-Compact-Green-Dark";
package = pkgs.catppuccin-gtk.override {
accents = ["green"];
size = "compact";
#tweaks = [ "rimless" "black" ];
variant = "mocha";
};
};
};
xdg.configFile = {
# required for catppuccin's gtk4 theme
"gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
};
# ╭───────────────────────────────────────────────╮
# │ _ __ _ │
# │ _ __ ___ __| |_ ___ __ ___ _ _ / _(_)__ _ │

177
users/ruben/packages.nix Normal file
View file

@ -0,0 +1,177 @@
# ╭──────────────────────────────────────╮
# │ _ │
# │ _ __ __ _ __| |____ _ __ _ ___ ___ │
# │ | '_ \/ _` / _| / / _` / _` / -_|_-< │
# │ | .__/\__,_\__|_\_\__,_\__, \___/__/ │
# │ |_| |___/ │
# │ user packages │
# ╰──────────────────────────────────────╯
{
inputs,
lib,
osConfig,
config,
pkgs,
flake-inputs,
...
}: {
imports = [
# catppuccin home-manager flake
flake-inputs.catppuccin.homeManagerModules.catppuccin
];
# Add stuff for your user as you see fit:
programs.neovim.enable = true;
home.packages = with pkgs; [
btop
bat
duf
fastfetch
fd
delta
lsd
ripgrep
sd
starship
zoxide
alejandra
cargo
usbutils
jq
ffmpeg_6-full
imagemagick
figlet
yt-dlp
mpdris2
ncmpcpp
thunderbird
birdtray
kdePackages.kdenlive
krita
nicotine-plus
okteta
obsidian
rssguard
gpu-screen-recorder-gtk
gajim
cinny-desktop
revolt-desktop
vesktop
signal-desktop
cartridges
prismlauncher temurin-jre-bin-8 temurin-jre-bin-11 temurin-jre-bin
retroarch
pcsx2
duckstation
melonDS
dolphin-emu
ppsspp-qt
dosbox-staging
bottles
protonup-qt
protontricks
mpv
nextcloud-client
watchmate
obs-studio
joystickwake
ventoy-full
(catppuccin-kde.override {
flavour = ["mocha"];
accents = ["green"];
winDecStyles = ["modern"];
})
#(catppuccin-papirus-folders.override {
# flavor = ["mocha"];
# accent = ["green"];
#})
];
# my preferred shell customized to my needs
# TODO: theres only oh-my-zsh support out of the box, figure out
# how to customize sheldon and starship
programs.zsh = {
enable = true;
history.size = 50000;
syntaxHighlighting.enable = true;
};
# fuzzy command finder, required by a decent amount of things
programs.fzf = {
enable = true;
enableZshIntegration = true;
catppuccin.enable = true;
};
programs.git = {
enable = true;
userName = "Sneexy";
userEmail = "sneexy@disroot.org";
signing.signByDefault = true;
signing.key = "A6C94D84D2DA13EE";
extraConfig = {
commit.verbose = true;
init.defaultBranch = "main";
};
};
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
esbenp.prettier-vscode
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
arrterian.nix-env-selector
donjayamanne.githistory
];
userSettings = {
"editor.fontFamily" = "\'JetBrainsMono Nerd Font\', \'Droid Sans Mono\', \'monospace\', monospace";
"editor.fontSize" = 16;
"files.autoSave" = "onFocusChange";
"editor.cursorBlinking" = "expand";
"editor.cursorSmoothCaretAnimation" = "on";
"window.dialogStyle" = "custom";
"window.titleBarStyle" = "custom";
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
"catppuccin.accentColor" = "green";
};
};
# this is a got damn NEO VIMME HOUSE !!
home.sessionVariables = {
EDITOR = "nvim";
};
# music!!
services.mpd = {
enable = true;
dataDir = "/home/ruben/.config/mpd";
musicDirectory = "/home/ruben/Music";
playlistDirectory = "/home/ruben/.config/mpd/playlists";
dbFile = "/home/ruben/.config/mpd/db";
extraConfig = ''
state_file_interval "120"
restore_paused "yes"
audio_output {
type "pipewire"
name "PipeWire"
}
'';
};
}

57
users/ruben/themes.nix Normal file
View file

@ -0,0 +1,57 @@
# ╭───────────────────────────────────────────╮
# │ _ _ │
# │ __ __ _| |_ _ __ _ __ _ _ __ __(_)_ _ │
# │ / _/ _` | _| '_ \ '_ \ || / _/ _| | ' \ │
# │ \__\__,_|\__| .__/ .__/\_,_\__\__|_|_||_| │
# │ |_| |_| │
# │ catppuccin │
# ╰───────────────────────────────────────────╯
{
inputs,
lib,
osConfig,
config,
pkgs,
flake-inputs,
...
}: {
imports = [
# catppuccin home-manager flake
flake-inputs.catppuccin.homeManagerModules.catppuccin
];
# catppuccin flavour
catppuccin.flavour = "mocha";
# gtk theme
gtk = {
enable = true;
theme = {
name = "Catppuccin-Mocha-Compact-Green-Dark";
package = pkgs.catppuccin-gtk.override {
accents = ["green"];
size = "compact";
variant = "mocha";
};
};
cursorTheme = {
name = "Bibata-Modern-Ice";
package = pkgs.bibata-cursors;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
font = {
name = "Lexend Deca";
size = 10;
};
};
xdg.configFile = {
# required for catppuccin's gtk4 theme
"gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
"gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
};
}