first commit

This commit is contained in:
smad
2025-10-22 16:59:40 +02:00
commit 35d822799b
29 changed files with 1623 additions and 0 deletions

54
flake.nix Normal file
View File

@@ -0,0 +1,54 @@
#
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
## proxmox-nixos.url = "github:SaumonNet/proxmox-nixos";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ... }@inputs: {
# use "nixos", or your hostname as the name of the configuration
# it's a better practice than "default" shown in the video
nixosConfigurations.nixxramas = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
./hosts/nixxramas/configuration.nix
inputs.home-manager.nixosModules.default
## proxmox-nixos.nixosModules.proxmox-ve
## ({pkgs,lib, ...}: {
## services.proxmox-ve = {
## enable = true;
## ipAddress = "192.168.0.1";
## };
## nixpkgs.overlays = [
## proxmox-nixos.overlays.${system}
## ];
## })
];
};
nixosConfigurations.server = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/server/configuration.nix
inputs.home-manager.nixosModules.default
];
};
nixosConfigurations.worker = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/worker/configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
}