new file: home/git.nix new file: home/nvchad.nix new file: home/zsh.nix new file: hosts/server/default.nix new file: lib/mkHost.nix new file: modules/wsl/wsl.nix new file: profiles/server.nix
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
description = "My Infra";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix4nvchad = {
|
|
url = "github:nix-community/nix4nvchad";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
|
|
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, home-manager, ... }:
|
|
let
|
|
mkHost = import ./lib/mkHost.nix {
|
|
inherit nixpkgs home-manager inputs;
|
|
};
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
|
|
desktop = mkHost {
|
|
hostname = "desktop";
|
|
system = "x86_64-linux";
|
|
profile = "desktop";
|
|
};
|
|
|
|
server = mkHost {
|
|
hostname = "server";
|
|
system = "x86_64-linux";
|
|
profile = "server";
|
|
};
|
|
|
|
wsl = mkHost {
|
|
hostname = "wsl";
|
|
system = "x86_64-linux";
|
|
profile = "wsl";
|
|
};
|
|
|
|
};
|
|
};
|
|
} |