summaryrefslogtreecommitdiff
path: root/machines/bosco/default.nix
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2026-08-22 06:24:39 -0600
committerDevin Finlinson <devin.finlinson@pm.me>2026-08-22 06:24:39 -0600
commit14f32e24996805629efec8c9ee28f2e56b75f660 (patch)
tree8ede0ada91cd8678ac52253800a61e61c3ab561a /machines/bosco/default.nix
parentae38485a951968b9aff81e397525818f0c8f68ac (diff)
migrating bosco to new hardware failed, so changing new bosco name
to apollo for ease of maintenance
Diffstat (limited to 'machines/bosco/default.nix')
-rw-r--r--machines/bosco/default.nix55
1 files changed, 19 insertions, 36 deletions
diff --git a/machines/bosco/default.nix b/machines/bosco/default.nix
index 143db1d..621710f 100644
--- a/machines/bosco/default.nix
+++ b/machines/bosco/default.nix
@@ -8,25 +8,26 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
- ./disko.nix
-
./reverse-proxy.nix
- ../biski/portforward.nix
../../modules/nixos/headscale.nix
../../modules/nixos/cgit.nix
];
- nixpkgs.hostPlatform = "x86_64-linux";
- # boot.loader.systemd-boot.enable = true;
- # boot.loader.efi.efiSysMountPoint = "/boot";
- # boot.loader.efi.canTouchEfiVariables = true;
- boot.loader.grub = {
- enable = true;
- device = "nodev";
- efiSupport = true;
- efiInstallAsRemovable = true;
- };
- boot.loader.timeout = 3;
+
+ # Use the GRUB 2 boot loader.
+ boot.loader.grub.enable = true;
+ # 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";
+ boot.loader.timeout = 10;
+ boot.loader.grub.forceInstall = true;
+ boot.loader.grub.extraConfig = ''
+ serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
+ terminal_input serial;
+ terminal_output serial
+ '';
networking.hostName = "bosco"; # Define your hostname.
@@ -39,25 +40,7 @@
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
- # networking.usePredictableInterfaceNames = false;
-
- networking.interfaces."eth0".ipv4 = {
- addresses = [{
- address = "23.131.76.82";
- prefixLength = 32;
- }
- {
- address = "172.16.101.82";
- prefixLength = 24;
- }];
- };
- networking.nameservers = [ "9.9.9.9" ];
- networking.localCommands = ''
- ip route add default via 172.16.101.1 src 23.131.76.82
- ip addr del 172.16.101.82/24 dev eth0
- '';
- # ip addr add 23.131.76.82/32 dev ens18
- # ip route del default
+ networking.usePredictableInterfaceNames = false;
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
@@ -94,8 +77,8 @@
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
- # settings.PermitRootLogin = "no";
- ports = [ 22 ];
+ settings.PermitRootLogin = "no";
+ ports = [ 22 2200];
extraConfig = "LoginGraceTime = 0";
};
@@ -126,7 +109,7 @@
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
- system.stateVersion = "25.11"; # Did you read the comment?
+ system.stateVersion = "23.11"; # Did you read the comment?
}