flake/flake.nix

40 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-15 13:45:19 +01:00
{
description = "MMT = Multimachine Manager Technology";
2022-11-15 13:45:19 +01:00
inputs = {
# Attribute set of all the dependencies used in the flake
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-01-22 17:18:53 +01:00
hyprland.url = "github:hyprwm/Hyprland"; #added
2022-11-15 13:45:19 +01:00
};
2023-01-22 17:18:53 +01:00
outputs = inputs@{ nixpkgs, home-manager, hyprland, ... }: {
2022-11-15 13:45:19 +01:00
# Function of an argument that uses the inputs for reference
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/home/laptop/configuration.nix
2022-11-15 13:45:19 +01:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.zonsopkomst = import ./hosts/home/laptop/home.nix;
2022-11-15 13:45:19 +01:00
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
# TODO Change hostname
# Rebuild: sudo nixos-rebuild switch --flake .# or sudo nixos-rebuild switch --flake .#<insert hostname>
}
2023-01-22 17:18:53 +01:00
hyprland.nixosModules.default #added
{programs.hyprland.enable = true;} #added
2022-11-15 13:45:19 +01:00
];
};
};
};
}