repo: add skelet
This commit is contained in:
commit
9099f089b9
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
public/
|
||||
result/
|
1
.nixd.json
Normal file
1
.nixd.json
Normal file
@ -0,0 +1 @@
|
||||
{"formatting":{"command":"alejandra"}}
|
23
config.toml
Normal file
23
config.toml
Normal file
@ -0,0 +1,23 @@
|
||||
# The URL the site will be built for
|
||||
base_url = "https://project-cloud.net"
|
||||
|
||||
# Whether to automatically compile all Sass files in the sass directory
|
||||
compile_sass = true
|
||||
|
||||
# Whether to build a search index to be used later on by a JavaScript library
|
||||
build_search_index = false
|
||||
|
||||
theme = "anemone"
|
||||
|
||||
[markdown]
|
||||
highlight_code = true
|
||||
|
||||
[extra]
|
||||
list_pages = true
|
||||
header_nav = [
|
||||
{ url = "/", name_en = "/home/"},
|
||||
{ url = "/blog", name_en = "/blog/"},
|
||||
{ url = "https://git.project-cloud.net", name_en = "/git/"},
|
||||
{ url = "https://cloud.project-cloud.net", name_en = "/cloud/"}
|
||||
]
|
||||
|
15
content/_index.md
Normal file
15
content/_index.md
Normal file
@ -0,0 +1,15 @@
|
||||
+++
|
||||
+++
|
||||
|
||||
## Project Cloud
|
||||
|
||||
Cloud and blog platform for personal and consulting projects.
|
||||
|
||||
|
||||
## Public Key
|
||||
|
||||
WP
|
||||
|
||||
## Contact
|
||||
- Email: [asmir.abdulahovic@gmail.com](mailto:asmir.abdulahovic@gmail.com)
|
||||
|
44
flake.lock
generated
Normal file
44
flake.lock
generated
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1699725108,
|
||||
"narHash": "sha256-NTiPW4jRC+9puakU4Vi8WpFEirhp92kTOSThuZke+FA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "911ad1e67f458b6bcf0278fa85e33bb9924fed7e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"theme_anemone": "theme_anemone"
|
||||
}
|
||||
},
|
||||
"theme_anemone": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1699399376,
|
||||
"narHash": "sha256-u2baLVhc/tWd9h9+g9vKBN1m4qG23uL1HUizFigOJXw=",
|
||||
"owner": "Speyll",
|
||||
"repo": "anemone",
|
||||
"rev": "565a6e84e3054a45ec31729125801ab1f403c936",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Speyll",
|
||||
"repo": "anemone",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
47
flake.nix
Normal file
47
flake.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.theme_anemone = {
|
||||
url = "github:Speyll/anemone";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
theme_anemone,
|
||||
}: let
|
||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
||||
url = "https://project-cloud.net";
|
||||
name = "project-cloud";
|
||||
theme = theme_anemone;
|
||||
in {
|
||||
packages = forAllSystems (system: {
|
||||
default = pkgs.${system}.stdenv.mkDerivation {
|
||||
inherit name;
|
||||
nativeBuildInputs = with pkgs.${system}; [zola];
|
||||
|
||||
src = ./.;
|
||||
submodules = true;
|
||||
|
||||
buildPhase = ''
|
||||
ls ${theme}/
|
||||
ln -s ${theme} themes/anemone
|
||||
zola build -u ${url}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r public/ $out/
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
devShells = forAllSystems (system: {
|
||||
default = pkgs.${system}.mkShellNoCC {
|
||||
packages = with pkgs.${system}; [zola];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
1
result
Symbolic link
1
result
Symbolic link
@ -0,0 +1 @@
|
||||
/nix/store/1ilgcfm1rjxvvn6ak0zr76n53y3xbwg1-project-cloud
|
0
templates/.gitkeep
Normal file
0
templates/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user