dotfiles-nixos/flake.nix

53 lines
1.6 KiB
Nix
Raw Normal View History

2023-06-06 15:01:28 +00:00
{
description = "Your new nix config";
inputs = {
# Nixpkgs
2023-07-30 13:07:03 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-06-06 15:01:28 +00:00
# Home manager
2023-07-30 13:07:03 +00:00
home-manager.url = "github:nix-community/home-manager/master";
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
2023-06-28 20:14:05 +00:00
# inputs.agenix.url = "github:ryantm/agenix";
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-28 20:14:05 +00:00
outputs = { self, nixpkgs, ... }@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-28 20:14:05 +00:00
modules = [
./nixos/machines/pc-mans/configuration.nix
2023-08-04 15:40:13 +00:00
];
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-28 20:14:05 +00:00
modules = [
2023-08-04 15:40:13 +00:00
./nixos/machines/lpt-mans/configuration.nix
];
2023-06-11 15:57:47 +00:00
};
2023-06-18 15:03:56 +00:00
srv01-home = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
# > Our main nixos configuration file <
2023-06-28 20:14:05 +00:00
modules = [
2023-08-04 15:40:13 +00:00
./nixos/machines/srv01-home/configuration.nix
];
2023-06-18 15:03:56 +00:00
};
2023-06-06 15:01:28 +00:00
};
};
}