2023-06-06 15:01:28 +00:00
|
|
|
{
|
|
|
|
description = "Your new nix config";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# Nixpkgs
|
2023-06-06 15:19:23 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
2023-06-06 15:01:28 +00:00
|
|
|
|
|
|
|
# Home manager
|
2023-06-06 15:19:23 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
2023-06-06 15:01:28 +00:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
# TODO_: Add any other flake you might need
|
2023-06-06 15:23:18 +00:00
|
|
|
hardware.url = "github:nixos/nixos-hardware";
|
2023-06-06 15:01:28 +00:00
|
|
|
|
|
|
|
# Shameless plug: looking for a way to nixify your themes and make
|
|
|
|
# everything match nicely? Try nix-colors!
|
|
|
|
# nix-colors.url = "github:misterio77/nix-colors";
|
|
|
|
};
|
|
|
|
|
2023-06-06 15:30:46 +00:00
|
|
|
outputs = { nixpkgs, home-manager, ... }@inputs: {
|
2023-06-06 15:01:28 +00:00
|
|
|
# NixOS configuration entrypoint
|
|
|
|
# Available through 'nixos-rebuild --flake .#your-hostname'
|
|
|
|
nixosConfigurations = {
|
|
|
|
# FIXME_ replace with your hostname
|
2023-06-13 14:12:52 +00:00
|
|
|
pc-mans = nixpkgs.lib.nixosSystem {
|
2023-06-06 15:01:28 +00:00
|
|
|
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
|
|
|
# > Our main nixos configuration file <
|
2023-06-13 14:12:52 +00:00
|
|
|
modules = [ ./nixos/machines/pc-mans/configuration.nix ];
|
2023-06-06 15:01:28 +00:00
|
|
|
};
|
2023-06-11 15:57:47 +00:00
|
|
|
|
2023-06-13 14:12:52 +00:00
|
|
|
lpt-mans = nixpkgs.lib.nixosSystem {
|
2023-06-11 15:57:47 +00:00
|
|
|
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
|
|
|
|
# > Our main nixos configuration file <
|
2023-06-13 14:12:52 +00:00
|
|
|
modules = [ ./nixos/machines/lpt-mans/configuration.nix ];
|
2023-06-11 15:57:47 +00:00
|
|
|
};
|
2023-06-06 15:01:28 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|