🔧 (home) use catppuccin's flake

This commit is contained in:
Laureηt 2024-06-15 16:39:17 +02:00
parent 9f2d65a9e3
commit 58bfea62c2
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk
16 changed files with 37 additions and 151 deletions

View file

@ -79,83 +79,18 @@
"type": "github" "type": "github"
} }
}, },
"catppuccin-alacritty": { "catppuccin": {
"flake": false,
"locked": { "locked": {
"lastModified": 1712663324, "lastModified": 1718339789,
"narHash": "sha256-Pi1Hicv3wPALGgqurdTzXEzJNx7vVh+8B9tlqhRpR2Y=", "narHash": "sha256-Q3fgY7huFE+uaw7BNsAl1x+FvjDAi3EDWPnlALJt5pM=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "alacritty", "repo": "nix",
"rev": "94800165c13998b600a9da9d29c330de9f28618e", "rev": "73e06d5bd7ed34bdd0168030893ef8364fdc1d4a",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "catppuccin", "owner": "catppuccin",
"repo": "alacritty", "repo": "nix",
"type": "github"
}
},
"catppuccin-bat": {
"flake": false,
"locked": {
"lastModified": 1714038927,
"narHash": "sha256-Q5B4NDrfCIK3UAMs94vdXnR42k4AXCqZz6sRn8bzmf4=",
"owner": "catppuccin",
"repo": "bat",
"rev": "d714cc1d358ea51bfc02550dabab693f70cccea0",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "bat",
"type": "github"
}
},
"catppuccin-btop": {
"flake": false,
"locked": {
"lastModified": 1715687124,
"narHash": "sha256-UXeTypc15MhjgGUiCrDUZ40m32yH2o1N+rcrEgY6sME=",
"owner": "catppuccin",
"repo": "btop",
"rev": "21b8d5956a8b07fa52519e3267fb3a2d2e693d17",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "btop",
"type": "github"
}
},
"catppuccin-fish": {
"flake": false,
"locked": {
"lastModified": 1715687686,
"narHash": "sha256-shQxlyoauXJACoZWtRUbRMxmm10R8vOigXwjxBhG8ng=",
"owner": "catppuccin",
"repo": "fish",
"rev": "a3b9eb5eaf2171ba1359fe98f20d226c016568cf",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "fish",
"type": "github"
}
},
"catppuccin-mako": {
"flake": false,
"locked": {
"lastModified": 1691845483,
"narHash": "sha256-nUzWkQVsIH4rrCFSP87mXAka6P+Td2ifNbTuP7NM/SQ=",
"owner": "catppuccin",
"repo": "mako",
"rev": "9dd088aa5f4529a3dd4d9760415e340664cb86df",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "mako",
"type": "github" "type": "github"
} }
}, },
@ -939,11 +874,7 @@
"TP-calcul-parallele": "TP-calcul-parallele", "TP-calcul-parallele": "TP-calcul-parallele",
"TP-reinforcement-learning": "TP-reinforcement-learning", "TP-reinforcement-learning": "TP-reinforcement-learning",
"agenix": "agenix", "agenix": "agenix",
"catppuccin-alacritty": "catppuccin-alacritty", "catppuccin": "catppuccin",
"catppuccin-bat": "catppuccin-bat",
"catppuccin-btop": "catppuccin-btop",
"catppuccin-fish": "catppuccin-fish",
"catppuccin-mako": "catppuccin-mako",
"disko": "disko", "disko": "disko",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"home-manager": "home-manager", "home-manager": "home-manager",

View file

@ -59,30 +59,13 @@
url = "github:nix-community/impermanence"; url = "github:nix-community/impermanence";
}; };
# home assets # home stuff
wallpaper = { wallpaper = {
url = "https://images.unsplash.com/photo-1482686115713-0fbcaced6e28"; url = "https://images.unsplash.com/photo-1482686115713-0fbcaced6e28";
flake = false; flake = false;
}; };
catppuccin-alacritty = { catppuccin = {
url = "github:catppuccin/alacritty"; url = "github:catppuccin/nix";
flake = false;
};
catppuccin-bat = {
url = "github:catppuccin/bat";
flake = false;
};
catppuccin-btop = {
url = "github:catppuccin/btop";
flake = false;
};
catppuccin-mako = {
url = "github:catppuccin/mako";
flake = false;
};
catppuccin-fish = {
url = "github:catppuccin/fish";
flake = false;
}; };
# cesium nginx sites # cesium nginx sites

View file

