2021-11-20 04:08:18 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
2022-05-10 20:44:45 +00:00
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
2023-08-26 23:00:18 +00:00
|
|
|
utils.url = "github:numtide/flake-utils";
|
2023-09-22 02:15:29 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-09-10 05:18:56 +00:00
|
|
|
fonts = {
|
2023-11-10 03:13:38 +00:00
|
|
|
url = "git+https://git.mildlyfunctional.gay/artemist/fonts";
|
2023-09-10 05:18:56 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-22 02:15:29 +00:00
|
|
|
inputs.flake-utils.follows = "utils";
|
2023-09-10 05:18:56 +00:00
|
|
|
};
|
2023-08-26 22:45:32 +00:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.3.0";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-22 02:15:29 +00:00
|
|
|
inputs.flake-utils.follows = "utils";
|
2023-08-26 22:45:32 +00:00
|
|
|
};
|
2021-11-20 04:08:18 +00:00
|
|
|
home-manager = {
|
2023-08-30 20:58:52 +00:00
|
|
|
url = "github:nix-community/home-manager";
|
2021-11-20 04:08:18 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-07 05:01:23 +00:00
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-22 02:15:29 +00:00
|
|
|
inputs.flake-utils.follows = "utils";
|
2023-09-07 05:01:23 +00:00
|
|
|
};
|
2023-10-05 00:34:34 +00:00
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2021-11-20 04:08:18 +00:00
|
|
|
rustybar = {
|
|
|
|
url = "github:mildlyfunctionalgays/rustybar";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-22 02:15:29 +00:00
|
|
|
inputs.utils.follows = "utils";
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
2023-11-29 02:08:29 +00:00
|
|
|
jovian = {
|
|
|
|
url = "github:jovian-experiments/jovian-nixos";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2023-08-26 23:00:18 +00:00
|
|
|
private.url =
|
2023-10-30 18:32:31 +00:00
|
|
|
"git+ssh://gitea@git.mildlyfunctional.gay/artemist/nixos-config-private?ref=unified";
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
|
|
|
|
2023-11-29 02:08:29 +00:00
|
|
|
outputs = { self, nixpkgs, home-manager, utils, nixvim, ... }@inputs:
|
2021-11-20 04:08:18 +00:00
|
|
|
let
|
2023-08-26 23:00:18 +00:00
|
|
|
makeSystem = conf:
|
|
|
|
nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate conf rec {
|
2023-08-30 20:58:52 +00:00
|
|
|
specialArgs = { inherit inputs; };
|
2021-11-21 19:35:25 +00:00
|
|
|
modules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
2023-08-26 23:00:18 +00:00
|
|
|
{ home-manager.extraSpecialArgs = specialArgs; }
|
2021-11-21 19:35:25 +00:00
|
|
|
] ++ (conf.modules or [ ]);
|
|
|
|
});
|
2023-08-26 23:00:18 +00:00
|
|
|
in {
|
2021-11-20 04:08:18 +00:00
|
|
|
nixosConfigurations.starlight = makeSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-11-26 07:30:29 +00:00
|
|
|
modules = [ ./system/starlight ];
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nixosConfigurations.rainbowdash = makeSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-08-26 23:00:18 +00:00
|
|
|
modules = [ ./system/rainbowdash ];
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nixosConfigurations.spike = makeSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-08-26 23:00:18 +00:00
|
|
|
modules = [ ./system/spike ];
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
|
|
|
|
2023-11-29 02:08:29 +00:00
|
|
|
nixosConfigurations.gallus = makeSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [ ./system/gallus ];
|
|
|
|
};
|
|
|
|
|
2021-11-20 04:08:18 +00:00
|
|
|
nixosConfigurations.mistmane = makeSystem {
|
|
|
|
system = "aarch64-linux";
|
2023-08-26 23:00:18 +00:00
|
|
|
modules = [ ./system/mistmane ];
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
2023-08-26 23:00:18 +00:00
|
|
|
} // utils.lib.eachDefaultSystem (system:
|
2023-10-27 05:19:15 +00:00
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
formatter = pkgs.nixfmt;
|
2023-10-27 06:06:33 +00:00
|
|
|
packages = {
|
|
|
|
jlink = pkgs.callPackage ./externals/packages/jlink { };
|
2023-11-29 04:27:07 +00:00
|
|
|
nvim = inputs.nixvim.legacyPackages."${system}".makeNixvimWithModule {
|
|
|
|
extraSpecialArgs = { inherit inputs; };
|
|
|
|
module = import ./sets/nvim.nix {
|
|
|
|
path = [ ];
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
};
|
|
|
|
};
|
2023-10-27 06:06:33 +00:00
|
|
|
};
|
2023-10-27 05:19:15 +00:00
|
|
|
});
|
2021-11-20 04:08:18 +00:00
|
|
|
}
|
|
|
|
|