55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
#
|
|
|
|
{
|
|
|
|
|
|
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
|
|
];
|
|
};
|
|
};
|
|
}
|