flake/flake.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

2022-11-15 13:45:19 +01:00
{
2023-01-24 21:51:35 +01:00
description = "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-24 21:51:35 +01:00
hyprland.url = "github:hyprwm/Hyprland";
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;
2023-01-24 21:51:35 +01:00
}
2022-11-15 13:45:19 +01:00
2023-01-24 21:51:35 +01:00
hyprland.nixosModules.default
{programs.hyprland.enable = true;}
];
};
2022-11-15 13:45:19 +01:00
2023-01-25 20:21:08 +01:00
frija = nixpkgs.lib.nixosSystem {
2023-01-24 21:51:35 +01:00
system = "x86_64-linux";
modules = [
2023-01-25 20:21:08 +01:00
./hosts/home/frjia/configuration.nix
2023-01-24 21:51:35 +01:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2023-01-25 20:21:08 +01:00
home-manager.users.aspire = import ./hosts/home/frija/home.nix;
2022-11-15 13:45:19 +01:00
}
];
};
2023-01-24 21:51:35 +01:00
2022-11-15 13:45:19 +01:00
};
};
}