Update linode.nix

This commit is contained in:
Aaron Honeycutt 2023-03-07 18:21:28 +00:00
parent e767ec4b55
commit b550f22415

View file

@ -4,13 +4,19 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
# ./unstable.nix
./ahoneybun-net.nix
./hydra-ahoneybun-net.nix
./cast-ahoneybun-net.nix
./tildecafe-com.nix
./mstdn-tildecafe-com.nix
]; ];
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [ "console=ttyS0,19200n8" ]; boot.kernelParams = [ "console=ttyS0,19200n8" ];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nix.settings.extra-platforms = [ "aarch64-linux" ]; nix.settings.extra-platforms = [ "aarch64-linux" ];
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@ -39,10 +45,6 @@
terminal_input serial; terminal_input serial;
terminal_output serial terminal_output serial
''; '';
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "nodev"; # or "nodev" for efi only boot.loader.grub.device = "nodev"; # or "nodev" for efi only
boot.loader.timeout = 10; boot.loader.timeout = 10;
@ -51,7 +53,12 @@
allowedTCPPorts = [ 80 443 ]; allowedTCPPorts = [ 80 443 ];
}; };
fileSystems."/mnt/ExtraDrive" = networking.extraHosts =
''
23.32.241.51 r3.o.lencr.org
'';
fileSystems."/mnt/swapfile" =
{ device = "/dev/disk/by-uuid/82672991-fe8a-485a-8dcf-7c8ae1282b6c"; { device = "/dev/disk/by-uuid/82672991-fe8a-485a-8dcf-7c8ae1282b6c";
fsType = "ext4"; fsType = "ext4";
}; };
@ -60,14 +67,14 @@
enable = true; enable = true;
hydraURL = "localhost:3000"; hydraURL = "localhost:3000";
notificationSender = "hydra@localhost"; notificationSender = "hydra@localhost";
buildMachinesFiles = []; #buildMachinesFiles = [];
useSubstitutes = true; useSubstitutes = true;
}; };
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
security.acme.defaults.email = "aaronhoneycutt@proton.me"; security.acme.defaults.email = "aaronhoneycutt@proton.me";
# networking.hostName = "nixos"; # Define your hostname. networking.hostName = "nixos-server"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
@ -79,24 +86,6 @@
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkbOptions in tty.
# };
# Enable the X11 windowing system.
# services.xserver.enable = true;
# Configure keymap in X11
# services.xserver.layout = "us";
# services.xserver.xkbOptions = {
# "eurosign:e";
# "caps:escape" # map caps to escape.
# };
# Enable CUPS to print documents. # Enable CUPS to print documents.
# services.printing.enable = true; # services.printing.enable = true;
@ -112,9 +101,11 @@
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ]; # Enable sudo for the user. extraGroups = [ "wheel" "networkmanager" ]; # Enable sudo for the user.
packages = with pkgs; [ packages = with pkgs; [
neofetch cargo
# firefox flatpak
# thunderbird git
git-lfs
just
]; ];
}; };
@ -136,9 +127,12 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
acme-sh acme-sh
git
inetutils inetutils
mtr mtr
neofetch
sysstat sysstat
toybox
tree tree
wget wget
]; ];