Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
heywoodlh committed Jul 20, 2023
1 parent 6c4899a commit 658d1b1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 11 additions & 1 deletion nixos/hosts/nix-ext-net/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:

{
imports =
Expand Down Expand Up @@ -75,5 +75,15 @@
flake = "github:heywoodlh/nixos-configs#nix-ext-net";
};

# Disable squid client on this system
# Prevents recursive dependencies
# I.E. squid not able to come up due to squid not being up
networking.proxy = {
default = lib.mkForce null;
httpProxy = lib.mkForce config.networking.proxy.default;
httpsProxy = lib.mkForce config.networking.proxy.default;
noProxy = lib.mkForce config.networking.proxy.default;
};

system.stateVersion = "22.11";
}
7 changes: 7 additions & 0 deletions nixos/server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ in {
pkgs.zsh
];

# Quick fix: https://github.com/NixOS/nixpkgs/issues/244159#issuecomment-1640353626
nix.nixPath = [
"nixpkgs=https://github.com/NixOS/nixpkgs/archive/b6bbc53029a31f788ffed9ea2d459f0bb0f0fbfc.tar.gz"
"nixos-config=/etc/nixos/configuration.nix"
"/nix/var/nix/profiles/per-user/root/channels"
];

# Enable Docker
virtualisation = {
docker.enable = true;
Expand Down

0 comments on commit 658d1b1

Please sign in to comment.