50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
let
|
|
testCfg =
|
|
{ hostName, ... }:
|
|
{
|
|
fileSystems."/" = {
|
|
device = "/dev/sda1";
|
|
fsType = "ext4";
|
|
};
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
boot.loader.systemd-boot.enable = true;
|
|
system.stateVersion = "25.05";
|
|
networking = { inherit hostName; };
|
|
};
|
|
in
|
|
{
|
|
flake.manifest = {
|
|
users.rafiq = {
|
|
primary = true;
|
|
username = "rafiq"; # If we don't set this here we have to do some weird shit
|
|
email = "rafiq@rrv.sh";
|
|
shell = "fish";
|
|
pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n rafiq";
|
|
};
|
|
hosts = {
|
|
"nixos/nemesis" = {
|
|
machine = {
|
|
platform = "amd";
|
|
gpu = "nvidia";
|
|
root.drive = "/dev/disk/by-id/nvme-CT2000P3SSD8_2325E6E77434";
|
|
monitors = [
|
|
{
|
|
id = "desc:OOO AN-270W04K";
|
|
scale = "2";
|
|
resolution = "3840x2160";
|
|
refresh-rate = "60";
|
|
}
|
|
];
|
|
};
|
|
extraCfg = testCfg;
|
|
};
|
|
"nixos/apollo" = {
|
|
machine = {
|
|
platform = "intel";
|
|
root.drive = "/dev/disk/by-id/nvme-eui.002538d221b47b01";
|
|
};
|
|
extraCfg = testCfg;
|
|
};
|
|
};
|
|
};
|
|
}
|