diff --git a/server-config/configuration.nix b/server-config/configuration.nix index d9dc4ec..d85dc21 100644 --- a/server-config/configuration.nix +++ b/server-config/configuration.nix @@ -2,14 +2,19 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ inputs, config, pkgs, lib, ... }: +{ + inputs, + config, + pkgs, + lib, + ... +}: { - imports = - [ - # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ]; # Use the GRUB 2 boot loader. boot.loader.grub.enable = true; @@ -36,9 +41,15 @@ auto-optimise-store = true; # Required by Cachix to be used as non-root user - trusted-users = [ "root" "alice" ]; + trusted-users = [ + "root" + "alice" + ]; - experimental-features = [ "nix-command" "flakes" ]; + experimental-features = [ + "nix-command" + "flakes" + ]; }; extraOptions = '' @@ -64,15 +75,19 @@ isNormalUser = true; home = "/home/alice"; description = "Alice Foobar"; - extraGroups = [ "wheel" "networkmanager" ]; + extraGroups = [ + "wheel" + "networkmanager" + ]; packages = with pkgs; [ tldr ]; hashedPassword = "$y$j9T$7AufeqRXQaD9CxeBmwBUt0$.qNf/QdO5BGc0peHvHzDQqs1B48D0pYw9PhIDzcYAK8"; - openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGzXqcOu6/EjS60Ke55w4hj//lY6u3S1DYPoSd7yjdR3 alice@foobar" ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGzXqcOu6/EjS60Ke55w4hj//lY6u3S1DYPoSd7yjdR3 alice@foobar" + ]; }; - # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ @@ -91,9 +106,11 @@ # Enable Nix-ld for remote VSCode SSH to work programs.nix-ld.enable = true; environment.variables = { - NIX_LD_LIBRARY_PATH = lib.mkDefault (lib.makeLibraryPath [ - pkgs.stdenv.cc.cc - ]); + NIX_LD_LIBRARY_PATH = lib.mkDefault ( + lib.makeLibraryPath [ + pkgs.stdenv.cc.cc + ] + ); NIX_LD = lib.mkDefault (lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker"); }; @@ -106,7 +123,10 @@ }; # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedTCPPorts = [ + 80 + 443 + ]; networking.useDHCP = false; networking.interfaces.eth0.useDHCP = true;