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";
|
2023-02-07 20:16:16 +00:00
|
|
|
neovim-nightly = {
|
|
|
|
# workaround: https://github.com/nix-community/neovim-nightly-overlay/issues/164
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs?rev=fad51abd42ca17a60fc1d4cb9382e2d79ae31836";
|
|
|
|
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 {
|
2022-10-02 22:42:33 +00:00
|
|
|
nixosConfigurations = {
|
2022-10-03 08:55:36 +00:00
|
|
|
apollo = nixpkgs.lib.nixosSystem {
|
2022-10-02 22:42:33 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2023-03-22 23:47:48 +00:00
|
|
|
./system/nixos/apollo/configuration.nix
|
2022-10-06 11:33:59 +00:00
|
|
|
{ nixpkgs.overlays = overlays; }
|
2022-10-02 22:42:33 +00:00
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2022-12-21 11:40:36 +00:00
|
|
|
home-manager.users.opdavies = import ./home-manager/apollo.nix;
|
2022-10-02 22:42:33 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-09-26 20:28:35 +00:00
|
|
|
homeConfigurations = {
|
|
|
|
pop-os = home-manager.lib.homeManagerConfiguration {
|
|
|
|
modules = [
|
|
|
|
{ nixpkgs.overlays = overlays; }
|
2023-03-22 23:47:48 +00:00
|
|
|
./system/pop-os.nix
|
2022-09-26 20:28:35 +00:00
|
|
|
];
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
|
|
|
|
wsl2 = home-manager.lib.homeManagerConfiguration {
|
|
|
|
modules = [
|
|
|
|
{ nixpkgs.overlays = overlays; }
|
2023-03-22 23:47:48 +00:00
|
|
|
./system/wsl2.nix
|
2022-09-27 06:37:57 +00:00
|
|
|
];
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|