feat: big refactor
This commit is contained in:
parent
2c09c21833
commit
ebedec9768
159 changed files with 1927 additions and 2222 deletions
84
flake.nix
84
flake.nix
|
|
@ -1,68 +1,40 @@
|
|||
{
|
||||
description = "Nix los hier";
|
||||
description = "nix los hier";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-24.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
W530 = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = inputs;
|
||||
modules = [
|
||||
|
||||
./modules
|
||||
./hosts/W530
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
{
|
||||
imports = [ ./users/gandalf ];
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
T430 = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = inputs;
|
||||
modules = [
|
||||
|
||||
./modules
|
||||
./hosts/T430
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
{
|
||||
imports = [
|
||||
./users/gandalf
|
||||
];
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
IROH = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = inputs;
|
||||
modules = [
|
||||
|
||||
./modules
|
||||
./hosts/IROH
|
||||
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
{
|
||||
imports = [ ./users/gandalf ];
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
agenix = {
|
||||
url = "github:ryantm/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs =
|
||||
{ nixpkgs, agenix, ... }@inputs:
|
||||
let
|
||||
mkSystem = host: {
|
||||
"${host}" = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = inputs;
|
||||
modules = [
|
||||
(./hosts + "/${host}")
|
||||
agenix.nixosModules.default
|
||||
{ environment.systemPackages = [ agenix.packages.${system}.default ]; }
|
||||
];
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = nixpkgs.lib.mergeAttrsList (
|
||||
nixpkgs.lib.forEach [
|
||||
"APPA"
|
||||
"T430"
|
||||
"IROH"
|
||||
] mkSystem
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue