modified: flake.nix
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
This commit is contained in:
55
flake.nix
55
flake.nix
@@ -1,18 +1,51 @@
|
||||
{
|
||||
description = "A basic NixOS configuration";
|
||||
description = "My Infra";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-23.05.tar.gz";
|
||||
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 = { self, nixpkgs }: {
|
||||
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./modules/ssh
|
||||
./modules/zsh-oh-my-zsh
|
||||
./modules/fcitx5
|
||||
];
|
||||
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";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user