From ad1b961c4c8d4e44d171405a2a0b6242606ca457 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 11 Jul 2024 17:25:22 -0700 Subject: [PATCH] feat: add catppuccin --- flake.lock | 16 ++++++++++++++++ flake.nix | 12 ++++++++++-- home.nix | 20 +++++++++++++++++++- 3 files changed, 45 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 48eb42d..4b27604 100755 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,20 @@ { "nodes": { + "catppuccin": { + "locked": { + "lastModified": 1720472194, + "narHash": "sha256-CYscFEts6tyvosc1T29nxhzIYJAj/1CCEkV3ZMzSN/c=", + "owner": "catppuccin", + "repo": "nix", + "rev": "d75d5803852fb0833767dc969a4581ac13204e22", + "type": "github" + }, + "original": { + "owner": "catppuccin", + "repo": "nix", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -216,6 +231,7 @@ }, "root": { "inputs": { + "catppuccin": "catppuccin", "home-manager": "home-manager", "hyprland": "hyprland", "nixpkgs": "nixpkgs_2" diff --git a/flake.nix b/flake.nix index 1f04561..ce35e0c 100755 --- a/flake.nix +++ b/flake.nix @@ -8,20 +8,28 @@ inputs.nixpkgs.follows = "nixpkgs"; }; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; + catppuccin.url = "github:catppuccin/nix"; }; - outputs = { self, nixpkgs, home-manager, ... }@inputs: { + outputs = { self, nixpkgs, home-manager, catppuccin, ... }@inputs: { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; system = "x86_64-linux"; modules = [ ./configuration.nix + catppuccin.nixosModules.catppuccin + home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.youwen = import ./home.nix; + home-manager.users.youwen = { + imports = [ + ./home.nix + catppuccin.homeManagerModules.catppuccin + ]; + }; } ]; }; diff --git a/home.nix b/home.nix index c7389f4..ba3fe4e 100755 --- a/home.nix +++ b/home.nix @@ -110,7 +110,24 @@ lazygit ]; - services.dunst.enable = true; + services.dunst = { + enable = true; + catppuccin.enable = true; + }; + + catppuccin = { + flavor = "macchiato"; + }; + + programs.fzf = { + enable = true; + catppuccin.enable = true; + }; + + programs.rofi = { + enable = true; + catppuccin.enable = true; + }; wayland.windowManager.hyprland.enable = true; wayland.windowManager.hyprland.settings = { @@ -490,6 +507,7 @@ vimAlias = true; }; + # This value determines the home Manager release that your # configuration is compatible with. This helps avoid breakage # when a new home Manager release introduces backwards