39 lines
989 B
Nix
39 lines
989 B
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
}@inputs:
|
|
{
|
|
nixosConfigurations = {
|
|
moritz-laptop = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
hostName = "moritz-laptop";
|
|
};
|
|
modules = [
|
|
./hosts/moritz-laptop/configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
home-manager.users.moritz = ./hosts/moritz-laptop/users/moritz.nix;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|