Compare commits

..

3 Commits

Author SHA1 Message Date
fe1186f960
🖼 Replaced Dolphin with Nauvis, mime types, image-viewer
- Added Gstreamer packages for audio data
- Replaced catppuccin wallpaper on lockscreen with one where the logo is higher
- Replaced dolphin with nautilus file manager
- Moved Gnome related configs to /gnome
- Added Gnome appindicator and extension manager
- Added loupe and gimp
- Added mime types for image files
2024-12-31 20:28:24 +01:00
cbcc4d8df6
🧰 Styled SDDM
- Catppuccin theme for SDDM
- Moved SDDM config to sddm.nix
- Removed unused toml file
2024-12-31 18:22:30 +01:00
51b30405c5
🧰 Styled Hyprlock
- Commented out listener in Hypridle that caused a bug?
- Activated btop
2024-12-31 17:24:33 +01:00
14 changed files with 104 additions and 76 deletions

View File

@ -6,6 +6,11 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
wireplumber wireplumber
playerctl # Interaction with audioplayers and browsers playerctl # Interaction with audioplayers and browsers
pavucontrol # GUI pavucontrol # GUI

BIN
catppuccin_high.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -9,7 +9,7 @@
{ {
imports = [ imports = [
# Include the results of the hardware scan. ./gnome
./hardware-configuration.nix ./hardware-configuration.nix
./terminal ./terminal
./hyprland ./hyprland
@ -18,6 +18,7 @@
./development.nix ./development.nix
./security.nix ./security.nix
./locale.nix ./locale.nix
./sddm.nix
]; ];
# Bootloader. # Bootloader.
@ -59,20 +60,17 @@
kitty kitty
xdg-utils xdg-utils
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
kdePackages.dolphin
kdePackages.qtwayland kdePackages.qtwayland
kdePackages.qtsvg kdePackages.qtsvg
kdePackages.qt6ct kdePackages.qt6ct
protonmail-desktop protonmail-desktop
adw-gtk3
glib
adwaita-icon-theme
stremio stremio
fastfetch fastfetch
freetube freetube
nextcloud-client nextcloud-client
discord discord
nix-prefetch-github # Cmd to get rev and hash from GitHub nix-prefetch-github # Cmd to get rev and hash from GitHub
gimp
]; ];
nix.settings.experimental-features = [ nix.settings.experimental-features = [
@ -85,8 +83,6 @@
# programs.mtr.enable = true; # programs.mtr.enable = true;
programs = { programs = {
dconf.enable = true;
gnupg.agent.enable = true; gnupg.agent.enable = true;
kdeconnect.enable = true; kdeconnect.enable = true;
@ -105,16 +101,8 @@
# services.openssh.enable = true; # services.openssh.enable = true;
services = { services = {
displayManager.sddm = {
enable = true;
autoNumlock = true; # Enable numlock at login # TODO doesn't work
wayland.enable = true;
};
flatpak.enable = true; flatpak.enable = true;
gnome.gnome-keyring.enable = true;
xserver = { xserver = {
enable = true; enable = true;
# Load Nvidia driver for Xorg and Wayland # Load Nvidia driver for Xorg and Wayland
@ -137,8 +125,8 @@
qt.enable = true; qt.enable = true;
# Enable OpenGL
hardware = { hardware = {
# Enable OpenGL
graphics.enable = true; graphics.enable = true;
nvidia = { nvidia = {
# Required # Required
@ -150,14 +138,6 @@
}; };
}; };
xdg.mime.defaultApplications = {
"text/html" = "io.github.zen_browser.zen.desktop";
"x-scheme-handler/http" = "io.github.zen_browser.zen.desktop";
"x-scheme-handler/https" = "io.github.zen_browser.zen.desktop";
"x-scheme-handler/about" = "io.github.zen_browser.zen.desktop";
"x-scheme-handler/unknown" = "io.github.zen_browser.zen.desktop";
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave
@ -165,5 +145,4 @@
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
} }

26
gnome/default.nix Normal file
View File

@ -0,0 +1,26 @@
{ pkgs, ... }:
{
imports = [
./nautilus.nix
];
environment.systemPackages = with pkgs; [
adw-gtk3
glib
adwaita-icon-theme
gnomeExtensions.appindicator
gnome-extension-manager
loupe
];
programs = {
dconf.enable = true; # Required for some gnome applications
};
services = {
gnome.gnome-keyring.enable = true;
gvfs.enable = true; # Gnome Virtual File-system. Required for various things in nautilus
udev.packages = with pkgs; [ gnome-settings-daemon ];
};
}

9
gnome/nautilus.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
# TODO file-preview for videos, svgs and other types
{
environment.systemPackages = with pkgs; [
nautilus
];
programs.nautilus-open-any-terminal.enable = true;
}

View File

@ -0,0 +1,23 @@
{ ... }:
{
xdg.mimeApps = {
enable = true;
defaultApplications =
let
browser = "io.github.zen_browser.zen.desktop";
imageViewer = "org.gnome.Loupe.desktop";
in
{
"text/html" = browser;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/about" = browser;
"x-scheme-handler/unknown" = browser;
"image/jpg" = imageViewer;
"image/jpeg" = imageViewer;
"image/png" = imageViewer;
"image/gif" = imageViewer;
};
};
}

View File

@ -9,6 +9,7 @@ in
{ {
imports = [ imports = [
inputs.nixvim.homeManagerModules.nixvim inputs.nixvim.homeManagerModules.nixvim
./default-applications.nix
./fish.nix ./fish.nix
./nixvim ./nixvim
./rofi ./rofi

View File

@ -10,9 +10,12 @@
]; ];
home.file.".config/hypr/hyprland.conf".source = ./hyprland.conf; home.file.".config/hypr/hyprland.conf".source = ./hyprland.conf;
programs.kitty = { programs = {
btop.enable = true;
kitty = {
settings = { settings = {
window_padding_width = 10; window_padding_width = 10;
}; };
}; };
};
} }

View File

@ -7,19 +7,19 @@
general = { general = {
after_sleep_cmd = "hyprctl dispatch dpms on"; after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false; ignore_dbus_inhibit = false;
lock_cmd = "hyprlock"; lock_cmd = "pidof hyprlock || hyprlock"; # Avoid running multiple instances of hyprlock
}; };
listener = [ listener = [
{ {
timeout = 900; # Seconds timeout = 900; # 15 min
on-timeout = "hyprlock"; on-timeout = "hyprlock";
} }
{ # {
timeout = 1200; # timeout = 1200;
on-timeout = "hyprctl dispatch dpms off"; # on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on"; # on-resume = "hyprctl dispatch dpms on";
} # }
]; ];
}; };
}; };

View File

@ -25,7 +25,7 @@ monitor = DP-3, 2560x1440@59.95, 1920x0, 1
# Set programs that you use # Set programs that you use
$browser = io.github.zen_browser.zen $browser = io.github.zen_browser.zen
$terminal = kitty $terminal = kitty
$fileManager = dolphin $fileManager = nautilus
$menu = rofi -show drun $menu = rofi -show drun

View File

@ -1,8 +1,6 @@
{ lib, ... }: { lib, ... }:
{ {
home.file.".face.png".source = ./face.png;
# TODO style face and wallpaper
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
settings = { settings = {
@ -59,16 +57,6 @@
} }
]; ];
# USER AVATAR
image = {
path = "~/.face.png";
size = 100;
border_color = "$accent";
position = "0, 75";
halign = "center";
valign = "center";
};
# INPUT FIELD # INPUT FIELD
input-field = { input-field = {
size = "300, 60"; size = "300, 60";
@ -86,7 +74,7 @@
fail_color = lib.mkDefault "$red"; fail_color = lib.mkDefault "$red";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>"; fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
capslock_color = lib.mkDefault "$yellow"; capslock_color = lib.mkDefault "$yellow";
position = "0, -47"; position = "0, -20%";
halign = "center"; halign = "center";
valign = "center"; valign = "center";
}; };

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

21
sddm.nix Normal file
View File

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(catppuccin-sddm.override {
flavor = "mocha";
font = "Noto Sans";
fontSize = "9";
background = "${./catppuccin_high.png}";
loginBackground = true;
})
];
services.displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha";
autoNumlock = true; # Enable numlock at login # TODO doesn't work
wayland.enable = true;
package = pkgs.kdePackages.sddm;
};
}

View File

@ -1,27 +0,0 @@
[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
mauve = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
subtext1 = "#bac2de"
subtext0 = "#a6adc8"
overlay2 = "#9399b2"
overlay1 = "#7f849c"
overlay0 = "#6c7086"
surface2 = "#585b70"
surface1 = "#45475a"
surface0 = "#313244"
base = "#1e1e2e"
mantle = "#181825"
crust = "#11111b"