37 lines
910 B
Nix
37 lines
910 B
Nix
|
# Welcome to my nix config! I'm just getting started with flakes, so please
|
||
|
# forgive the mess.
|
||
|
|
||
|
# TODO: would be nice to get hardware congigs in here as well
|
||
|
|
||
|
# TODO: declarative disks with https://github.com/nix-community/disko
|
||
|
# TODO: home-manager?
|
||
|
|
||
|
|
||
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||
|
|
||
|
home-manager = {
|
||
|
url = "github:nix-community/home-manager/release-23.05";
|
||
|
|
||
|
# use the version of nixpkgs we specified above rather than the one HM would ordinarily use
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = inputs: {
|
||
|
nixosConfigurations = {
|
||
|
beefcake = inputs.nixpkgs.lib.nixosSystem {
|
||
|
system = "x86_64-linux";
|
||
|
modules = [
|
||
|
./machines/beefcake.nix
|
||
|
inputs.home-manager.nixosModules.home-manager
|
||
|
{
|
||
|
home-manager.useGlobalPkgs = true;
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|