nix-starter-configs/flake.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

2021-12-16 12:28:43 -08:00
{
description = "You new nix config";
inputs = {
# Nixpkgs
2021-12-16 12:28:43 -08:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2022-05-22 15:31:56 -07:00
hardware.url = "github:nixos/nixos-hardware";
2021-12-16 12:28:43 -08:00
# Home manager
2021-12-16 12:28:43 -08:00
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2022-08-01 17:52:47 -07:00
# TODO: Add any other flake you might need
2021-12-16 12:28:43 -08:00
};
2022-08-01 17:52:47 -07:00
outputs = { nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations = {
# FIXME replace with your hostname
your-hostname = nixpkgs.lib.nixosSystem {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
system = "x86_64-linux";
2022-08-01 17:52:47 -07:00
modules = [ ./nixos/configuration.nix ];
# Pass inputs down to our config, so that they can consume flake inputs
specialArgs = { inherit inputs; };
2021-12-16 12:28:43 -08:00
};
2022-08-01 17:52:47 -07:00
};
2021-12-16 12:28:43 -08:00
2022-08-01 17:52:47 -07:00
homeConfigurations = {
# FIXME replace with your username@hostname
"your-name@your-hostname" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
2022-08-01 17:52:47 -07:00
modules = [ ./home-manager/home.nix ];
# Pass inputs down to our config, so that they can consume flake inputs
extraSpecialArgs = { inherit inputs; };
2021-12-16 12:28:43 -08:00
};
};
2022-08-01 17:52:47 -07:00
};
2021-12-16 12:28:43 -08:00
}