Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
flake/flake.nix

37 lines
924 B
Nix
Raw Normal View History

2022-12-21 06:27:41 +00:00
{
description = "The nix flake for all my systems";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, neovim-nightly-overlay, ... }: let
system = "x86_64-linux";
lib = nixpkgs.lib;
overlays = [
neovim-nightly-overlay.overlay
];
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = overlays;
};
in {
nixosConfigurations = {
skynet = lib.nixosSystem {
inherit system;
modules = [ ./hosts/skynet/configuration.nix ];
};
};
homeConfigurations = {
relms = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./users/relms/home.nix ];
};
};
};
}