# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). {lib, ...}: { # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.timeout = 5; boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.efiSysMountPoint = "/boot/efi"; # I'm using Nix OS, it's logo is a snowflake and the computer is # a lot taller than the pi it's replacing, so Everest! :3 :3 networking.hostName = "Everest"; # Define your hostname. # Set up networking networking = { wireless.enable = false; # Computer doesn't have wifi enableIPv6 = false; useNetworkd = true; dhcpcd.enable = false; interfaces.eno1 = { wakeOnLan.enable = true; ipv4.addresses = [ { address = "192.168.1.160"; prefixLength = 8; } ]; }; # I use networkd, so I need to declare the interface for the default gateway defaultGateway = { address = "192.168.1.1"; interface = "eno1"; }; nameservers = ["9.9.9.9"]; }; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.toast = { extraGroups = ["networkmanager" "transmission"]; }; # Large builds (the linux kernel) fail to build because /tmp is too small when using tmpfs boot.tmp.useTmpfs = false; home-manager = { users.toast = {config, ...}: { home = { file = { # This symlinks the Transmission downloads folder into my user's downloads folder for easy access "Downloads/Transmission".source = config.lib.file.mkOutOfStoreSymlink "/var/lib/transmission/Downloads"; }; }; }; }; }