This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/flake.nix

70 lines
1.7 KiB
Nix
Raw Normal View History

2021-11-28 01:10:36 +00:00
{
description = "NixOS configuration";
inputs = {
2022-07-10 04:35:11 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2022-02-08 01:24:05 +00:00
utils.url = "github:gytis-ivaskevicius/flake-utils-plus/v1.3.1";
2021-11-28 01:10:36 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-11-28 01:10:36 +00:00
};
2022-08-14 21:23:30 +00:00
outputs =
inputs@{ self
, emacs-overlay
, home-manager
, nixos-hardware
, nixpkgs
, nur
, utils
, ...
}:
let
inherit (utils.lib) mkFlake;
inherit (self.lib.my) mapModules mapModulesRec';
2022-08-14 21:23:30 +00:00
in
mkFlake {
lib = nixpkgs.lib.extend (self: super: {
my = import ./lib {
inherit inputs;
pkgs = nixpkgs;
lib = self;
};
});
2022-08-09 02:28:48 +00:00
inherit self inputs;
supportedSystems = [ "x86_64-linux" ];
hosts = {
nil.modules = [ ./hosts/nil ];
2021-11-28 01:10:36 +00:00
};
channels.nixpkgs = {
input = nixpkgs;
overlaysBuilder = channels: [ ];
2021-11-28 01:10:36 +00:00
};
channelsConfig = { allowUnfree = true; };
2022-08-14 22:31:46 +00:00
sharedOverlays = [ nur.overlay (import ./pkgs) emacs-overlay.overlay ];
hostDefaults = {
specialArgs = {
inherit home-manager nixos-hardware;
user = { name = "james"; description = "James Patrick"; };
};
2022-08-14 22:31:46 +00:00
modules = mapModulesRec' ./modules import;
system = "x86_64-linux";
};
2021-11-28 01:10:36 +00:00
};
}