Compare commits

...

5 Commits

Author SHA1 Message Date
chn
54469c6252 add logseq 2023-12-03 14:45:12 +08:00
chn
32fb050639 packages: add autograd 2023-12-02 17:04:18 +08:00
chn
34f54d458a packages.vscode: add lextudio.restructuredtext 2023-12-02 15:21:17 +08:00
chn
4d543b2140 ccache: move cache to /var/lib/ccache 2023-11-30 20:17:03 +08:00
chn
c043b74401 fix ccache 2023-11-30 14:41:48 +08:00
3 changed files with 9 additions and 8 deletions

6
flake.lock generated
View File

@@ -1215,11 +1215,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1700621824,
"narHash": "sha256-6Gm4eN28kHM96Y4sao2CeSMg3rlviPAgFHfu7OVmdAw=",
"lastModified": 1701326464,
"narHash": "sha256-WGt5wjvkzCgRVXCS7OHd6vyv2xX6RZDpZk5i/vxLc1U=",
"owner": "CHN-beta",
"repo": "nixpkgs",
"rev": "4d631ac5b2af635549d7cbdb16247928d77c848f",
"rev": "76376edf425b9ddc8fb71d5cc4d3a3cb4f2486f6",
"type": "github"
},
"original": {

View File

@@ -212,7 +212,6 @@ inputs:
customPkgs = with inputs.pkgs; [ zsh-nix-shell ];
};
};
ccache.enable = true;
command-not-found.enable = false;
adb.enable = true;
gnupg.agent = { enable = true; enableSSHSupport = true; };
@@ -324,7 +323,6 @@ inputs:
))
(attrsToList servers)));
};
nix.settings.extra-sandbox-paths = [ inputs.config.programs.ccache.cacheDir ];
nixpkgs.config =
{
permittedInsecurePackages = with inputs.pkgs;
@@ -358,7 +356,7 @@ inputs:
# password and key management
bitwarden
# office
unstablePackages.crow-translate zotero pandoc ydict
unstablePackages.crow-translate zotero pandoc ydict unstablePackages.logseq
# media
mpv nomacs
# themes
@@ -395,6 +393,8 @@ inputs:
feiskyer.chatgpt-copilot yukiuuh2936.vscode-modern-fortran-formatter wolframresearch.wolfram
njpipeorgan.wolfram-language-notebook brettm12345.nixfmt-vscode webfreak.debug
gruntfuggly.todo-tree
# restrctured text
lextudio.restructuredtext trond-snekvik.simple-rst
];
}
)
@@ -546,7 +546,7 @@ inputs:
];
_pythonPackages = [(pythonPackages: with pythonPackages;
[
phonopy tensorflow keras openai scipy scikit-learn jupyterlab
phonopy tensorflow keras openai scipy scikit-learn jupyterlab autograd
])];
_prebuildPackages =
[

View File

@@ -33,7 +33,8 @@ inputs:
(
mkConditional (nixpkgs.march != null)
{
programs.ccache.enable = true;
programs.ccache = { enable = true; cacheDir = "/var/lib/ccache"; };
nix.settings.extra-sandbox-paths = [ inputs.config.programs.ccache.cacheDir ];
nixpkgs =
{
hostPlatform = { system = "x86_64-linux"; gcc = { arch = nixpkgs.march; tune = nixpkgs.march; }; };