Use catppuccin module #8
8 changed files with 49 additions and 46 deletions
16
flake.lock
generated
16
flake.lock
generated
|
|
@ -23,6 +23,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"catppuccin": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1712482981,
|
||||||
|
"narHash": "sha256-LJOOpTey9Y29C/TK4h9KP7v4HvqDL3mLyT9hSWCfFlI=",
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "nix",
|
||||||
|
"rev": "4043beb6c792a40e9c513aa261f4ba10601a4457",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"catppuccin-vsc": {
|
"catppuccin-vsc": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -340,6 +355,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"catppuccin": "catppuccin",
|
||||||
"catppuccin-vsc": "catppuccin-vsc",
|
"catppuccin-vsc": "catppuccin-vsc",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"home-manager-unstable": "home-manager-unstable",
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,8 @@
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak/main";
|
nix-flatpak.url = "github:gmodena/nix-flatpak/main";
|
||||||
|
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
|
||||||
|
catppuccin.url = "github:catppuccin/nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {...} @ inputs:
|
outputs = {...} @ inputs:
|
||||||
|
|
@ -131,6 +133,7 @@
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager-unstable.nixosModule
|
home-manager-unstable.nixosModule
|
||||||
nix-index-db-unstable.nixosModules.nix-index
|
nix-index-db-unstable.nixosModules.nix-index
|
||||||
|
catppuccin.nixosModules.catppuccin
|
||||||
./roles/common
|
./roles/common
|
||||||
./roles/desktop
|
./roles/desktop
|
||||||
./roles/kde
|
./roles/kde
|
||||||
|
|
@ -151,6 +154,7 @@
|
||||||
home-manager-unstable.nixosModule
|
home-manager-unstable.nixosModule
|
||||||
nixos-hardware.nixosModules.microsoft-surface-go
|
nixos-hardware.nixosModules.microsoft-surface-go
|
||||||
nix-index-db-unstable.nixosModules.nix-index
|
nix-index-db-unstable.nixosModules.nix-index
|
||||||
|
catppuccin.nixosModules.catppuccin
|
||||||
./roles/common
|
./roles/common
|
||||||
./roles/desktop
|
./roles/desktop
|
||||||
./roles/kde
|
./roles/kde
|
||||||
|
|
@ -169,6 +173,7 @@
|
||||||
jovian.nixosModules.default
|
jovian.nixosModules.default
|
||||||
home-manager-unstable.nixosModule
|
home-manager-unstable.nixosModule
|
||||||
nix-index-db-unstable.nixosModules.nix-index
|
nix-index-db-unstable.nixosModules.nix-index
|
||||||
|
catppuccin.nixosModules.catppuccin
|
||||||
./roles/common
|
./roles/common
|
||||||
./roles/desktop
|
./roles/desktop
|
||||||
./roles/kde
|
./roles/kde
|
||||||
|
|
@ -190,6 +195,7 @@
|
||||||
home-manager-unstable.nixosModule
|
home-manager-unstable.nixosModule
|
||||||
nix-index-db-unstable.nixosModules.nix-index
|
nix-index-db-unstable.nixosModules.nix-index
|
||||||
nixos-hardware.nixosModules.gpd-win-max-2-2023
|
nixos-hardware.nixosModules.gpd-win-max-2-2023
|
||||||
|
catppuccin.nixosModules.catppuccin
|
||||||
./roles/common
|
./roles/common
|
||||||
./roles/desktop
|
./roles/desktop
|
||||||
./roles/kde
|
./roles/kde
|
||||||
|
|
@ -209,6 +215,7 @@
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModule
|
home-manager.nixosModule
|
||||||
nix-index-db.nixosModules.nix-index
|
nix-index-db.nixosModules.nix-index
|
||||||
|
catppuccin.nixosModules.catppuccin
|
||||||
./roles/common
|
./roles/common
|
||||||
./roles/server
|
./roles/server
|
||||||
./machines/Everest
|
./machines/Everest
|
||||||
|
|
|
||||||
|
|
@ -90,13 +90,18 @@
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
catppuccin.flavour = "mocha";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
backupFileExtension = "hm-backup";
|
backupFileExtension = "hm-backup";
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
verbose = true;
|
verbose = true;
|
||||||
users.toast = {...}: {
|
sharedModules = [flakeSelf.inputs.catppuccin.homeManagerModules.catppuccin];
|
||||||
|
users.toast = {osConfig, ...}: {
|
||||||
|
catppuccin.flavour = osConfig.catppuccin.flavour;
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
xdg = {
|
xdg = {
|
||||||
|
enable = true;
|
||||||
userDirs = {
|
userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
createDirectories = true;
|
createDirectories = true;
|
||||||
|
|
@ -113,11 +118,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader.grub = {
|
boot.loader.grub.catppuccin.enable = true;
|
||||||
theme = "${pkgs.catppuccin}/grub";
|
|
||||||
backgroundColor = "#1E1E2E";
|
|
||||||
splashImage = "${pkgs.catppuccin}/grub/background.png";
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
I used to keep the host keys in the repo as a secret, but since I use the
|
I used to keep the host keys in the repo as a secret, but since I use the
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,8 @@
|
||||||
{
|
{...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
themeName =
|
|
||||||
if config.system.nixos.release == "23.11"
|
|
||||||
then "Catppuccin-mocha"
|
|
||||||
else "Catppuccin Mocha";
|
|
||||||
in {
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.toast.programs.bat = {
|
users.toast.programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
catppuccin.enable = true;
|
||||||
theme = "catppuccin-mocha";
|
|
||||||
};
|
|
||||||
themes = {
|
|
||||||
catppuccin-mocha = {
|
|
||||||
src = pkgs.catppuccin;
|
|
||||||
file = "bat/${themeName}.tmTheme";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,9 @@
|
||||||
{pkgs, ...}: {
|
{...}: {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.toast = {
|
users.toast = {
|
||||||
programs.btop = {
|
programs.btop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
catppuccin.enable = true;
|
||||||
color_theme = "catppuccin_mocha";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
xdg.configFile = {
|
|
||||||
"btop/themes".source = "${pkgs.catppuccin}/btop";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,4 @@
|
||||||
{pkgs, ...}: let
|
{...}: {
|
||||||
catppuccinDelta = pkgs.fetchFromGitHub {
|
|
||||||
owner = "catppuccin";
|
|
||||||
repo = "delta";
|
|
||||||
rev = "main";
|
|
||||||
hash = "sha256-0QQLkfLBVuB2re6tjtPNuOQZNK0MDBAIFgNGHZM8afs=";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
home-manager.users.toast = {
|
home-manager.users.toast = {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -13,12 +6,8 @@ in {
|
||||||
userEmail = "toast003@tutamail.com";
|
userEmail = "toast003@tutamail.com";
|
||||||
delta = {
|
delta = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = {
|
catppuccin.enable = true;
|
||||||
syntax-theme = "catppuccin-mocha";
|
|
||||||
features = "catppuccin-mocha";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
includes = [{path = "${catppuccinDelta}/themes/mocha.gitconfig";}];
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
diff.colorMoved = "default";
|
diff.colorMoved = "default";
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,11 @@
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
nil
|
nil
|
||||||
];
|
];
|
||||||
|
catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
useItalics = true;
|
||||||
|
};
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin_mocha";
|
|
||||||
editor = {
|
editor = {
|
||||||
mouse = true;
|
mouse = true;
|
||||||
cursorline = true;
|
cursorline = true;
|
||||||
|
|
|
||||||
|
|
@ -49,4 +49,13 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
# The catppuccin module only works for home-manager, so this
|
||||||
|
# sets up starship with home-manager using the system config
|
||||||
|
home-manager.users.toast = {osConfig, ...}: {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
|
settings = osConfig.programs.starship.settings;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue