flake/flake.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-15 13:45:19 +01:00
{
2023-01-25 23:37:09 +01:00
description = "Zonsopkomst's NixOS Flake to Manage Multiple Machines";
2022-11-15 13:45:19 +01:00
inputs = {
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-25 23:37:09 +01:00
outputs = inputs@{
home-manager,
hyprland,
nixpkgs,
... }: {
2022-11-15 13:45:19 +01:00
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-31 03:23:04 +01:00
./hosts/home/frija/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
};
};
}