Skip to content

Commit

Permalink
💚 Fix tests by adding impure build
Browse files Browse the repository at this point in the history
  • Loading branch information
Snuggle committed Nov 3, 2024
1 parent 3c8aa31 commit 43c1f7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ build_cherry_system() {
#NIX_PATH=/home/$USER/.nix-defexpr/channels:nixpkgs=channel:nixos-unstable nix-build '<nixpkgs/nixos>' \
# -I nixos-config=configuration.nix \
# -A system --dry-run
nix build --dry-run --experimental-features 'nix-command flakes' '.#nixosConfigurations.cherry.config.system.build.toplevel'
nix build --dry-run --experimental-features --impure 'nix-command flakes' '.#nixosConfigurations.cherry.config.system.build.toplevel'
}

build_pineapple_system() {
Expand All @@ -44,7 +44,7 @@ build_pineapple_system() {
#NIX_PATH=/home/$USER/.nix-defexpr/channels:nixpkgs=channel:nixos-unstable nix-build '<nixpkgs/nixos>' \
# -I nixos-config=configuration.nix \
# -A system --dry-run
nix build --dry-run --experimental-features 'nix-command flakes' '.#nixosConfigurations.pineapple.config.system.build.toplevel'
nix build --dry-run --experimental-features --impure 'nix-command flakes' '.#nixosConfigurations.pineapple.config.system.build.toplevel'
}

build_pineapple_home() {
Expand All @@ -58,7 +58,7 @@ build_pineapple_home() {
#NIX_PATH=/home/$USER/.nix-defexpr/channels:nixpkgs=channel:nixos-unstable nix-build '<nixpkgs/nixos>' \
# -I nixos-config=configuration.nix \
# -A system --dry-run
nix-shell -p home-manager --command "home-manager --experimental-features 'nix-command flakes' build --flake .#snuggle@pineapple"
nix-shell -p home-manager --command "home-manager --experimental-features 'nix-command flakes' build --flake --impure .#snuggle@pineapple"
}

build_cherry_home() {
Expand All @@ -72,7 +72,7 @@ build_cherry_home() {
#NIX_PATH=/home/$USER/.nix-defexpr/channels:nixpkgs=channel:nixos-unstable nix-build '<nixpkgs/nixos>' \
# -I nixos-config=configuration.nix \
# -A system --dry-run
nix-shell -p home-manager --command "home-manager --experimental-features 'nix-command flakes' build --flake .#snuggle@cherry"
nix-shell -p home-manager --command "home-manager --experimental-features 'nix-command flakes' build --flake --impure .#snuggle@cherry"
}

build_ci_system $@
1 change: 0 additions & 1 deletion hosts/-common/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@
shell = pkgs.fish;
openssh.authorizedKeys.keys = [ (builtins.fetchurl {
url = "https://github.com/${config.users.users.snuggle.name}.keys";
sha256 = "1bvyxgb893q00nfbns7qghc25j7f5dnnnjfd0nbq0cllpjrqqfk6";
}) ];
extraGroups = [ "wheel" "libvirtd" "scanner" "lp" "adbusers" "docker" "networkmanager" ];
};
Expand Down
1 change: 0 additions & 1 deletion hosts/strawberry/darwin-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
home.file.".ssh/authorized_keys" = {
source = builtins.fetchurl {
url = "https://github.com/${config.users.users.snuggle.name}.keys";
sha256 = "1bvyxgb893q00nfbns7qghc25j7f5dnnnjfd0nbq0cllpjrqqfk6";
};
};

Expand Down

0 comments on commit 43c1f7b

Please sign in to comment.