From 6ec016d3457f6d5ace9585467ff513ade2d2d793 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 19 Oct 2024 17:25:26 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(themes):=20Install=20rose-pine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.lock | 79 ++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 24 ++++++++++---- home/bat/default.nix | 16 +++++++++ 3 files changed, 112 insertions(+), 7 deletions(-) create mode 100644 home/bat/default.nix diff --git a/flake.lock b/flake.lock index d57b3c8..2ef62d6 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,66 @@ { "nodes": { + "alejandra": { + "inputs": { + "fenix": "fenix", + "flakeCompat": "flakeCompat", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1660592437, + "narHash": "sha256-xFumnivtVwu5fFBOrTxrv6fv3geHKF04RGP23EsDVaI=", + "owner": "kamadorueda", + "repo": "alejandra", + "rev": "e7eac49074b70814b542fee987af2987dd0520b5", + "type": "github" + }, + "original": { + "owner": "kamadorueda", + "ref": "3.0.0", + "repo": "alejandra", + "type": "github" + } + }, + "fenix": { + "inputs": { + "nixpkgs": [ + "alejandra", + "nixpkgs" + ], + "rust-analyzer-src": "rust-analyzer-src" + }, + "locked": { + "lastModified": 1657607339, + "narHash": "sha256-HaqoAwlbVVZH2n4P3jN2FFPMpVuhxDy1poNOR7kzODc=", + "owner": "nix-community", + "repo": "fenix", + "rev": "b814c83d9e6aa5a28d0cf356ecfdafb2505ad37d", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "fenix", + "type": "github" + } + }, + "flakeCompat": { + "flake": false, + "locked": { + "lastModified": 1650374568, + "narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "b4a34015c698c7793d592d66adbab377907a2be8", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -38,9 +99,27 @@ }, "root": { "inputs": { + "alejandra": "alejandra", "home-manager": "home-manager", "nixpkgs": "nixpkgs" } + }, + "rust-analyzer-src": { + "flake": false, + "locked": { + "lastModified": 1657557289, + "narHash": "sha256-PRW+nUwuqNTRAEa83SfX+7g+g8nQ+2MMbasQ9nt6+UM=", + "owner": "rust-lang", + "repo": "rust-analyzer", + "rev": "caf23f29144b371035b864a1017dbc32573ad56d", + "type": "github" + }, + "original": { + "owner": "rust-lang", + "ref": "nightly", + "repo": "rust-analyzer", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 6f27dc2..6beabed 100644 --- a/flake.nix +++ b/flake.nix @@ -13,18 +13,28 @@ url = "github:kamadorueda/alejandra/3.0.0"; inputs.nixpkgs.follows = "nixpkgs"; }; + + rose-pine.url = "git+https://git.punkfairie.net/punkfairie/rose-pine-nix"; }; - outputs = { nixpkgs, home-manager, ... }@inputs: { + outputs = { + nixpkgs, + home-manager, + ... + } @ inputs: { homeConfigurations."marley" = let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; - in home-manager.lib.homeManagerConfiguration { - inherit system; - inherit pkgs; - inherit inputs; + in + home-manager.lib.homeManagerConfiguration { + inherit pkgs; - modules = [ ./home ]; - }; + extraSpecialArgs = {inherit system inputs;}; + + modules = [ + ./home + inputs.rose-pine.homeManagerModules.rose-pine + ]; + }; }; } diff --git a/home/bat/default.nix b/home/bat/default.nix new file mode 100644 index 0000000..d93fc36 --- /dev/null +++ b/home/bat/default.nix @@ -0,0 +1,16 @@ +{pkgs, ...}: { + programs.bat = { + enable = true; + + extraPackages = with pkgs.bat-extras; [ + batdiff + batman + ]; + + rose-pine.enable = true; + + config = { + style = "auto"; + }; + }; +}