diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..467615a --- /dev/null +++ b/flake.nix @@ -0,0 +1,38 @@ +{ + description = "My CV project"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; + devenv.url = "github:cachix/devenv"; + }; + + outputs = inputs@{ flake-parts, nixpkgs, ... }: + flake-parts.lib.mkFlake { inherit inputs; } { + imports = [ + inputs.devenv.flakeModule + ]; + systems = nixpkgs.lib.systems.flakeExposed; + perSystem = { config, self', inputs', pkgs, system, ... }: { + + packages.default = pkgs.hello; + + devenv.shells.texlive = { + packages = [ config.packages.default pkgs.noto-fonts-cjk-sans pkgs.inotify-tools pkgs.entr ]; + languages.texlive.enable = true; + languages.texlive.packages = [ + "scheme-medium" + "xifthen" + "ifmtarg" + "titlesec" + "titling" + "libertine" + "cjk" + "noto" + ]; + enterShell = '' + echo this is my cv project shell. + ''; + }; + }; + }; +} |
