diff --git a/flake.nix b/flake.nix index 281ee87..5596ce4 100644 --- a/flake.nix +++ b/flake.nix @@ -63,6 +63,13 @@ lix-module.nixosModules.default ]; }; + pericyte = nixosSystem' { + modules = [ + ./machines/pericyte/configuration.nix + modules.sops + # lix-module.nixosModules.default + ]; + }; }; darwinConfigurations = { UniverseAir = darwinSystem' { diff --git a/machines/pericyte/configuration.nix b/machines/pericyte/configuration.nix new file mode 100644 index 0000000..ec6573c --- /dev/null +++ b/machines/pericyte/configuration.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: { + imports = [ + ./hardware-configuration.nix + ]; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + environment.systemPackages = with pkgs; [ + git + ]; + + boot.tmp.cleanOnBoot = true; + zramSwap.enable = true; + networking.hostName = "pericyte"; + networking.domain = ""; + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOaNNSV/wurGA8D7bT+WX4UlHdKqd9SFfVXvSalvHag5qYDPUIsGGkqSNj1dcong9qxrC8y7G7ybWhwRKTKXInXrq6EO4JkVkCSbVqrq8gIv66upsKltvmf0esiOdrpRgHoiup8JKaX93aUT27rykReT39mFwkJZDoD4ViNiK7QmbgDC/9pyGDSJykreSnBoxtczox8Zi+pwN8XMI4nRVdV9hppXMpj38/O3Qaq+oXdHJ2MVNy9D+TqxYofstFbzpJpEb2xA4QYnq/VVJFk8VaZlg3qxelwBJ1GNZO8TMkLA+6b07D3aISyEIQAONviNktPwRPiw903hsDyeKDunDx ssh-key-2025-03-31'' ]; + system.stateVersion = "25.05"; +} diff --git a/machines/pericyte/hardware-configuration.nix b/machines/pericyte/hardware-configuration.nix new file mode 100644 index 0000000..b26ab3a --- /dev/null +++ b/machines/pericyte/hardware-configuration.nix @@ -0,0 +1,14 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + device = "nodev"; + }; + fileSystems."/boot" = { device = "/dev/disk/by-uuid/FCE4-1F46"; fsType = "vfat"; }; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; + +}