mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 22:00:53 +01:00
36 lines
1,008 B
Nix
36 lines
1,008 B
Nix
{
|
|
description = "A flake for my personnal configurations";
|
|
inputs = {
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-21.11;
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
neovim-nightly-overlay = {
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
|
};
|
|
homepage = {
|
|
url = "github:JulienMalka/homepage";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = { self, home-manager, nixpkgs, neovim-nightly-overlay, nur, ... }@inputs:
|
|
let
|
|
utils = import ./utils.nix { inherit nixpkgs home-manager inputs; };
|
|
pkgs = import nixpkgs { };
|
|
in
|
|
with utils;
|
|
{
|
|
nixosModules = builtins.listToAttrs (map
|
|
(x: {
|
|
name = x;
|
|
value = import (./modules + "/${x}");
|
|
})
|
|
(builtins.attrNames (builtins.readDir ./modules)));
|
|
|
|
nixosConfigurations = builtins.mapAttrs (name: value: (mkMachine name value self.nixosModules)) (importConfig ./machines);
|
|
|
|
};
|
|
}
|