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";
|
2024-01-22 02:31:34 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-12-02 01:21:16 +00:00
|
|
|
artemist = {
|
|
|
|
url = "git+https://git.mildlyfunctional.gay/artemist/packages.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.utils.follows = "utils";
|
|
|
|
};
|
2024-03-29 18:15:04 +00:00
|
|
|
darwin = {
|
|
|
|
url = "github:lnl7/nix-darwin";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-10 05:18:56 +00:00
|
|
|
fonts = {
|
2023-12-02 01:21:16 +00:00
|
|
|
url = "git+https://git.mildlyfunctional.gay/artemist/fonts.git";
|
2023-12-22 04:13:31 +00:00
|
|
|
inputs.artemist.follows = "artemist";
|
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
|
|
|
};
|
2024-03-28 19:55:28 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
jovian = {
|
|
|
|
url = "github:jovian-experiments/jovian-nixos";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.nix-github-actions.follows = "";
|
|
|
|
};
|
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
|
|
|
};
|
2024-03-28 19:55:28 +00:00
|
|
|
lix = {
|
2024-05-12 02:26:28 +00:00
|
|
|
url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";
|
2024-03-28 19:55:28 +00:00
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
lix-module = {
|
2024-05-12 02:26:28 +00:00
|
|
|
url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
|
2021-11-20 04:08:18 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-03-28 19:55:28 +00:00
|
|
|
inputs.flake-utils.follows = "utils";
|
|
|
|
inputs.lix.follows = "lix";
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
2023-09-07 05:01:23 +00:00
|
|
|
nixvim = {
|
2024-05-02 22:41:28 +00:00
|
|
|
url = "github:nix-community/nixvim/82a19581defe682ff9ca7cb8b1b980b6dc297cf2";
|
2023-09-07 05:01:23 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-10 00:28:00 +00:00
|
|
|
inputs.home-manager.follows = "home-manager";
|
2024-03-29 18:15:04 +00:00
|
|
|
inputs.nix-darwin.follows = "darwin";
|
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";
|
|
|
|
};
|
2024-03-28 19:55:28 +00:00
|
|
|
private.url = "git+ssh://forgejo@git.mildlyfunctional.gay/artemist/nixos-config-private?ref=unified";
|
2021-11-20 04:08:18 +00:00
|
|
|
rustybar = {
|
2024-03-02 03:13:17 +00:00
|
|
|
url = "git+https://git.mildlyfunctional.gay/mildlyfunctionalgays/rustybar.git";
|
2021-11-20 04:08:18 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2023-09-22 02:15:29 +00:00
|
|
|
inputs.utils.follows = "utils";
|
2021-11-20 04:08:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-02 03:13:17 +00:00
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
self,
|
2024-03-29 18:15:04 +00:00
|
|
|
darwin,
|
2024-03-02 03:13:17 +00:00
|
|
|
home-manager,
|
2024-03-29 18:15:04 +00:00
|
|
|
nixpkgs,
|
2024-03-02 03:13:17 +00:00
|
|
|
nixvim,
|
2024-03-29 18:15:04 +00:00
|
|
|
utils,
|
2024-03-02 03:13:17 +00:00
|
|
|
...
|
|
|
|
}@inputs:
|
2021-11-20 04:08:18 +00:00
|
|
|
let
|
2023-12-25 04:33:08 +00:00
|
|
|
lib = nixpkgs.lib;
|
2024-03-29 18:15:04 +00:00
|
|
|
makeNixosSystem =
|
2024-03-02 03:13:17 +00:00
|
|
|
module:
|
2023-12-25 04:33:08 +00:00
|
|
|
lib.nixosSystem (rec {
|
2024-03-02 03:13:17 +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; }
|
2023-12-25 04:33:08 +00:00
|
|
|
] ++ [ module ];
|
2021-11-21 19:35:25 +00:00
|
|
|
});
|
2024-03-29 18:15:04 +00:00
|
|
|
makeDarwinSystem =
|
|
|
|
module:
|
|
|
|
darwin.lib.darwinSystem rec {
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
|
|
|
home-manager.darwinModules.home-manager
|
|
|
|
{ home-manager.extraSpecialArgs = specialArgs; }
|
|
|
|
] ++ [ module ];
|
|
|
|
};
|
|
|
|
makeConfigurations =
|
|
|
|
baseDir: make: lib.mapAttrs (name: _: make (baseDir + "/${name}")) (builtins.readDir baseDir);
|
2024-03-02 03:13:17 +00:00
|
|
|
in
|
|
|
|
{
|
2024-03-29 18:15:04 +00:00
|
|
|
nixosConfigurations = makeConfigurations ./system makeNixosSystem;
|
|
|
|
darwinConfigurations = makeConfigurations ./darwin makeDarwinSystem;
|
2024-03-02 03:13:17 +00:00
|
|
|
}
|
|
|
|
// utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
formatter = pkgs.nixfmt-rfc-style;
|
2023-10-27 06:06:33 +00:00
|
|
|
packages = {
|
2023-11-29 04:27:07 +00:00
|
|
|
nvim = inputs.nixvim.legacyPackages."${system}".makeNixvimWithModule {
|
2024-03-02 03:13:17 +00:00
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2023-11-29 04:27:07 +00:00
|
|
|
module = import ./sets/nvim.nix {
|
|
|
|
path = [ ];
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
};
|
|
|
|
};
|
2023-10-27 06:06:33 +00:00
|
|
|
};
|
2024-03-02 03:13:17 +00:00
|
|
|
}
|
|
|
|
);
|
2021-11-20 04:08:18 +00:00
|
|
|
}
|