Add theme flake.nix to add tailwindcss
This commit is contained in:
parent
0dbbd96cda
commit
8a760f433f
3 changed files with 51 additions and 3 deletions
19
flake.lock
generated
19
flake.lock
generated
|
@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
20
flake.nix
20
flake.nix
|
@ -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
15
themes/opdavies/flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue