feat: Added server stuff

This commit is contained in:
uttarayan21
2025-01-02 15:58:40 +05:30
parent 7c7afbc890
commit e3596c2761
7 changed files with 4886 additions and 84 deletions

View File

@@ -9,12 +9,14 @@
(modulesPath + "/profiles/qemu-guest.nix")
./disk-config.nix
];
boot.loader.grub = {
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
# devices = [ ];
efiSupport = true;
efiInstallAsRemovable = true;
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# boot.loader.grub = {
# # no need to set devices, disko will add all devices that have a EF02 partition to the list already
# # devices = [ ];
# efiSupport = true;
# efiInstallAsRemovable = true;
# };
services.openssh.enable = true;
environment.systemPackages = map lib.lowPrio [

View File

@@ -8,7 +8,7 @@
type = "gpt";
partitions = {
boot = {
size = "512M";
size = "1G";
type = "EF00";
content = {
type = "mdraid";
@@ -32,7 +32,7 @@
type = "gpt";
partitions = {
boot = {
size = "512M";
size = "1G";
type = "EF00";
content = {
type = "mdraid";

4784
server/facter.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -22,7 +22,7 @@
};
# Slightly experimental: Like generic, but with nixos-facter (https://github.com/numtide/nixos-facter)
# nix run github:nix-community/nixos-anywhere -- --flake .#generic-nixos-facter --generate-hardware-config nixos-facter facter.json root@sh.darksailor.dev
# nix run github:nix-community/nixos-anywhere -- --flake .#facter --generate-hardware-config nixos-facter facter.json root@sh.darksailor.dev
nixosConfigurations.facter = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [