Browse Source

Remove retired host machines

main
parent
commit
d5a331dd3d
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 0
      hosts/acernitro/.git-keep
  2. 53
      hosts/acernitro/configuration.nix
  3. 9
      hosts/acernitro/default.nix
  4. 37
      hosts/acernitro/hardware.nix
  5. 0
      hosts/homecloud/.git-keep
  6. 50
      hosts/homecloud/configuration.nix
  7. 9
      hosts/homecloud/default.nix
  8. 43
      hosts/homecloud/hardware.nix
  9. 0
      hosts/raspberry/.git-keep
  10. 36
      hosts/raspberry/configuration.nix
  11. 9
      hosts/raspberry/default.nix
  12. 49
      hosts/raspberry/hardware.nix

0
hosts/acernitro/.git-keep

53
hosts/acernitro/configuration.nix

@ -1,53 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ config, pkgs, inputs, ... }:
{
time.timeZone = "America/Toronto";
networking.hostName = "acernitro";
networking.firewall.enable = false;
networking.wireless.enable = true;
networking.wireless.userControlled.enable = true;
networking.useDHCP = false;
networking.interfaces.enp6s0f1.useDHCP = true;
networking.interfaces.wlp0s20f3.useDHCP = true;
networking.wireless.networks = {
MyWiFi_5C1870 = {
priority = 3;
pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326";
};
BELL182 = {
priority = 2;
pskRaw = "8b3c114c695c5013bbcf5fc0af781c7872f95c34e2cceb31afa7bfc1adf66245";
};
SM-G975W3034 = {
priority = 1;
pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80";
};
};
networking.hosts = {
"192.168.3.105" = [ "gamingpc" ];
"192.168.3.163" = [ "acernitro" ];
"192.168.3.182" = [ "raspberry" ];
"192.168.3.183" = [ "homecloud" ];
};
users.users.chris.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4wka/LfG3pto15DIm9LIRbb6rWr7/ipCRiCdAKSlY4 chris@chrishayward.xyz"
];
services.tlp.enable = true;
services.xserver.dpi = 96;
services.xserver.libinput.touchpad.tapping = false;
services.printing.enable = true;
programs.mtr.enable = true;
programs.fish.enable = true;
programs.gnupg.agent.enable = true;
users.users.chris = {
shell = pkgs.fish;
isNormalUser = true;
extraGroups = [ "wheel" ];
};
}

9
hosts/acernitro/default.nix

@ -1,9 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ ... }:
{
imports = [
./configuration.nix
./hardware.nix
];
}

37
hosts/acernitro/hardware.nix

@ -1,37 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
fileSystems."/" =
{ device = "/dev/disk/by-uuid/2f548eb9-47ce-4280-950f-9c6d1d162852";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5BC3-73F3";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/bef7bf62-d26f-45b1-a1f8-1227c2f8b26a"; }
];
powerManagement.powertop.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

0
hosts/homecloud/.git-keep

50
hosts/homecloud/configuration.nix

@ -1,50 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ config, pkgs, ... }:
{
time.timeZone = "America/Toronto";
networking.hostName = "homecloud";
networking.firewall.enable = false;
networking.networkmanager.enable = true;
networking.interfaces.eth0.useDHCP = true;
networking.interfaces.wlan0.useDHCP = true;
networking.wireless.networks = {
MyWiFi_5C1870 = {
priority = 3;
pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326";
};
BELL182 = {
priority = 2;
pskRaw = "8b3c114c695c5013bbcf5fc0af781c7872f95c34e2cceb31afa7bfc1adf66245";
};
SM-G975W3034 = {
priority = 1;
pskRaw = "74835d96a98ca2c56ffe4eaf92223f8a555168b59ec2bb22b1e46b2a333adc80";
};
};
networking.hosts = {
"192.168.3.105" = [ "gamingpc" ];
"192.168.3.163" = [ "acernitro" ];
"192.168.3.182" = [ "raspberry" ];
"192.168.3.183" = [ "homecloud" ];
};
users.users.chris.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4wka/LfG3pto15DIm9LIRbb6rWr7/ipCRiCdAKSlY4 chris@chrishayward.xyz"
];
environment.systemPackages = [
pkgs.libraspberrypi
pkgs.raspberrypi-eeprom
];
programs.fish.enable = true;
programs.mtr.enable = true;
users.users.chris = {
shell = pkgs.fish;
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
};
}

9
hosts/homecloud/default.nix

@ -1,9 +0,0 @@
# <<file-warning>
{ ... }:
{
imports = [
./configuration.nix
./hardware.nix
];
}

43
hosts/homecloud/hardware.nix

@ -1,43 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ config, pkgs, lib, inputs, ... }:
{
# imports = [
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
# ];
# boot.kernelPackages = pkgs.linuxPackages_rpi4;
boot.tmpOnTmpfs = true;
boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
boot.kernelParams = [
"8250.nr_uarts=1"
"console=ttyAMA0,115200"
"console=tty1"
"cma=128M"
];
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.loader.raspberryPi = {
enable = true;
version = 4;
firmwareConfig = ''
hdmi_drive=2
hdmi_force_hotplug=1
dtparam=sd_poll_once=on
dtparam=audio=on
'';
};
# hardware.raspberry-pi."4".fkms-3d.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
options = [ "noatime" ];
};
};
powerManagement.cpuFreqGovernor = "ondemand";
}

0
hosts/raspberry/.git-keep

36
hosts/raspberry/configuration.nix

@ -1,36 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ config, pkgs, ... }:
{
time.timeZone = "America/Toronto";
networking.hostName = "raspberry";
networking.firewall.enable = false;
networking.networkmanager.enable = true;
networking.interfaces.eth0.useDHCP = true;
networking.interfaces.wlan0.useDHCP = true;
networking.hosts = {
"192.168.3.105" = [ "gamingpc" ];
"192.168.3.163" = [ "acernitro" ];
"192.168.3.182" = [ "raspberry" ];
"192.168.3.183" = [ "homecloud" ];
};
users.users.chris.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4wka/LfG3pto15DIm9LIRbb6rWr7/ipCRiCdAKSlY4 chris@chrishayward.xyz"
];
environment.systemPackages = [
pkgs.libraspberrypi
pkgs.raspberrypi-eeprom
];
programs.fish.enable = true;
programs.gnupg.agent.enable = true;
users.users.chris = {
shell = pkgs.fish;
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
};
}

9
hosts/raspberry/default.nix

@ -1,9 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ ... }:
{
imports = [
./configuration.nix
./hardware.nix
];
}

49
hosts/raspberry/hardware.nix

@ -1,49 +0,0 @@
# This file is controlled by /etc/dotfiles/README.org
{ config, pkgs, lib, inputs, ... }:
{
# imports = [
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
# ];
# boot.kernelPackages = pkgs.linuxPackages_rpi4;
boot.tmpOnTmpfs = true;
boot.initrd.availableKernelModules = [ "usbhid" "usb_storage" ];
boot.kernelParams = [
"8250.nr_uarts=1"
"console=ttyAMA0,115200"
"console=tty1"
"cma=128M"
];
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.loader.raspberryPi = {
enable = true;
version = 4;
firmwareConfig = ''
hdmi_drive=2
hdmi_force_hotplug=1
dtparam=sd_poll_once=on
dtparam=audio=on
'';
};
# FIXME: Requires GPU support.
services.xserver.videoDrivers = [ "fbdev" ];
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.enableRedistributableFirmware = true;
# hardware.raspberry-pi."4".fkms-3d.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
options = [ "noatime" ];
};
};
powerManagement.cpuFreqGovernor = "ondemand";
}
Loading…
Cancel
Save