49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
description = "Nix config entry point";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
# Home manager
|
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
} @ inputs: {
|
|
|
|
## NixOS configurations are the main output of this flake
|
|
# HP Spectre x360 2018
|
|
nixosConfigurations.spectre = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/spectre-x360-2018
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.remy.imports = [
|
|
./users/remy.nix
|
|
];
|
|
}
|
|
];
|
|
};
|
|
|
|
# nixosConfigurations.raspberry-pi = nixpkgs.lib.nixosSystem {
|
|
# system = "aarch64-linux";
|
|
# modules = [
|
|
# ./hosts/raspberry-pi/configuration.nix
|
|
# ];
|
|
# };
|
|
|
|
## Home Manager configurations here?
|
|
# TODO
|
|
|
|
};
|
|
}
|