migrated networking related items to separate config file
This commit is contained in:
parent
5c214ffffa
commit
5f6358365b
|
@ -29,13 +29,6 @@
|
|||
openjdk8
|
||||
];
|
||||
|
||||
# Enable mullvad vpn
|
||||
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
||||
services.mullvad-vpn.enable = true;
|
||||
|
||||
# Enable tailscale
|
||||
services.tailscale.enable = true;
|
||||
|
||||
# install Steam
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration.nix
|
||||
./bootloader-configuration.nix
|
||||
./surfacebook-configuration.nix
|
||||
./networking-configuration.nix
|
||||
./application-configuration.nix
|
||||
./software-development-configuration.nix
|
||||
./school-configuration.nix
|
||||
|
@ -12,12 +13,6 @@
|
|||
./faf-linux.nix
|
||||
];
|
||||
|
||||
# Enable networking and bluetooth
|
||||
networking.networkmanager.enable = true;
|
||||
systemd.services.NetworkManager-wait-online.enable = false; #disable wait online since it is broken
|
||||
networking.hostName = "surface";
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# Set time zone.
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
|
@ -135,23 +130,20 @@
|
|||
};
|
||||
};
|
||||
|
||||
# enable mac address randomization
|
||||
networking.networkmanager.wifi.macAddress = "random";
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = [ pkgs.brlaser ];
|
||||
|
||||
# remote build
|
||||
nix.buildMachines = [
|
||||
{
|
||||
/* {
|
||||
hostName = "talos";
|
||||
system = "x86_64-linux";
|
||||
protocol = "ssh-ng";
|
||||
speedFactor = 4;
|
||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||
mandatoryFeatures = [ ];
|
||||
}
|
||||
} */
|
||||
{
|
||||
hostName = "january";
|
||||
system = "x86_64-linux";
|
||||
|
@ -160,14 +152,14 @@
|
|||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||
mandatoryFeatures = [ ];
|
||||
}
|
||||
{
|
||||
/* {
|
||||
hostName = "pubnix";
|
||||
system = "x86_64-linux";
|
||||
protocol = "ssh-ng";
|
||||
speedFactor = 2;
|
||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||
mandatoryFeatures = [ ];
|
||||
}
|
||||
} */
|
||||
];
|
||||
nix.distributedBuilds = true;
|
||||
# optional, useful when the builder has a faster internet connection than yours
|
||||
|
|
20
networking-configuration.nix
Normal file
20
networking-configuration.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# Enable networking and bluetooth
|
||||
networking = {
|
||||
hostName = "surface";
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
wifi.macAddress = "random";
|
||||
};
|
||||
};
|
||||
systemd.services.NetworkManager-wait-online.enable = false; #disable wait online since it is broken
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
# Enable mullvad vpn
|
||||
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
||||
services.mullvad-vpn.enable = true;
|
||||
|
||||
# Enable tailscale
|
||||
services.tailscale.enable = true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user