flake/flake.nix

47 lines
1.4 KiB
Nix

{
description = "Multimachine Manager Technology";
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";
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = inputs@{ nixpkgs, home-manager, hyprland, ... }: {
# 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
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.zonsopkomst = import ./hosts/home/laptop/home.nix;
}
hyprland.nixosModules.default
{programs.hyprland.enable = true;}
];
};
frija = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/home/frjia/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.aspire = import ./hosts/home/frija/home.nix;
}
];
};
};
};
}