2022-06-17 15:00:08 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
2022-06-18 17:48:25 +00:00
|
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-22.05;
|
2022-06-17 15:00:08 +00:00
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
url = github:nix-community/home-manager/release-22.05;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-06-26 12:44:53 +00:00
|
|
|
outputs = inputs @ { self, nixpkgs, home-manager, ... }:
|
|
|
|
let
|
2022-06-17 15:00:08 +00:00
|
|
|
user = "mandlm";
|
2022-06-26 12:44:53 +00:00
|
|
|
in
|
2022-06-17 15:00:08 +00:00
|
|
|
{
|
2022-06-26 13:03:45 +00:00
|
|
|
nixosConfigurations = {
|
|
|
|
nixos-vm = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
|
|
|
./users.nix
|
|
|
|
./machines/nixos-vm/configuration.nix
|
|
|
|
./machines/nixos-vm/hardware-configuration.nix
|
2022-06-20 06:53:37 +00:00
|
|
|
|
2022-06-26 13:03:45 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.extraSpecialArgs = { inherit user nixpkgs; };
|
|
|
|
home-manager.users.${user} = {
|
|
|
|
imports = [ ./home-${user}.nix ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-06-18 17:48:25 +00:00
|
|
|
|
2022-06-26 13:03:45 +00:00
|
|
|
apache = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = inputs;
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
|
|
|
./users.nix
|
|
|
|
./machines/apache/configuration.nix
|
|
|
|
./machines/apache/hardware-configuration.nix
|
2022-06-18 17:48:25 +00:00
|
|
|
|
2022-06-26 13:03:45 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.extraSpecialArgs = { inherit user; };
|
|
|
|
home-manager.users.${user} = {
|
|
|
|
imports = [ ./home-${user}.nix ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-06-17 15:00:08 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|