2022-11-15 13:45:19 +01:00
|
|
|
{
|
2023-01-18 23:53:08 +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 = [
|
2023-01-18 23:53:08 +01:00
|
|
|
./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;
|
2023-01-18 23:53:08 +01:00
|
|
|
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
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|