aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2024-07-12 23:55:34 +0000
committerKumar Damani <me@kumardamani.net>2024-07-12 23:55:34 +0000
commit950b88b493509bbf523aea25b35663fe8f568071 (patch)
tree786adeed2eb3d4f16eae2f8948eeae13c990f770 /flake.nix
Initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix38
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.
+ '';
+ };
+ };
+ };
+}