nixos-config/flake.nix
Artemis Tosini f38136b2fe
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/9036fe9ef8e15a819fa76f47a8b1f287903fb848' (2024-05-02)
  → 'github:nix-community/home-manager/3dfe05aa9b5646995ace887931fa60269a039777' (2024-05-05)
• Updated input 'jovian':
    'github:jovian-experiments/jovian-nixos/68b6bfacf67fcb1660c024b8dcd9376af38bbafe' (2024-05-03)
  → 'github:jovian-experiments/jovian-nixos/d0799ebebfb37fd2df6409dc8da622738c5930bb' (2024-05-04)
• Updated input 'lix':
    'git+ssh://git@lix.systems/lix-project/lix?ref=refs/heads/main&rev=549d609a7bce2b4ac28808a76a72d7f3743b9c76' (2024-05-03)
  → 'git+ssh://git@git.lix.systems/lix-project/lix?ref=refs/heads/main&rev=7cffd7a3b550deb3b2780780fd0226cbc649da9b' (2024-05-05)
• Updated input 'lix-module':
    'git+ssh://git@lix.systems/lix-project/nixos-module?ref=refs/heads/main&rev=f87998884022cabbec27218c0d97e9f7da51b4de' (2024-05-04)
  → 'git+ssh://git@git.lix.systems/lix-project/nixos-module?ref=refs/heads/main&rev=e31baf57680bab449ab5b40179cc4a08a99f5314' (2024-05-05)
• Updated input 'lix-module/flakey-profile':
    'github:lf-/flakey-profile/3b32c4a71f89b874fe0be2dc125eacb9c3473204' (2024-03-25)
  → 'github:lf-/flakey-profile/243c903fd8eadc0f63d205665a92d4df91d42d9d' (2024-04-12)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/941c4973c824509e0356be455d89613611f76c8a' (2024-04-28)
  → 'github:nix-community/nix-index-database/a362555e9dbd4ecff3bb98969bbdb8f79fe87f10' (2024-05-05)
• Updated input 'nixos-hardware':
    'github:nixos/nixos-hardware/3f017311191fe6d501ca2496a835d012f656ee9c' (2024-05-03)
  → 'github:nixos/nixos-hardware/753176b57b3fcddb140c1c012868e62c025120bd' (2024-05-05)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/63c3a29ca82437c87573e4c6919b09a24ea61b0f' (2024-05-02)
  → 'github:nixos/nixpkgs/25865a40d14b3f9cf19f19b924e2ab4069b09588' (2024-05-05)
2024-05-05 22:37:03 +00:00

125 lines
3.6 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";
inputs.utils.follows = "utils";
};
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";
inputs.flake-utils.follows = "utils";
};
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 = "git+ssh://git@git.lix.systems/lix-project/lix";
flake = false;
};
lix-module = {
url = "git+ssh://git@git.lix.systems/lix-project/nixos-module";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "utils";
inputs.lix.follows = "lix";
};
nixvim = {
url = "github:nix-community/nixvim/82a19581defe682ff9ca7cb8b1b980b6dc297cf2";
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;
};
};
};
}
);
}