nix-configs/flake.nix

65 lines
1.5 KiB
Nix
Raw Normal View History

2025-06-06 06:46:08 +01:00
{
description = "I have no idea what I'm doing";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-06-06 11:09:23 +01:00
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-06-06 06:46:08 +01:00
};
outputs =
{
nixpkgs,
flake-utils,
home-manager,
2025-06-06 11:09:23 +01:00
nur,
2025-06-06 06:46:08 +01:00
...
}:
{
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos/common.nix
./nixos/hosts/laptop/default.nix
./nixos/hosts/laptop/hardware-configuration.nix
];
};
};
}
// flake-utils.lib.eachSystem flake-utils.lib.allSystems (system: {
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
packages.homeConfigurations = {
irl = home-manager.lib.homeManagerConfiguration {
2025-06-06 11:09:23 +01:00
pkgs = import nixpkgs {
inherit system;
overlays = [
nur.overlay
];
};
2025-06-06 06:46:08 +01:00
modules = [ ./home/irl.nix ];
};
irl-gui = home-manager.lib.homeManagerConfiguration {
2025-06-06 11:09:23 +01:00
pkgs = import nixpkgs {
inherit system;
overlays = [
nur.overlay
];
};
2025-06-06 06:46:08 +01:00
modules = [
./home/irl.nix
{
irl.gui-packages = true;
}
];
};
};
});
}