Add theme flake.nix to add tailwindcss

This commit is contained in:
Oliver Davies 2025-05-29 11:11:06 +01:00
parent 0dbbd96cda
commit 8a760f433f
3 changed files with 51 additions and 3 deletions

19
flake.lock generated
View file

@ -16,9 +16,26 @@
"type": "github"
}
},
"opdavies-theme": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"path": "./themes/opdavies",
"type": "path"
},
"original": {
"path": "./themes/opdavies",
"type": "path"
},
"parent": []
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"opdavies-theme": "opdavies-theme"
}
}
},

View file

@ -1,8 +1,15 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs={
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
opdavies-theme = {
inputs.nixpkgs.follows = "nixpkgs";
url = "path:./themes/opdavies";
};
};
outputs =
{ nixpkgs, ... }:
{ nixpkgs, opdavies-theme, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
@ -17,13 +24,22 @@
in
{
devShells.${system}.default = pkgs.mkShell {
inputsFrom = [
opdavies-theme.devShells.${system}.default
];
packages = with pkgs; [
just
lua-language-server
lua54Packages.luacheck
nixd
php
phpactor
phpPackages.composer
sqlite
];
};
formatter.${system} = pkgs.nixfmt-rfc-style;
};
}

15
themes/opdavies/flake.nix Normal file
View file

@ -0,0 +1,15 @@
{
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
tailwindcss
];
};
};
}