46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
description = "0x29a NixOS flake config";
|
|
|
|
inputs = {
|
|
|
|
# the main nix package collection
|
|
nixpkgs = {
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
# home manager for dotfiles
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }:
|
|
let
|
|
lib = nixpkgs.lib;
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
# nixos system config
|
|
nixosConfigurations = {
|
|
default = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
# import host specific configs
|
|
./hosts/default/configuration.nix
|
|
# import host specific hardware configs
|
|
./hosts/default/hardware-configuration.nix
|
|
];
|
|
};
|
|
};
|
|
# home-manager config
|
|
homeConfigurations = {
|
|
aaron = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
modules = [ ./hosts/default/home.nix ];
|
|
};
|
|
};
|
|
};
|
|
}
|