File tree 6 files changed +25
-19
lines changed
6 files changed +25
-19
lines changed Original file line number Diff line number Diff line change 10
10
#];
11
11
12
12
# nix communitys cache server
13
- extra-substituters = [
14
- "https://hadolint.cachix.org"
15
- ] ;
16
- extra-trusted-public-keys = [
17
- "hadolint.cachix.org-1:CdmLJ7MXh5ojKBPUQGYklkbetIdIcC8tgOTGRUnxBjo="
18
- ] ;
13
+ # extra-substituters = [
14
+ # "https://hadolint.cachix.org"
15
+ # ];
16
+ # extra-trusted-public-keys = [
17
+ # "hadolint.cachix.org-1:CdmLJ7MXh5ojKBPUQGYklkbetIdIcC8tgOTGRUnxBjo="
18
+ # ];
19
19
} ;
20
20
21
21
outputs = inputs @ {
206
206
} ;
207
207
208
208
inputs = {
209
- nixpkgs . url = "github:nixos/nixpkgs/nixos-24.05 " ;
209
+ nixpkgs . url = "github:nixos/nixpkgs/nixos-unstable " ;
210
210
nixpkgs-unstable . url = "github:nixos/nixpkgs/nixos-unstable" ;
211
211
# darwin
212
212
nixpkgs-darwin . url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin" ;
217
217
} ;
218
218
219
219
home-manager = {
220
- url = "github:nix-community/home-manager/release-24.05" ;
220
+ #url = "github:nix-community/home-manager/release-24.05";
221
+ url = "github:nix-community/home-manager/master" ;
221
222
inputs . nixpkgs . follows = "nixpkgs" ;
222
223
} ;
223
224
Original file line number Diff line number Diff line change 12
12
ripgrep
13
13
14
14
#-- python
15
- nodePackages . pyright
15
+ pyright
16
16
( python311 . withPackages (
17
17
ps :
18
18
with ps ; [
Original file line number Diff line number Diff line change 12
12
13
13
# nix tool
14
14
# https://github.com/nix-community/nix-melt
15
- nix-melt # A TUI flake.lock viewer
15
+ # nix-melt # A TUI flake.lock viewer
16
16
# https://github.com/utdemir/nix-tree
17
17
nix-tree # A TUI to visualize the dependency graph of a nix derivation
18
18
nix-prefetch-git
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ gc duration="7d" *args="":
49
49
@ nix-collect-garbage --delete-older-than {{ duration }} {{ args}}
50
50
@ sudo nix-collect-garbage --delete-older-than {{ duration }} {{ args}}
51
51
52
+ # 清理所有
53
+ gc-all :
54
+ @ nix-collect-garbage -d
55
+ @ sudo nix-collect-garbage -d
56
+
52
57
# 生成镜像
53
58
[linux ]
54
59
gen-image host format :
Original file line number Diff line number Diff line change 2
2
javaVersion = 17 ;
3
3
in ( _slef : super : {
4
4
maven = super . maven . override {
5
- jdk = super . "jdk${ toString javaVersion } " ;
5
+ jdk_headless = super . "jdk${ toString javaVersion } _headless " ;
6
6
} ;
7
7
} )
You can’t perform that action at this time.
0 commit comments