feat!: prepare homelab
This commit is contained in:
@@ -2,17 +2,16 @@
|
||||
description = "Homelab";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
|
||||
disko.url = "github:nix-community/disko";
|
||||
disko.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
inputs@{
|
||||
nixpkgs,
|
||||
disko,
|
||||
}@inputs:
|
||||
}:
|
||||
let
|
||||
nodes = [
|
||||
{
|
||||
@@ -31,12 +30,14 @@
|
||||
meta = {
|
||||
hostname = node.name;
|
||||
};
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
disko.nixosModules.disko
|
||||
./${node.name}-configuration.nix
|
||||
./${node.name}-hardware-configuration.nix
|
||||
./${node.name}-disk-config.nix
|
||||
../modules/keys.nix
|
||||
./nodes/${node.name}/configuration.nix
|
||||
./nodes/${node.name}/hardware-configuration.nix
|
||||
./nodes/${node.name}/disk-config.nix
|
||||
];
|
||||
};
|
||||
}) nodes
|
||||
|
||||
@@ -10,10 +10,12 @@
|
||||
imports = [
|
||||
];
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.efiSupport = true;
|
||||
boot.loader.grub.efiInstallAsRemovable = true;
|
||||
boot.loader.grub.device = "/dev/nvme0n1";
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
device = "/dev/nvme0n1";
|
||||
};
|
||||
|
||||
networking.hostName = meta.hostname;
|
||||
networking.networkmanager.enable = true;
|
||||
@@ -48,7 +50,7 @@
|
||||
packages = with pkgs; [
|
||||
tree
|
||||
];
|
||||
hashedPassword = "$6$BZKOzqbNgj8F2JDm$KVpnMK1inaM0tnHSw6dIlA1oZ7sT/j7RQL4u5wa9RHYeHcqEFILTqi0HGKCYIwhCEWuJIhBv3h.tjSCZ/j6yw/";
|
||||
hashedPassword = config.hashedPassword;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
@@ -63,6 +65,6 @@
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
}
|
||||
@@ -7,13 +7,9 @@
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
boot = {
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
ESP = {
|
||||
type = "EF00";
|
||||
size = "512M";
|
||||
size = "1G";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
mountpoint = "/boot";
|
||||
Reference in New Issue
Block a user