Artemis Tosini
d1728f9c73
Flake lock file updates: • Updated input 'artemist': 'git+https://git.mildlyfunctional.gay/artemist/packages.git?ref=refs/heads/canon&rev=6656b07f2cbd2e5343afdd82eb9967c4a3f1bb0f' (2024-07-10) → 'git+https://git.mildlyfunctional.gay/artemist/packages.git?ref=refs/heads/canon&rev=01959e74e880876233f75658a3d763d4b46560b5' (2024-07-15) • Removed input 'artemist/utils' • Updated input 'fonts': 'git+https://git.mildlyfunctional.gay/artemist/fonts.git?ref=refs/heads/canon&rev=af26c827792d79cc728134ad508ddab4bd28c038' (2024-02-21) → 'git+https://git.mildlyfunctional.gay/artemist/fonts.git?ref=refs/heads/canon&rev=587fad82e8315cea705cfdcae1328e0da3756555' (2024-07-15) • Removed input 'fonts/flake-utils' • Updated input 'lix': 'a8f443d960
.tar.gz?narHash=sha256-YZ7043PFS6LalHAyGeO7qRLeZIevwjHRbbMkpixjwhM%3D' (2024-07-12) → '1eb5d22132
.tar.gz?narHash=sha256-fueWQn/bzWcYeR01UWAhjMejgpQc2mjSPt3gb5tpoMs%3D' (2024-07-14) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9' (2024-07-12) → 'github:nixos/nixpkgs/693bc46d169f5af9c992095736e82c3488bf7dbb' (2024-07-14) • Updated input 'nixvim': 'github:nix-community/nixvim/ac9a1cbf9c7145687e66a1c033d68fc72eca3fd8' (2024-07-13) → 'github:nix-community/nixvim/b9ed90003273f0a75151b32948e16b44891f403c' (2024-07-15)
123 lines
3.5 KiB
Nix
123 lines
3.5 KiB
Nix
{
|
|
inputs = {
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
|
utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
artemist = {
|
|
url = "git+https://git.mildlyfunctional.gay/artemist/packages.git";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
darwin = {
|
|
url = "github:lnl7/nix-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
fonts = {
|
|
url = "git+https://git.mildlyfunctional.gay/artemist/fonts.git";
|
|
inputs.artemist.follows = "artemist";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
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 = "";
|
|
};
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v0.3.0";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-utils.follows = "utils";
|
|
};
|
|
lix = {
|
|
url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";
|
|
flake = false;
|
|
};
|
|
lix-module = {
|
|
url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-utils.follows = "utils";
|
|
inputs.lix.follows = "lix";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.home-manager.follows = "home-manager";
|
|
inputs.nix-darwin.follows = "darwin";
|
|
};
|
|
nix-index-database = {
|
|
url = "github:nix-community/nix-index-database";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
private.url = "git+ssh://forgejo@git.mildlyfunctional.gay/artemist/nixos-config-private?ref=unified";
|
|
rustybar = {
|
|
url = "git+https://git.mildlyfunctional.gay/mildlyfunctionalgays/rustybar.git";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.utils.follows = "utils";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
darwin,
|
|
home-manager,
|
|
nixpkgs,
|
|
nixvim,
|
|
utils,
|
|
...
|
|
}@inputs:
|
|
let
|
|
lib = nixpkgs.lib;
|
|
makeNixosSystem =
|
|
module:
|
|
lib.nixosSystem (rec {
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
{ home-manager.extraSpecialArgs = specialArgs; }
|
|
] ++ [ module ];
|
|
});
|
|
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);
|
|
in
|
|
{
|
|
nixosConfigurations = makeConfigurations ./system makeNixosSystem;
|
|
darwinConfigurations = makeConfigurations ./darwin makeDarwinSystem;
|
|
}
|
|
// utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
packages = {
|
|
nvim = inputs.nixvim.legacyPackages."${system}".makeNixvimWithModule {
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
};
|
|
module = import ./sets/nvim.nix {
|
|
path = [ ];
|
|
inherit (pkgs) lib;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
);
|
|
}
|