Restructure

- Restructure
- Add sops+age
This commit is contained in:
aloslider
2026-04-02 21:21:06 +03:00
parent 03548606e4
commit 6a3ff12527
39 changed files with 590 additions and 194 deletions
+25 -11
View File
@@ -1,26 +1,40 @@
{
description = "Homelab server flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
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:
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.nixos = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
inputs.home-manager.nixosModules.home-manager
];
};
nixosConfigurations = {
homelab = pkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
lib = customLib;
};
modules = [
./hosts/homelab/configuration.nix
];
};
};
};
}