dotfiles/flake.nix

57 lines
1.7 KiB
Nix
Raw Normal View History

2022-09-26 20:28:35 +00:00
# https://nix-community.github.io/home-manager/index.html#ch-nix-flakes
{
inputs = {
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
2022-09-26 20:28:35 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, home-manager, neovim-nightly, nixpkgs, ... }:
let overlays = [ neovim-nightly.overlay ];
in {
nixosConfigurations = {
apollo = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = overlays; }
./system/nixos/apollo/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.opdavies = import ./home-manager/apollo.nix;
}
];
};
nixedo = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = overlays; }
./system/nixos/nixedo/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.opdavies = import ./home-manager/nixedo.nix;
}
];
};
2022-09-26 20:28:35 +00:00
};
2022-09-27 06:37:57 +00:00
homeConfigurations = {
wsl2 = home-manager.lib.homeManagerConfiguration {
modules = [ { nixpkgs.overlays = overlays; } ./system/wsl2.nix ];
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
2022-09-27 06:37:57 +00:00
};
2022-09-26 20:28:35 +00:00
};
}