Skip to content

Commit

Permalink
🔧 some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Sep 18, 2024
1 parent fbb7bef commit 018f212
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ just b

尝试在`wezterm.lua`中配置`front_end = "WebGpu"`

### `Operation not permitted`?

![](assets/imgs/README_2024-09-19_01-08-46.png)

给nix完整的磁盘访问权限

# 部署

> 在本地部署其他机器
Expand Down
Binary file added assets/imgs/README_2024-09-19_01-08-46.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ rebuild-debug host=profile:
rebuild-debug target=profile: set-proxy
#!/usr/bin/env bash
config_target=".#darwinConfigurations.{{target}}.system"
nom build $config_target --extra-experimental-features "nix-command flakes" -v
nix build $config_target --extra-experimental-features "nix-command flakes" -v
# 交互式源码查看
repl:
Expand Down
7 changes: 0 additions & 7 deletions lib/macosSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ in
++ [
({lib, ...}: {
nixpkgs.pkgs = import nixpkgs {inherit system;};
# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
nix.registry.nixpkgs.flake = nixpkgs;

environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
# discard all the default paths, and only use the one from this flake.
nix.nixPath = lib.mkForce ["/etc/nix/inputs"];
})
]
++ (
Expand Down
12 changes: 12 additions & 0 deletions modules/base.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
pkgs,
myvars,
nixpkgs,
lib,
...
} @ args: {
nixpkgs.overlays =
Expand Down Expand Up @@ -84,4 +86,14 @@
];
builders-use-substitutes = true;
};

# make `nix run nixpkgs#nixpkgs` use the same nixpkgs as the one used by this flake.
nix.registry.nixpkgs.flake = nixpkgs;

environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}";
# make `nix repl '<nixpkgs>'` use the same nixpkgs as the one used by this flake.
# discard all the default paths, and only use the one from this flake.
nix.nixPath = lib.mkForce ["/etc/nix/inputs"];
# https://github.com/NixOS/nix/issues/9574
nix.settings.nix-path = lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs";
}

0 comments on commit 018f212

Please sign in to comment.