diff --git a/hive.nix b/hive.nix index 35b6cb3..5fa0e76 100644 --- a/hive.nix +++ b/hive.nix @@ -50,4 +50,14 @@ in { ./hosts/yevaud/configuration.nix ]; }; + + orm = { name, nodes, ... }: { + networking.hostId = "00000000"; + time.timeZone = "Etc/UTC"; + + imports = [ + ./colmena/remote.nix + ./hosts/orm/configuration.nix + ]; + }; } diff --git a/hosts/orm/configuration.nix b/hosts/orm/configuration.nix new file mode 100644 index 0000000..857e662 --- /dev/null +++ b/hosts/orm/configuration.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ./home.nix + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + system.stateVersion = "23.11"; +} diff --git a/hosts/orm/hardware-configuration.nix b/hosts/orm/hardware-configuration.nix new file mode 100644 index 0000000..e13d4e6 --- /dev/null +++ b/hosts/orm/hardware-configuration.nix @@ -0,0 +1,45 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "rpool_orm/root"; + fsType = "zfs"; + }; + + fileSystems."/nix" = + { device = "rpool_orm/nix"; + fsType = "zfs"; + }; + + fileSystems."/var" = + { device = "rpool_orm/var"; + fsType = "zfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/3739-E8C1"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens3.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} diff --git a/hosts/orm/home.nix b/hosts/orm/home.nix new file mode 100644 index 0000000..06f12fb --- /dev/null +++ b/hosts/orm/home.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: + +{ + home-manager.users.qenya = { pkgs, ... }: { + imports = [ + ../../home/cli.nix + ../../home/git.nix + ]; + + home.stateVersion = "23.11"; + }; +}