This commit is contained in:
aloslider
2026-05-10 11:46:58 +03:00
parent 64b87222bd
commit f212c874b5
29 changed files with 689 additions and 80 deletions
+32 -26
View File
@@ -1,40 +1,46 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
disko.url = "github:nix-community/disko";
dotfiles = {
url = "github:aloslider/dotfiles";
flake = false;
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
disko.url = "github:nix-community/disko";
sops-nix.url = "github:mic92/sops-nix";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs;
customLib = pkgs.lib.extend (
self: super: {
custom = (
import ./lib {
inherit (pkgs) lib;
}
);
}
);
in
{
nixosConfigurations = {
homelab = pkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
lib = customLib;
outputs =
{ self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs;
customLib = pkgs.lib.extend (
self: super: {
custom = (
import ./lib {
inherit (pkgs) lib;
}
);
}
);
in
{
nixosConfigurations = {
homelab = pkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit (inputs) disko;
lib = customLib;
};
modules = [
./hosts/homelab/configuration.nix
];
};
modules = [
./hosts/homelab/configuration.nix
];
};
};
};
}