diff --git a/.gitignore b/.gitignore index 349c2d2..54e16e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ static/all.ics +.envrc # Created by https://www.toptal.com/developers/gitignore/api/windows,linux,macos,hugo # Edit at https://www.toptal.com/developers/gitignore?templates=windows,linux,macos,hugo @@ -100,4 +101,4 @@ shell.nix .direnv # Python -.venv \ No newline at end of file +.venv diff --git a/TODO.md b/TODO.md index 7401796..10121f4 100644 --- a/TODO.md +++ b/TODO.md @@ -2,7 +2,8 @@ - DSGVO-compliant Datenschutzerklärung reinbasteln - Entscheiden, welche Seiten sonst noch konvertiert werden sollen und welche in die ewigen Datengründe gehen können -- add nix config to repo + + # Done @@ -17,4 +18,3 @@ - Bestehende Datengarten-Termine konvertieren - ggf. template mit frontmatter - Theme forken, alle assets sollten lokal gehosted sein und nicht von irgendwelchen CDNs bezogen werden (HTTP/2 ftw!) - diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..6cc6b35 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1741332913, + "narHash": "sha256-ri1e8ZliWS3Jnp9yqpKApHaOo7KBN33W8ECAKA4teAQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "20755fa05115c84be00b04690630cb38f0a203ad", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a52b5ad --- /dev/null +++ b/flake.nix @@ -0,0 +1,40 @@ +{ + description = "A flake containing a development environment for the CCCB website."; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; + }; + + outputs = + { self, nixpkgs }: + let + forAllSystems = + f: + nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( + system: + f rec { + pkgs = nixpkgs.legacyPackages.${system}; + inherit system; + } + ); + in + { + devShells = forAllSystems ( + { pkgs, ... }: + { + default = pkgs.mkShell rec { + packages = with pkgs; [ + hugo + go + (pkgs.python3.withPackages (python-pkgs: [ + python-pkgs.icalendar + python-pkgs.pytz + ])) + ]; + }; + } + ); + + formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-rfc-style); + }; +}