mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 06:40:53 +01:00
58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
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 = inputs@{ self, home-manager, nixpkgs, neovim-nightly-overlay, nur, ... }:
|
|
{
|
|
nixosModules = builtins.listToAttrs (map
|
|
(x: {
|
|
name = x;
|
|
value = import (./modules + "/${x}");
|
|
})
|
|
(builtins.attrNames (builtins.readDir ./modules)));
|
|
|
|
nixosConfigurations = {
|
|
lisa = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
system = "x86_64-linux";
|
|
modules = builtins.attrValues self.nixosModules ++ [
|
|
./configuration.nix
|
|
./config/hosts/lisa.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.julien = import ./config/home/home-lisa.nix;
|
|
nixpkgs.overlays = [
|
|
inputs.neovim-nightly-overlay.overlay
|
|
];
|
|
|
|
}
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
}
|