flake/flake.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

2022-11-15 13:45:19 +01:00
{
description = "A very special flake";
inputs = {
# Attribute set of all the dependencies used in the flake
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ nixpkgs, home-manager, ... }: {
# Function of an argument that uses the inputs for reference
# Place packages, configurations, modules here
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
# TODO?
# config.allowUnfree = true;
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.leeuwarden = import ./home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
# TODO Change hostname
# Rebuild: sudo nixos-rebuild switch --flake .# or sudo nixos-rebuild switch --flake .#<insert hostname>
}
];
};
};
};
}