49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
wrappers.url = "github:BirdeeHub/nix-wrapper-modules";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
base16.url = "github:SenchoPens/base16.nix";
|
|
tt-schemes = {
|
|
url = "github:tinted-theming/schemes";
|
|
flake = false;
|
|
};
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
};
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
wrappers,
|
|
flake-parts,
|
|
base16,
|
|
home-manager,
|
|
...
|
|
}@inputs:
|
|
flake-parts.lib.mkFlake { inherit inputs; } (
|
|
{ config, pkgs, ... }: {
|
|
systems = [ "x86_64-linux" ];
|
|
imports = [
|
|
wrappers.flakeModules.wrappers
|
|
./modules/theme.nix
|
|
./modules/programs/emacs/emacs.nix
|
|
];
|
|
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
base16.nixosModule
|
|
{ scheme = "${inputs.tt-schemes}/base16/oxocarbon-dark.yaml"; }
|
|
./modules/hosts/nerv/configuration.nix
|
|
config.flake.wrappers.emacs.install
|
|
{ wrappers.emacs.enable = true; }
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPkgs = true;
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
home-manager.users.lucy = ./modules/home.nix
|
|
}
|
|
];
|
|
};
|
|
}
|
|
);
|
|
}
|