catppuccin theme start

set basic catppuccin/nix
This commit is contained in:
2026-03-17 10:50:17 +01:00
parent 0437d90402
commit 35806b21a2
24 changed files with 247 additions and 456 deletions

View File

@@ -52,7 +52,7 @@
displayManager = {
sddm = {
enable = true;
theme = "catppuccin-mocha-mauve";
theme = "catppuccin-mocha-pink";
wayland.enable = true;
};
#autoLogin = {
@@ -93,7 +93,7 @@
environment.systemPackages = with pkgs; [
(catppuccin-sddm.override {
flavor = "mocha";
accent = "mauve";
accent = "pink";
font = "Fira Code";
fontSize = "9";
# background = "${./wallpaper.png}";

45
flake.lock generated
View File

@@ -1,5 +1,23 @@
{
"nodes": {
"catppuccin": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1773403535,
"narHash": "sha256-47MZaFrHxNO8tVUAmtVnerXUw2WWVluBOiU9MulN/yM=",
"owner": "catppuccin",
"repo": "nix",
"rev": "d45b5665cc638bad1b794350de02f4dd41b0bb47",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "nix",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
@@ -87,7 +105,7 @@
"inputs": {
"flake-parts": "flake-parts",
"neovim-src": "neovim-src",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1773360308,
@@ -140,6 +158,22 @@
}
},
"nixpkgs": {
"locked": {
"lastModified": 1773122722,
"narHash": "sha256-FIqHByVqxCprNjor1NqF80F2QQoiiyqanNNefdlvOg4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "62dc67aa6a52b4364dd75994ec00b51fbf474e50",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1773201692,
"narHash": "sha256-NXrKzNMniu4Oam2kAFvqJ3GB2kAvlAFIriTAheaY8hw=",
@@ -155,7 +189,7 @@
"type": "github"
}
},
"nixpkgs_2": {
"nixpkgs_3": {
"locked": {
"lastModified": 1773282481,
"narHash": "sha256-b/GV2ysM8mKHhinse2wz+uP37epUrSE+sAKXy/xvBY4=",
@@ -171,7 +205,7 @@
"type": "github"
}
},
"nixpkgs_3": {
"nixpkgs_4": {
"locked": {
"lastModified": 1773282481,
"narHash": "sha256-b/GV2ysM8mKHhinse2wz+uP37epUrSE+sAKXy/xvBY4=",
@@ -212,7 +246,7 @@
"nur": {
"inputs": {
"flake-parts": "flake-parts_3",
"nixpkgs": "nixpkgs_3"
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1773383285,
@@ -230,10 +264,11 @@
},
"root": {
"inputs": {
"catppuccin": "catppuccin",
"home-manager": "home-manager",
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_2",
"nixpkgs": "nixpkgs_3",
"nixvim": "nixvim",
"nur": "nur"
}

View File

@@ -18,7 +18,6 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix expressions for VSCode and OpenVSX extensions
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs.nixpkgs.follows = "nixpkgs";
@@ -26,6 +25,8 @@
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
catppuccin.url = "github:catppuccin/nix";
# impermanence.url = "github:nix-community/impermanence";
};
@@ -35,6 +36,7 @@
home-manager,
nur,
nixvim,
catppuccin,
# impermanence,
...
}@inputs:
@@ -47,13 +49,17 @@
./machines/configuration-laptop.nix
./home/services/pipewire.nix
nur.modules.nixos.default
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
# impermanence.nixosModules.impermanence
{
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
users.elias = import ./home/default-laptop.nix;
users.elias.imports = [
./home/default-laptop.nix
catppuccin.homeModules.catppuccin
];
};
nixpkgs.overlays = [
# (import ./overlays/river-status.nix)
@@ -69,13 +75,17 @@
./machines/configuration-desktop.nix
./home/services/pipewire.nix
nur.modules.nixos.default
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
# impermanence.nixosModules.impermanence
{
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
users.elias = import ./home/default-desktop.nix;
users.elias.imports = [
./home/default-desktop.nix
catppuccin.homeModules.catppuccin
];
};
nixpkgs.overlays = [
inputs.nur.overlays.default

View File

@@ -3,6 +3,7 @@
{
imports = [
./services
./themes
];
# home.persistence."/persistent" = {
@@ -53,10 +54,9 @@
programs.home-manager.enable = true;
# ── whatsie insecure ──────────────────────────────────────────────────
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [ "qtwebengine-5.15.19" ];
permittedInsecurePackages = [ "electron-32.3.3" "qtwebengine-5.15.19" ];
};
# ── whatsie insecure ──────────────────────────────────────────────────
}

View File

@@ -1,21 +1,25 @@
{ pkgs, ... }:
let
theme = builtins.fetchurl {
url =
"https://github.com/catppuccin/alacritty/raw/main/catppuccin-mocha.toml";
sha256 = "1idjbm5jim9b36235hgwgp9ab81fmbij42y7h85l4l7cqcbyz74l";
};
in {
home.packages = with pkgs; [ fira-code alacritty-theme ];
# let
# theme = builtins.fetchurl {
# url =
# "https://github.com/catppuccin/alacritty/raw/main/catppuccin-mocha.toml";
# sha256 = "1idjbm5jim9b36235hgwgp9ab81fmbij42y7h85l4l7cqcbyz74l";
# };
# in {
{
home.packages = with pkgs; [
fira-code
alacritty-theme
];
programs.alacritty = {
enable = true;
settings = {
env = {
"TERM" = "xterm-256color";
import = "${theme}";
};
# env = {
# "TERM" = "xterm-256color";
# import = "${theme}";
# };
font = {
size = 7;
normal.family = "Fira Code";

View File

@@ -1,6 +1,5 @@
{
imports = [
./default.nix
./zathura-desktop.nix
];
}

View File

@@ -1 +1,5 @@
{ imports = [ ./default.nix ./zathura-laptop.nix ]; }
{
imports = [
./default.nix
];
}

View File

@@ -10,6 +10,8 @@
./eww
./git.nix
./hyprlock.nix
./hyprpaper
./imv.nix
./inkscape.nix
./libreoffice.nix
./messenger.nix
@@ -22,11 +24,11 @@
./rofi
./skanlite.nix
./spotify.nix
./swww
./taskwarrior
./thunderbird.nix
./vlc.nix
./vscode.nix
./zathura.nix
./zoom.nix
./zsh.nix
];

View File

@@ -3,47 +3,47 @@
{
services.dunst = {
enable = true;
settings = {
global = {
# Your exact styling - unchanged
monitor = 1;
origin = "top-right";
offset = "15x25";
width = 300;
height = 100;
gap_size = 5;
notification_limit = 5;
# font removed as requested
frame_width = 1;
separator_color = "frame";
corner_radius = 12;
corners = "top-left,bottom";
progress_bar_corner_radius = 8;
progress_bar_corners = "top-left,bottom-right";
timeout = 5;
idle_threshold = 120;
max_icon_size = 64;
enable_recursive_icon_lookup = true;
show_indicators = true;
sticky_history = true;
history_length = 20;
mouse_left_click = "close_current";
mouse_right_click = "close_all";
mouse_middle_click = "context_all";
format = "<b>%a</b>\\n%s\\n<i>%b</i>";
};
urgency_low = {
timeout = 3;
};
urgency_normal = {
timeout = 5;
};
urgency_critical = {
timeout = 0;
};
};
# settings = {
# global = {
# # Your exact styling - unchanged
# monitor = 1;
# origin = "top-right";
# offset = "15x25";
# width = 300;
# height = 100;
# gap_size = 5;
# notification_limit = 5;
# # font removed as requested
# frame_width = 1;
# separator_color = "frame";
# corner_radius = 12;
# corners = "top-left,bottom";
# progress_bar_corner_radius = 8;
# progress_bar_corners = "top-left,bottom-right";
# timeout = 5;
# idle_threshold = 120;
# max_icon_size = 64;
# enable_recursive_icon_lookup = true;
# show_indicators = true;
# sticky_history = true;
# history_length = 20;
# mouse_left_click = "close_current";
# mouse_right_click = "close_all";
# mouse_middle_click = "context_all";
# format = "<b>%a</b>\\n%s\\n<i>%b</i>";
# };
#
# urgency_low = {
# timeout = 3;
# };
#
# urgency_normal = {
# timeout = 5;
# };
#
# urgency_critical = {
# timeout = 0;
# };
# };
};
}

View File

@@ -59,7 +59,9 @@
(button
:class "${idle_inhibitor == 'start' ? 'idleOn' : 'idleOff' }"
:onclick "systemctl --user is-active hypridle.service && systemctl --user stop hypridle.service || systemctl --user start hypridle.service"
(label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
(label
:class "${idle_inhibitor == 'start' ? 'speakerOn' : 'speakerOff'}"
:text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
;; ── Audio ───────────────────────────────────────────────────────────

View File

@@ -6,47 +6,26 @@
cz-cli
tig
];
programs.git = {
enable = true;
settings = {
init = {
defaultBranch = "main";
};
user = {
email = "elias.schroeter@e.email";
name = "Elias Schröter";
};
};
signing = {
key = "04F3A2ED4B33F254";
format = lib.mkForce "openpgp";
signByDefault = true;
};
};
programs.lazygit = {
enable = true;
# https://github.com/catppuccin/lazygit
settings = {
gui = {
theme = {
activeBorderColor = [
"#f4dbd6"
"bold"
];
inactiveBorderColor = [ "#a5adcb" ];
optionsTextColor = [ "#8aadf4" ];
selectedLineBgColor = [ "#363a4f" ];
cherryPickedCommitBgColor = [ "#494d64" ];
cherryPickedCommitFgColor = [ "#f4dbd6" ];
unstagedChangesColor = [ "#ed8796" ];
defaultFgColor = [ "#cad3f5" ];
searchingActiveBorderColor = [ "#eed49f" ];
programs = {
git = {
enable = true;
settings = {
init = {
defaultBranch = "main";
};
authorColors = {
"*" = "#b7bdf8";
user = {
email = "elias.schroeter@e.email";
name = "Elias Schröter";
};
};
signing = {
key = "04F3A2ED4B33F254";
format = lib.mkForce "openpgp";
signByDefault = true;
};
};
lazygit.enable = true;
};
}

View File

@@ -1,153 +1,5 @@
{ ... }:
{
programs.hyprlock = {
enable = true;
settings = {
# ── colors ────────────────────────────────────────────────────────────
mocha-base = "rgb(1e1e2e)";
mocha-mantle = "rgb(181825)";
mocha-crust = "rgb(11111b)";
mocha-text = "rgb(cdd6f4)";
mocha-subtext1 = "rgb(bac2de)";
mocha-subtext0 = "rgb(a6adc8)";
mocha-surface2 = "rgb(585b70)";
mocha-overlay0 = "rgb(6c7086)";
mocha-blue = "rgb(89b4fa)";
mocha-peach = "rgb(fab387)";
mocha-lavender = "rgb(cba6f7)";
mocha-white = "rgb(cdd6f5)";
general = {
hide_cursor = true;
ignore_empty_input = true;
text_trim = false;
fail_timeout = 500;
};
animations = {
enabled = true;
fade_in = {
duration = 300;
bezier = "easeOutQuint";
};
fade_out = {
duration = 300;
bezier = "easeOutQuint";
};
};
background = [
{
path = "screenshot";
blur_passes = 2;
blur_size = 3;
noise = 0.0117;
contrast = 1.3000;
brightness = 0.8000;
vibrancy = 0.2100;
vibrancy_darkness = 0.0;
}
];
label = [
# ── Hours ─────────────────────────────────────────────────────────────
{
size = "200, 50";
position = "50, 100";
monitor = "";
text = "cmd[update:1000] printf '<b><big>%(%H)T</big></b>'";
color = "$mocha-lavender";
font_size = 80;
font_family = "Fira Code";
shadow_passes = 3;
shadow_size = 4;
halign = "left";
valign = "bottom";
}
# ── : ─────────────────────────────────────────────────────────────────
{
position = "170, 105";
monitor = "";
text = ":";
color = "$mocha-subtext1";
font_size = 80;
font_family = "Fira Code";
shadow_passes = 3;
shadow_size = 4;
halign = "left";
valign = "bottom";
}
# ── Minutes ───────────────────────────────────────────────────────────
{
position = "220, 100";
monitor = "";
text = "cmd[update:1000] printf '<b><big>%(%M)T</big></b>'";
color = "$mocha-blue";
font_size = 80;
font_family = "Fira Code";
shadow_passes = 3;
shadow_size = 4;
halign = "left";
valign = "bottom";
}
# ── "Monday 2, May" ───────────────────────────────────────────────────
{
position = "370, 130";
monitor = "";
text = "cmd[update:300000] printf '<b>%(%A, %d %b)T</b>'";
color = "$mocha-text";
font_size = 18;
font_family = "Fira Code";
shadow_passes = 3;
shadow_size = 4;
halign = "left";
valign = "bottom";
}
# ── Battery ───────────────────────────────────────────────────────────
{
position = "-30, -10";
monitor = "";
text = "cmd[update:2000] printf ' %s%%' \"$(cat /sys/class/power_supply/BAT0/capacity)\"";
color = "$mocha-peach";
font_size = 15;
font_family = "Fira Code";
shadow_passes = 3;
shadow_size = 4;
halign = "right";
valign = "top";
}
];
auth = {
fingerprint = {
enabled = true;
# Optional: Customize messages
ready_message = "(Scan fingerprint to unlock)";
present_message = "Scanning fingerprint";
retry_delay = 250;
};
};
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 3;
placeholder_text = ''<span foreground="##cad3f5">Password...</span>'';
shadow_passes = 2;
}
];
};
};
programs.hyprlock.enable = true;
}

View File

Before

Width:  |  Height:  |  Size: 6.0 MiB

After

Width:  |  Height:  |  Size: 6.0 MiB

5
home/programs/imv.nix Normal file
View File

@@ -0,0 +1,5 @@
{ ... }:
{
programs.imv.enable = true;
}

View File

@@ -39,49 +39,49 @@
syntax on
'';
colorscheme = "catppuccin";
colorschemes.catppuccin = {
#lazyLoad.enable = true;
enable = true;
flavour = "mocha";
settings = {
integrations = {
markdown = true;
leap = true;
dap = true;
dap_ui = true;
lsp_trouble = true;
blink_cmp = true;
gitsigns = true;
diffview = true;
treesitter = true;
barbar = true;
telescope = true;
native_lsp = {
enabled = true;
virtual_text = {
errors = [ "italic" ];
hints = [ "italic" ];
warnings = [ "italic" ];
information = [ "italic" ];
ok = [ "italic" ];
};
underlines = {
errors = [ "underline" ];
hints = [ "underline" ];
warnings = [ "underline" ];
information = [ "underline" ];
ok = [ "underline" ];
};
inlay_hints = {
background = true;
};
};
lsp_saga = true;
};
};
};
# colorscheme = "catppuccin";
# colorschemes.catppuccin = {
# #lazyLoad.enable = true;
# enable = true;
# flavour = "mocha";
# settings = {
# integrations = {
# markdown = true;
# leap = true;
# dap = true;
# dap_ui = true;
# lsp_trouble = true;
# blink_cmp = true;
# gitsigns = true;
# diffview = true;
# treesitter = true;
# barbar = true;
# telescope = true;
# native_lsp = {
# enabled = true;
# virtual_text = {
# errors = [ "italic" ];
# hints = [ "italic" ];
# warnings = [ "italic" ];
# information = [ "italic" ];
# ok = [ "italic" ];
# };
# underlines = {
# errors = [ "underline" ];
# hints = [ "underline" ];
# warnings = [ "underline" ];
# information = [ "underline" ];
# ok = [ "underline" ];
# };
# inlay_hints = {
# background = true;
# };
# };
# lsp_saga = true;
# };
# };
# };
#
globals = {
mapleader = " ";
maplocalleader = ",";

View File

@@ -11,7 +11,6 @@
programs.rofi = {
enable = true;
terminal = "${pkgs.alacritty}/bin/alacritty";
theme = ./theme.rafi;
extraConfig = {
mode = "run,drun,window,ssh,network";
con-theme = "Oranchelo";
@@ -36,4 +35,3 @@
};
};
}

View File

@@ -1,111 +0,0 @@
* {
bg-col: #1e1e2e;
bg-col-light: #1e1e2e;
border-col: #1e1e2e;
selected-col: #1e1e2e;
blue: #89b4fa;
fg-col: #cdd6f4;
fg-col2: #f38ba8;
grey: #6c7086;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}

View File

@@ -1,21 +0,0 @@
{ ... }:
let
theme = builtins.fetchurl {
url =
"https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
sha256 = "0r2bgh4y7hymq8hhsjc70aw7yw85v668vgqcrcmdsggvdsk4rv1w";
};
in {
programs.zathura = {
enable = true;
options = {
synctex-editor-command = ''
include ${theme}
nvim --headless -c "VimtexInverseSearch %l '%f'"
'';
synctex = true;
font = "Fira Code 16";
};
};
}

View File

@@ -1,21 +0,0 @@
{ ... }:
let
theme = builtins.fetchurl {
url =
"https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
sha256 = "1zhx3bfz5s2wjrj87w0ryh15vgsqqfhg6dm48p63r5fmqwsak721";
};
in {
programs.zathura = {
enable = true;
options = {
synctex-editor-command = ''
include ${theme}
nvim --headless -c "VimtexInverseSearch %l '%f'"
'';
synctex = true;
font = "Fira Code 16";
};
};
}

21
home/programs/zathura.nix Normal file
View File

@@ -0,0 +1,21 @@
{ ... }:
# let
# theme = builtins.fetchurl {
# url =
# "https://raw.githubusercontent.com/catppuccin/zathura/main/src/catppuccin-mocha";
# sha256 = "1zhx3bfz5s2wjrj87w0ryh15vgsqqfhg6dm48p63r5fmqwsak721";
# };
# in {
{
programs.zathura = {
enable = true;
options = {
synctex-editor-command = ''
nvim --headless -c "VimtexInverseSearch %l '%f'"
''; # include ${theme}
synctex = true;
font = "Fira Code 16";
};
};
}

View File

@@ -0,0 +1,28 @@
{
...
}:
{
catppuccin = {
enable = true;
flavor = "mocha";
accent = "pink";
alacritty.enable = true;
anki.enable = true;
cursors.enable = true;
dunst.enable = true;
element-desktop.enable = true;
firefox.enable = true;
fzf.enable = true;
hyprlock.enable = true;
imv.enable = true;
lazygit.enable = true;
rofi.enable = true;
spotify-player.enable = true;
thunderbird.enable = true;
vscode.enable = true;
zathura.enable = true;
zsh-syntax-highlighting.enable = true;
};
}

5
home/themes/default.nix Normal file
View File

@@ -0,0 +1,5 @@
{
imports = [
./catppuccin.nix
];
}

View File

@@ -25,7 +25,7 @@
auth include login
'';
};
# sudo.fprintAuth = true;
sudo.fprintAuth = false;
login.fprintAuth = true;
};