@ -1,8 +1,7 @@
{inputs, ...}: { {...}: {
programs.alacritty = { programs.alacritty = {
enable = true; enable = true;
settings = { settings = {
import = ["${inputs.catppuccin-alacritty}/catppuccin-mocha.toml"];
window.opacity = 0.85; window.opacity = 0.85;
font = { font = {
normal.family = "FiraCode Nerd Font Mono"; normal.family = "FiraCode Nerd Font Mono";

View file

@ -0,0 +1,7 @@
{...}: {
catppuccin = {
enable = true;
flavor = "mocha";
accent = "blue";
};
}

View file

@ -1,9 +1,12 @@
{inputs, ...}: { {inputs, ...}: {
config.home.stateVersion = "23.05"; config.home.stateVersion = "24.05";
imports = [ imports = [
inputs.hyprland.homeManagerModules.default inputs.hyprland.homeManagerModules.default
inputs.catppuccin.homeManagerModules.catppuccin
./packages.nix ./packages.nix
./catppuccin
./alacritty ./alacritty
./firefox ./firefox

View file

@ -8,30 +8,11 @@
size = 10; size = 10;
}; };
iconTheme = { catppuccin = {
name = "Papirus-Dark"; enable = true;
package = pkgs.catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "blue";
};
};
theme = {
name = "Catppuccin-Mocha-Compact-Blue-Dark";
package = pkgs.catppuccin-gtk.override {
tweaks = ["rimless" "normal"];
accents = ["blue"];
variant = "mocha";
size = "compact"; size = "compact";
tweaks = ["rimless" "normal"];
cursor.accent = "dark";
}; };
}; };
};
home.pointerCursor = {
name = "Catppuccin-Mocha-Dark-Cursors";
package = pkgs.catppuccin-cursors.mochaDark;
size = 20;
gtk.enable = true;
x11.enable = true;
};
} }

View file

@ -1,18 +1,6 @@
{ {pkgs, ...}: {
inputs,
pkgs,
...
}: {
programs.bat = { programs.bat = {
enable = true; enable = true;
themes = {
catppuccin = {
src = inputs.catppuccin-bat;
file = "Catppuccin-mocha.tmTheme";
};
};
config.theme = "catppuccin";
extraPackages = with pkgs.bat-extras; [batman]; extraPackages = with pkgs.bat-extras; [batman];
}; };

View file

@ -1,15 +1,10 @@
{inputs, ...}: { {...}: {
xdg.configFile."btop/themes".source = "${inputs.catppuccin-btop}/themes";
programs.btop = { programs.btop = {
enable = true; enable = true;
settings = { settings = {
theme_background = false; theme_background = false;
color_theme = "catppuccin_mocha";
clock_format = "%Y-%m-%d %X"; clock_format = "%Y-%m-%d %X";
}; };
}; };
programs.fish.shellAliases.htop = "btop";
} }

View file

@ -1,6 +1,4 @@
{inputs, ...}: { {...}: {
xdg.configFile."fish/themes".source = "${inputs.catppuccin-fish}/themes";
programs.fish = { programs.fish = {
enable = true; enable = true;

View file

@ -36,8 +36,8 @@
"window.menuBarVisibility" = "toggle"; "window.menuBarVisibility" = "toggle";
"window.zoomLevel" = -0.75; "window.zoomLevel" = -0.75;
"workbench.colorTheme" = "Catppuccin Mocha"; "workbench.colorTheme" = "Catppuccin Mocha";
"workbench.editor.empty.hint" = "hidden";
"workbench.iconTheme" = "catppuccin-mocha"; "workbench.iconTheme" = "catppuccin-mocha";
"workbench.editor.empty.hint" = "hidden";
"gitlens.telemetry.enabled" = false; "gitlens.telemetry.enabled" = false;
"telemetry.telemetryLevel" = "off"; "telemetry.telemetryLevel" = "off";
"editor.inlineSuggest.enabled" = true; "editor.inlineSuggest.enabled" = true;

View file

@ -1,7 +1,6 @@
{inputs, ...}: { {...}: {
services.mako = { services.mako = {
enable = true; enable = true;
defaultTimeout = 5000; defaultTimeout = 5000;
extraConfig = builtins.readFile "${inputs.catppuccin-mako}/src/mocha";
}; };
} }

View file

@ -6,6 +6,7 @@
programs.swaylock = { programs.swaylock = {
enable = true; enable = true;
package = pkgs.swaylock-effects; package = pkgs.swaylock-effects;
catppuccin.enable = false;
settings = { settings = {
image = "${inputs.wallpaper}"; image = "${inputs.wallpaper}";

View file

@ -5,7 +5,7 @@
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# 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 = "23.11"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
imports = [ imports = [
./audio ./audio

View file

@ -5,7 +5,7 @@
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# 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 = "23.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
imports = [ imports = [
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/scan/not-detected.nix # https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/scan/not-detected.nix

View file

@ -41,6 +41,7 @@ in {
}; };
modules = [ modules = [
./aurum ./aurum
inputs.catppuccin.nixosModules.catppuccin
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
# inputs.disko.nixosModules.default # inputs.disko.nixosModules.default
# inputs.lanzaboote.nixosModules.lanzaboote # inputs.lanzaboote.nixosModules.lanzaboote

View file

@ -5,7 +5,7 @@
# this value at the release version of the first install of this system. # this value at the release version of the first install of this system.
# 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 = "23.11"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
imports = [ imports = [
./adb ./adb