mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Cleanup of code and modules. Fully modular config now. Cleanup unused and redundant packages. Fix shell alias
This commit is contained in:
161
user/home.nix
161
user/home.nix
@@ -1,102 +1,87 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./packages.nix
|
||||
];
|
||||
imports = [ ./packages.nix ];
|
||||
|
||||
services.gnome-keyring.enable = true;
|
||||
services.gnome-keyring.enable = true;
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
"application/pdf" = "sioyek.desktop";
|
||||
"application/rnote" = "rnote.desktop";
|
||||
"video/mp4" = "mpv.desktop";
|
||||
"image/*" = "fehcustom.desktop";
|
||||
};
|
||||
};
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = "firefox.desktop";
|
||||
"x-scheme-handler/http" = "firefox.desktop";
|
||||
"x-scheme-handler/https" = "firefox.desktop";
|
||||
"x-scheme-handler/about" = "firefox.desktop";
|
||||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
"application/pdf" = "sioyek.desktop";
|
||||
"application/rnote" = "rnote.desktop";
|
||||
"video/mp4" = "mpv.desktop";
|
||||
"image/*" = "fehcustom.desktop";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.desktopEntries.fehcustom = {
|
||||
name = "FehCustom";
|
||||
terminal = false;
|
||||
exec = "${pkgs.feh}/bin/feh -d --keep-zoom-vp --draw-exif --start-at %u";
|
||||
};
|
||||
xdg.desktopEntries.fehcustom = {
|
||||
name = "FehCustom";
|
||||
terminal = false;
|
||||
exec = "${pkgs.feh}/bin/feh -d --keep-zoom-vp --draw-exif --start-at %u";
|
||||
};
|
||||
|
||||
home = {
|
||||
username = "jonas";
|
||||
homeDirectory = "/home/jonas";
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
HTTP_HOME = "duckduckgo.com";
|
||||
MANPAGER="nvim +Man!";
|
||||
};
|
||||
shellAliases = {
|
||||
fla = "sudo nixos-rebuild switch --flake '~/nixos#'";
|
||||
};
|
||||
pointerCursor = {
|
||||
gtk.enable = true;
|
||||
name = "catppuccin-frappe-rosewater-cursors";
|
||||
package = pkgs.catppuccin-cursors.frappeRosewater;
|
||||
size = 18;
|
||||
};
|
||||
};
|
||||
home = {
|
||||
username = "jonas";
|
||||
homeDirectory = "/home/jonas";
|
||||
pointerCursor = {
|
||||
gtk.enable = true;
|
||||
name = "catppuccin-frappe-rosewater-cursors";
|
||||
package = pkgs.catppuccin-cursors.frappeRosewater;
|
||||
size = 18;
|
||||
};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
iconTheme = {
|
||||
package = pkgs.papirus-icon-theme;
|
||||
name = "Papirus-Dark";
|
||||
};
|
||||
theme = {
|
||||
name = "Adwaita-dark";
|
||||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
iconTheme = {
|
||||
package = pkgs.papirus-icon-theme;
|
||||
name = "Papirus-Dark";
|
||||
};
|
||||
theme = {
|
||||
name = "Adwaita-dark";
|
||||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "qtct";
|
||||
style.name = "Kvantum";
|
||||
};
|
||||
xdg.configFile."Kvantum/kvantum.kvconfig".source = (pkgs.formats.ini { }).generate "kvantum.kvconfig" {
|
||||
General.theme = "Catppuccin-Frappe-Rosewater";
|
||||
};
|
||||
xdg.configFile."qt6ct/qt6ct.conf".source = pkgs.writeTextFile {
|
||||
name = "qt6ct.conf";
|
||||
text = ''
|
||||
[Appearance]
|
||||
color_scheme_path=${pkgs.qt6ct}/share/qt6ct/colors/airy.conf
|
||||
custom_palette=false
|
||||
icon_theme=Papirus-Dark
|
||||
standard_dialogs=default
|
||||
style=kvantum
|
||||
'';
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "qtct";
|
||||
style.name = "Kvantum";
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
line_break.disabled = true;
|
||||
xdg.configFile."Kvantum/kvantum.kvconfig".source =
|
||||
(pkgs.formats.ini { }).generate "kvantum.kvconfig" {
|
||||
General.theme = "Catppuccin-Frappe-Rosewater";
|
||||
};
|
||||
xdg.configFile."qt6ct/qt6ct.conf".source = pkgs.writeTextFile {
|
||||
name = "qt6ct.conf";
|
||||
text =
|
||||
" [Appearance]\n color_scheme_path=${pkgs.qt6ct}/share/qt6ct/colors/airy.conf\n custom_palette=false\n icon_theme=Papirus-Dark\n standard_dialogs=default\n style=kvantum\n";
|
||||
};
|
||||
|
||||
sudo = {
|
||||
disabled = false;
|
||||
symbol = "SUDO ";
|
||||
style = "bold red";
|
||||
};
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
line_break.disabled = true;
|
||||
sudo = {
|
||||
disabled = false;
|
||||
symbol = "SUDO ";
|
||||
style = "bold red";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "24.11";
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user