2021-11-21 14:33:20 +01:00
|
|
|
{
|
2021-11-21 14:52:49 +01:00
|
|
|
description = "NixOS configuration";
|
|
|
|
|
|
|
|
inputs = {
|
2021-11-27 19:54:35 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/release-21.11";
|
2021-11-21 14:52:49 +01:00
|
|
|
nixos-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2022-01-25 11:00:09 +01:00
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2021-11-21 14:52:49 +01:00
|
|
|
|
2021-11-21 14:55:09 +01:00
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2021-11-21 19:08:57 +01:00
|
|
|
|
2022-02-22 21:52:01 +01:00
|
|
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
|
|
|
neovim-nightly-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
2021-11-21 19:08:57 +01:00
|
|
|
|
2022-02-22 21:52:01 +01:00
|
|
|
vim-extra-plugins.url = "github:m15a/nixpkgs-vim-extra-plugins";
|
2021-11-29 15:00:11 +01:00
|
|
|
|
2022-02-22 21:52:01 +01:00
|
|
|
# Git repo fetching
|
|
|
|
telescope-file-browser-nvim = {
|
|
|
|
url = "github:nvim-telescope/telescope-file-browser.nvim";
|
|
|
|
flake = false;
|
|
|
|
};
|
2021-11-29 15:00:11 +01:00
|
|
|
|
2022-02-22 21:52:01 +01:00
|
|
|
easy-dhall-nix = {
|
|
|
|
url = "github:justinwoo/easy-dhall-nix";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-30 13:54:23 +01:00
|
|
|
|
2022-02-22 21:52:01 +01:00
|
|
|
easy-purescript-nix = {
|
|
|
|
url = "github:justinwoo/easy-purescript-nix";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-30 19:10:57 +01:00
|
|
|
|
2022-02-22 21:52:01 +01:00
|
|
|
z = {
|
|
|
|
url = "github:jethrokuan/z";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-30 20:19:35 +01:00
|
|
|
|
2022-02-22 21:52:01 +01:00
|
|
|
agnoster = {
|
|
|
|
url = "github:oh-my-fish/theme-agnoster";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
githubNvimTheme = {
|
|
|
|
url = "github:projekt0n/github-nvim-theme";
|
|
|
|
flake = false;
|
|
|
|
};
|
2021-11-21 14:52:49 +01:00
|
|
|
};
|
|
|
|
|
2022-01-25 11:00:09 +01:00
|
|
|
outputs = inputs@{ self, nixpkgs, home-manager, ... }:
|
2022-01-25 11:26:06 +01:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
provideInputs =
|
|
|
|
import ./modules/overlays/flakes.nix { inherit system; } inputs;
|
2022-01-30 20:19:35 +01:00
|
|
|
|
|
|
|
overlays = { ... }: {
|
|
|
|
nix.registry.nixpkgs.flake = nixpkgs;
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
inputs.vim-extra-plugins.overlay
|
|
|
|
inputs.neovim-nightly-overlay.overlay
|
|
|
|
provideInputs
|
|
|
|
];
|
|
|
|
};
|
2022-02-22 21:52:01 +01:00
|
|
|
in
|
|
|
|
{
|
2021-11-21 19:08:57 +01:00
|
|
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
2022-01-25 11:26:06 +01:00
|
|
|
inherit system;
|
|
|
|
|
2021-11-21 19:08:57 +01:00
|
|
|
modules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
2022-01-30 20:19:35 +01:00
|
|
|
overlays
|
2021-11-21 19:08:57 +01:00
|
|
|
./hardware/laptop.nix
|
|
|
|
./configuration.nix
|
|
|
|
];
|
|
|
|
};
|
2021-11-21 14:33:20 +01:00
|
|
|
};
|
|
|
|
}
|