summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-11-24 18:28:05 +0100
committeraristote <quentin.aristote@irif.fr>2025-11-24 18:31:16 +0100
commit496d4545878eddccc99d6fafdcda3f36a06bdbb8 (patch)
tree137256a46ec7b88a9c7234de4268caafdafc0cf4
parent9bd9322946c3f8e0634e3931e182d57b05941af7 (diff)
split flake and devenv
-rw-r--r--.gitignore30
-rw-r--r--.latexmkrc9
l---------.pre-commit-config.yaml2
-rw-r--r--devenv.lock219
-rw-r--r--devenv.nix12
-rw-r--r--devenv.yaml5
-rw-r--r--flake.lock215
-rw-r--r--flake.nix78
8 files changed, 308 insertions, 262 deletions
diff --git a/.gitignore b/.gitignore
index 60040bd..6c214f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-### LaTeX
+### TeX
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
@@ -27,7 +27,9 @@
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
+*.bbl-SAVE-ERROR
*.bcf
+*.bcf-SAVE-ERROR
*.blg
*-blx.aux
*-blx.bib
@@ -40,6 +42,8 @@
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
+*.rubbercache
+rubber.cache
## Build tool directories for auxiliary files
# latexrun
@@ -56,6 +60,9 @@ acs-*.bib
# amsthm
*.thm
+# attachfile2
+*.atfi
+
# beamer
*.nav
*.pre
@@ -64,6 +71,7 @@ acs-*.bib
# changes
*.soc
+*.loc
# comment
*.cut
@@ -107,8 +115,11 @@ acs-*.bib
*.acn
*.acr
*.glg
+*.glg-abr
*.glo
+*.glo-abr
*.gls
+*.gls-abr
*.glsdefs
*.lzo
*.lzs
@@ -139,6 +150,9 @@ acs-*.bib
*.trc
*.xref
+# hypdoc
+*.hd
+
# hyperref
*.brf
@@ -148,6 +162,9 @@ acs-*.bib
# *.tikz
*-tikzDictionary
+# latexindent will create succesive backup files by default
+#*.bak*
+
# listings
*.lol
@@ -170,6 +187,7 @@ acs-*.bib
# minted
_minted*
+*.data.minted
*.pyg
# morewrites
@@ -197,6 +215,10 @@ _minted*
# scrwfile
*.wrt
+# spelling
+*.spell.bad
+*.spell.txt
+
# svg
svg-inkscape/
@@ -262,6 +284,9 @@ TSWLatexianTemp*
*.bak
*.sav
+# latexindent.pl
+*.bak[0-9]*
+
# Texpad
.texpadtmp
@@ -305,4 +330,7 @@ TSWLatexianTemp*
.devenv/
.devenv.flake.nix
devenv.local.nix
+.pre-commit-config.yaml
+### miscellaneous
+*-SAVE-ERROR
diff --git a/.latexmkrc b/.latexmkrc
index 3f5b904..688ee58 100644
--- a/.latexmkrc
+++ b/.latexmkrc
@@ -1,5 +1,8 @@
-$pdf_mode=4;
-$dvi_mode=0;
-$ps_mode=0;
+$pdf_mode = 4;
+$dvi_mode = 0;
+$ps_mode = 0;
+
+$clean_ext = 'fdb_latexmk nav prv_%R.fmt prv_%R.log prv/*/* prv/* prv -SAVE-ERROR snm vrb';
+$clean_full_ext = 'bbl';
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cfe6789..063bcbb 120000
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1 +1 @@
-/nix/store/8i64kwdav8v34wsi2lnilr9yjd2z7v84-pre-commit-config.json \ No newline at end of file
+/nix/store/pd9w1vjka25pfsn8n95dg3ach93ym6vk-pre-commit-config.json \ No newline at end of file
diff --git a/devenv.lock b/devenv.lock
new file mode 100644
index 0000000..2d1d202
--- /dev/null
+++ b/devenv.lock
@@ -0,0 +1,219 @@
+{
+ "nodes": {
+ "devenv": {
+ "locked": {
+ "dir": "src/modules",
+ "lastModified": 1763939584,
+ "owner": "cachix",
+ "repo": "devenv",
+ "rev": "1ebc7baa0726314d24bb5cc34d5fc7927aa57929",
+ "type": "github"
+ },
+ "original": {
+ "dir": "src/modules",
+ "owner": "cachix",
+ "repo": "devenv",
+ "type": "github"
+ }
+ },
+ "flake-compat": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1761588595,
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
+ "type": "github"
+ },
+ "original": {
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "type": "github"
+ }
+ },
+ "flake-parts": {
+ "inputs": {
+ "nixpkgs-lib": "nixpkgs-lib"
+ },
+ "locked": {
+ "lastModified": 1763759067,
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
+ "type": "github"
+ },
+ "original": {
+ "id": "flake-parts",
+ "type": "indirect"
+ }
+ },
+ "flake-parts_2": {
+ "inputs": {
+ "nixpkgs-lib": [
+ "my-nixpkgs",
+ "nur",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1763759067,
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "type": "github"
+ }
+ },
+ "git-hooks": {
+ "inputs": {
+ "flake-compat": "flake-compat",
+ "gitignore": "gitignore",
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1763741496,
+ "owner": "cachix",
+ "repo": "git-hooks.nix",
+ "rev": "20e71a403c5de9ce5bd799031440da9728c1cda1",
+ "type": "github"
+ },
+ "original": {
+ "owner": "cachix",
+ "repo": "git-hooks.nix",
+ "type": "github"
+ }
+ },
+ "gitignore": {
+ "inputs": {
+ "nixpkgs": [
+ "git-hooks",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1762808025,
+ "owner": "hercules-ci",
+ "repo": "gitignore.nix",
+ "rev": "cb5e3fdca1de58ccbc3ef53de65bd372b48f567c",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hercules-ci",
+ "repo": "gitignore.nix",
+ "type": "github"
+ }
+ },
+ "my-nixpkgs": {
+ "inputs": {
+ "flake-parts": "flake-parts",
+ "nixpkgs": "nixpkgs",
+ "nur": "nur"
+ },
+ "locked": {
+ "lastModified": 1763716547,
+ "owner": "qaristote",
+ "repo": "my-nixpkgs",
+ "rev": "c032f4c09c83feb933d520ccce80e70a1516ca35",
+ "type": "github"
+ },
+ "original": {
+ "owner": "qaristote",
+ "repo": "my-nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1763806073,
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "878e468e02bfabeda08c79250f7ad583037f2227",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "type": "indirect"
+ }
+ },
+ "nixpkgs-lib": {
+ "locked": {
+ "lastModified": 1763860531,
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "rev": "11186dda9f7f43bbbfae3467c07660885263e801",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "type": "github"
+ }
+ },
+ "nixpkgs_2": {
+ "locked": {
+ "lastModified": 1763835633,
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "050e09e091117c3d7328c7b2b7b577492c43c134",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_3": {
+ "locked": {
+ "lastModified": 1763806073,
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "878e468e02bfabeda08c79250f7ad583037f2227",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nur": {
+ "inputs": {
+ "flake-parts": "flake-parts_2",
+ "nixpkgs": "nixpkgs_2"
+ },
+ "locked": {
+ "lastModified": 1763974360,
+ "owner": "nix-community",
+ "repo": "NUR",
+ "rev": "aec2fa7ca182261776cf24d5b99af99dc81d74c8",
+ "type": "github"
+ },
+ "original": {
+ "id": "nur",
+ "type": "indirect"
+ }
+ },
+ "root": {
+ "inputs": {
+ "devenv": "devenv",
+ "git-hooks": "git-hooks",
+ "my-nixpkgs": "my-nixpkgs",
+ "nixpkgs": "nixpkgs_3",
+ "pre-commit-hooks": [
+ "git-hooks"
+ ]
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/devenv.nix b/devenv.nix
new file mode 100644
index 0000000..9cda53a
--- /dev/null
+++ b/devenv.nix
@@ -0,0 +1,12 @@
+{ inputs, ... }:
+{
+ imports = [ inputs.my-nixpkgs.devenvModules.personal ];
+ languages = {
+ nix.enable = true;
+ texlive = {
+ enable = true;
+ latexmk.enable = true;
+ packages = tl: { inherit (tl) scheme-full; };
+ };
+ };
+}
diff --git a/devenv.yaml b/devenv.yaml
new file mode 100644
index 0000000..38233b1
--- /dev/null
+++ b/devenv.yaml
@@ -0,0 +1,5 @@
+inputs:
+ nixpkgs:
+ url: github:NixOS/nixpkgs/nixpkgs-unstable
+ my-nixpkgs:
+ url: github:qaristote/my-nixpkgs
diff --git a/flake.lock b/flake.lock
index d6d6720..67966cc 100644
--- a/flake.lock
+++ b/flake.lock
@@ -63,27 +63,6 @@
"type": "github"
}
},
- "devenv_3": {
- "inputs": {
- "flake-compat": "flake-compat_3",
- "nix": "nix_3",
- "nixpkgs": "nixpkgs_5",
- "pre-commit-hooks": "pre-commit-hooks_3"
- },
- "locked": {
- "lastModified": 1709300857,
- "narHash": "sha256-jkK99RiSt5YfLWj3kAQoB8OB3idxLTdT9kfo/wILbjw=",
- "owner": "cachix",
- "repo": "devenv",
- "rev": "f0319af4f966fb8bc25c6429f4f2e097e79116c2",
- "type": "github"
- },
- "original": {
- "owner": "cachix",
- "repo": "devenv",
- "type": "github"
- }
- },
"flake-compat": {
"flake": false,
"locked": {
@@ -116,22 +95,6 @@
"type": "github"
}
},
- "flake-compat_3": {
- "flake": false,
- "locked": {
- "lastModified": 1673956053,
- "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
- "owner": "edolstra",
- "repo": "flake-compat",
- "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
- "type": "github"
- },
- "original": {
- "owner": "edolstra",
- "repo": "flake-compat",
- "type": "github"
- }
- },
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
@@ -236,24 +199,6 @@
"type": "github"
}
},
- "flake-utils_3": {
- "inputs": {
- "systems": "systems_3"
- },
- "locked": {
- "lastModified": 1685518550,
- "narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
- "owner": "numtide",
- "repo": "flake-utils",
- "rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "flake-utils",
- "type": "github"
- }
- },
"gitignore": {
"inputs": {
"nixpkgs": [
@@ -301,28 +246,6 @@
"type": "github"
}
},
- "gitignore_3": {
- "inputs": {
- "nixpkgs": [
- "devenv",
- "pre-commit-hooks",
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1660459072,
- "narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
- "owner": "hercules-ci",
- "repo": "gitignore.nix",
- "rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
- "type": "github"
- },
- "original": {
- "owner": "hercules-ci",
- "repo": "gitignore.nix",
- "type": "github"
- }
- },
"lowdown-src": {
"flake": false,
"locked": {
@@ -355,22 +278,6 @@
"type": "github"
}
},
- "lowdown-src_3": {
- "flake": false,
- "locked": {
- "lastModified": 1633514407,
- "narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=",
- "owner": "kristapsdz",
- "repo": "lowdown",
- "rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8",
- "type": "github"
- },
- "original": {
- "owner": "kristapsdz",
- "repo": "lowdown",
- "type": "github"
- }
- },
"my-nixpkgs": {
"inputs": {
"devenv": "devenv_2",
@@ -395,7 +302,7 @@
"my-nixpkgs_2": {
"inputs": {
"flake-parts": "flake-parts_4",
- "nixpkgs": "nixpkgs_6",
+ "nixpkgs": "nixpkgs_5",
"nur": "nur_2"
},
"locked": {
@@ -463,30 +370,6 @@
"type": "github"
}
},
- "nix_3": {
- "inputs": {
- "lowdown-src": "lowdown-src_3",
- "nixpkgs": [
- "devenv",
- "nixpkgs"
- ],
- "nixpkgs-regression": "nixpkgs-regression_3"
- },
- "locked": {
- "lastModified": 1676545802,
- "narHash": "sha256-EK4rZ+Hd5hsvXnzSzk2ikhStJnD63odF7SzsQ8CuSPU=",
- "owner": "domenkozar",
- "repo": "nix",
- "rev": "7c91803598ffbcfe4a55c44ac6d49b2cf07a527f",
- "type": "github"
- },
- "original": {
- "owner": "domenkozar",
- "ref": "relaxed-flakes",
- "repo": "nix",
- "type": "github"
- }
- },
"nixpkgs": {
"locked": {
"lastModified": 1678875422,
@@ -607,22 +490,6 @@
"type": "github"
}
},
- "nixpkgs-regression_3": {
- "locked": {
- "lastModified": 1643052045,
- "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
- "type": "github"
- }
- },
"nixpkgs-stable": {
"locked": {
"lastModified": 1685801374,
@@ -655,22 +522,6 @@
"type": "github"
}
},
- "nixpkgs-stable_3": {
- "locked": {
- "lastModified": 1685801374,
- "narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "ref": "nixos-23.05",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
"nixpkgs_2": {
"locked": {
"lastModified": 1695978539,
@@ -717,22 +568,6 @@
},
"nixpkgs_5": {
"locked": {
- "lastModified": 1678875422,
- "narHash": "sha256-T3o6NcQPwXjxJMn2shz86Chch4ljXgZn746c2caGxd8=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "126f49a01de5b7e35a43fd43f891ecf6d3a51459",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "ref": "nixpkgs-unstable",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
- "nixpkgs_6": {
- "locked": {
"lastModified": 1702938738,
"narHash": "sha256-O7Vb0xC9s4Dmgxj8APEpuuMj7HsLgPbpy1UKvNVJp7o=",
"owner": "NixOS",
@@ -745,7 +580,7 @@
"type": "indirect"
}
},
- "nixpkgs_7": {
+ "nixpkgs_6": {
"locked": {
"lastModified": 0,
"narHash": "sha256-TsySgcWm/GlbYdL3AEva49ceeI2BdPQ7muwfYNr1fwo=",
@@ -847,41 +682,12 @@
"type": "github"
}
},
- "pre-commit-hooks_3": {
- "inputs": {
- "flake-compat": [
- "devenv",
- "flake-compat"
- ],
- "flake-utils": "flake-utils_3",
- "gitignore": "gitignore_3",
- "nixpkgs": [
- "devenv",
- "nixpkgs"
- ],
- "nixpkgs-stable": "nixpkgs-stable_3"
- },
- "locked": {
- "lastModified": 1704725188,
- "narHash": "sha256-qq8NbkhRZF1vVYQFt1s8Mbgo8knj+83+QlL5LBnYGpI=",
- "owner": "cachix",
- "repo": "pre-commit-hooks.nix",
- "rev": "ea96f0c05924341c551a797aaba8126334c505d2",
- "type": "github"
- },
- "original": {
- "owner": "cachix",
- "repo": "pre-commit-hooks.nix",
- "type": "github"
- }
- },
"root": {
"inputs": {
"data": "data",
- "devenv": "devenv_3",
"flake-parts": "flake-parts_3",
"my-nixpkgs": "my-nixpkgs_2",
- "nixpkgs": "nixpkgs_7"
+ "nixpkgs": "nixpkgs_6"
}
},
"systems": {
@@ -913,21 +719,6 @@
"repo": "default",
"type": "github"
}
- },
- "systems_3": {
- "locked": {
- "lastModified": 1681028828,
- "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
- "owner": "nix-systems",
- "repo": "default",
- "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
- "type": "github"
- },
- "original": {
- "owner": "nix-systems",
- "repo": "default",
- "type": "github"
- }
}
},
"root": "root",
diff --git a/flake.nix b/flake.nix
index 2497796..ad3bd84 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,58 +3,46 @@
inputs = {
data.url = "github:qaristote/info";
- devenv.url = "github:cachix/devenv";
my-nixpkgs.url = "github:qaristote/my-nixpkgs";
- nixpkgs = {};
+ nixpkgs = { };
};
- nixConfig = {
- extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
- extra-trusted-substituters = "https://devenv.cachix.org";
- };
-
- outputs = {
- flake-parts,
- my-nixpkgs,
- ...
- } @ inputs:
- flake-parts.lib.mkFlake {inherit inputs;} ({
- self,
- lib,
+ outputs =
+ {
+ flake-parts,
+ my-nixpkgs,
...
- }: {
- imports = builtins.attrValues {inherit (my-nixpkgs.flakeModules) personal devenv;};
+ }@inputs:
+ flake-parts.lib.mkFlake { inherit inputs; } (
+ {
+ self,
+ lib,
+ ...
+ }:
+ {
+ imports = builtins.attrValues { inherit (my-nixpkgs.flakeModules) personal; };
- flake.lib = import ./lib {inherit lib;};
+ flake.lib = import ./lib { inherit lib; };
- perSystem = {pkgs, ...}: let
- latex = self.lib.pp.latex;
- cv = import ./default.nix {
- inherit pkgs latex;
- data = inputs.data.lib.formatWith {
- inherit pkgs;
- markup = latex;
- };
- };
- in {
- packages = {
- default = cv.pdf;
- cv = cv.pdf;
- cv_src = cv.src;
- };
- devenv.shells.default = {
- languages = {
- nix.enable = true;
- texlive = {
- enable = true;
- packages = cv.latexDeps;
- latexmk = {
- enable = true;
- output.pdf.enable = true;
+ perSystem =
+ { pkgs, ... }:
+ let
+ latex = self.lib.pp.latex;
+ cv = import ./default.nix {
+ inherit pkgs latex;
+ data = inputs.data.lib.formatWith {
+ inherit pkgs;
+ markup = latex;
};
};
+ in
+ {
+ packages = {
+ default = cv.pdf;
+ cv = cv.pdf;
+ cv_src = cv.src;
+ };
};
- };
- };
- });
+ }
+ );
}