This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-flake/flake.nix

43 lines
1.2 KiB
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixos-wsl.url = "github:nix-community/NixOS-WSL";
home-manager.url = "github:nix-community/home-manager";
home-manager-flake.url = "git+ssh://gitea@pi1.odie.intranet/odie/home-manager-flake.git";
neovim-flake.url = "git+ssh://gitea@pi1.odie.intranet/odie/neovim-flake.git";
};
outputs = inputs@{ self, nixpkgs, flake-utils, nixos-wsl, home-manager, ... }:
let
vars = rec {
name = "Patrick Neff";
username = "odie";
homeDirectory = "/home/${username}";
locale = "de_DE.UTF-8";
email = "odie86@gmail.com";
timeZone = "Europe/Berlin";
};
mkSystem = system: hostName: {
${hostName} =
nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
vars = vars // {
inherit hostName;
};
};
modules = [
./hosts/${hostName}
];
};
};
in
{
nixosConfigurations = mkSystem "x86_64-linux" "wsl-dev" // { };
};
}