2023-03-27 12:44:37 +02:00
|
|
|
{
|
|
|
|
|
description = "NixOS configuration";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-07-31 17:39:46 +00:00
|
|
|
home-manager = {
|
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2023-07-29 22:33:53 +02:00
|
|
|
website = {
|
|
|
|
|
url = "github:thiloho/website";
|
|
|
|
|
flake = false;
|
|
|
|
|
};
|
|
|
|
|
aurora-blog-template.url = "github:thiloho/aurora";
|
2023-08-04 16:46:50 +02:00
|
|
|
# NixOS-WSL = {
|
|
|
|
|
# url = "github:nix-community/NixOS-WSL";
|
|
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
# };
|
2023-03-27 12:44:37 +02:00
|
|
|
};
|
|
|
|
|
|
2023-07-31 17:39:46 +00:00
|
|
|
outputs = inputs@{ nixpkgs, home-manager, NixOS-WSL, ... }: {
|
2023-06-27 17:52:44 +02:00
|
|
|
nixosConfigurations = let
|
|
|
|
|
mkSystem = entrypoint: nixpkgs.lib.nixosSystem {
|
2023-03-27 12:44:37 +02:00
|
|
|
system = "x86_64-linux";
|
2023-07-29 22:33:53 +02:00
|
|
|
specialArgs = { inherit inputs; };
|
2023-03-27 12:44:37 +02:00
|
|
|
modules = [
|
2023-08-04 09:32:11 +00:00
|
|
|
{ nix = {
|
|
|
|
|
nixPath = [ "nixpkgs=${nixpkgs}" ];
|
|
|
|
|
};
|
|
|
|
|
}
|
2023-06-27 17:52:44 +02:00
|
|
|
entrypoint
|
2023-08-04 16:46:50 +02:00
|
|
|
# NixOS-WSL.nixosModules.wsl
|
2023-03-27 12:44:37 +02:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
|
{
|
|
|
|
|
home-manager = {
|
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
|
useUserPackages = true;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
2023-06-27 17:52:44 +02:00
|
|
|
in {
|
|
|
|
|
pc = mkSystem ./nixos-configurations/pc;
|
|
|
|
|
laptop = mkSystem ./nixos-configurations/laptop;
|
2023-07-02 00:18:17 +02:00
|
|
|
server = mkSystem ./nixos-configurations/server;
|
2023-08-04 16:46:50 +02:00
|
|
|
# wsl = mkSystem ./nixos-configurations/wsl;
|
2023-03-27 12:44:37 +02:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|