This commit is contained in:
Mork Swork 2026-05-04 10:54:02 -07:00
parent e045c02c78
commit e519bcc13b
4 changed files with 11 additions and 11 deletions

View file

@ -12,4 +12,4 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main - uses: DeterminateSystems/magic-nix-cache-action@main
- run: ssh-keygen -t rsa -N '' -f ./id_rsa && git add id_rsa.pub - run: ssh-keygen -t rsa -N '' -f ./id_rsa && git add id_rsa.pub
- run: nix build .#nixosConfigurations.nixos.config.system.build.toplevel - run: nix build .#nixosConfigurations.mainframe.config.system.build.toplevel

View file

@ -3,4 +3,4 @@
set -e set -e
git pull origin main git pull origin main
nixos-rebuild switch --flake .#nixos --verbose --show-trace nixos-rebuild switch --flake .#mainframe --verbose --show-trace

View file

@ -92,14 +92,13 @@
++ modules; ++ modules;
}; };
in { in {
nixosConfigurations.nixos = mkNixosConfiguration { nixosConfigurations.mainframe = mkNixosConfiguration {
hostname = "pw-mainframe"; hostname = "pw-mainframe";
username = "ironmagma"; username = "ironmagma";
args = { args = {
nixPkgs = import nixpkgs {inherit system overlays;}; nixPkgs = import nixpkgs {inherit system overlays;};
}; };
modules = [ modules = [
disko.nixosModules.disko
agenix.nixosModules.age agenix.nixosModules.age
./hetzner.nix ./hetzner.nix
./linux.nix ./linux.nix

View file

@ -2,28 +2,29 @@
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/qemu-guest.nix")
./disk-config.nix
]; ];
# Fixes iotop # Fixes iotop
boot.kernel.sysctl = {"kernel.task_delayacct" = 1;}; boot.kernel.sysctl = {"kernel.task_delayacct" = 1;};
boot.loader.grub = { boot.loader.grub = {
# no need to set devices, disko will add all devices that have a EF02 partition to the list already enable = true;
# devices = [ ]; device = "/dev/sda";
efiSupport = true; efiSupport = false;
efiInstallAsRemovable = true; };
fileSystems."/" = {
device = "/dev/disk/by-uuid/aaf104ce-4851-40d9-aeea-bebb5684f8c4";
fsType = "ext4";
}; };
services.openssh = { services.openssh = {
enable = true; enable = true;
settings.PasswordAuthentication = true; settings.PasswordAuthentication = true;
settings.UsePAM = false;
settings.PermitRootLogin = "yes"; settings.PermitRootLogin = "yes";
settings.AllowUsers = [ "root" ]; settings.AllowUsers = [ "root" ];
extraConfig = '' extraConfig = ''
PrintLastLog no PrintLastLog no
UsePAM no
''; '';
hostKeys = [ hostKeys = [
{ {