2024-04-07 17:53:24 +00:00
|
|
|
{
|
|
|
|
|
description = "Your new nix config";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
2024-08-28 16:08:36 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-04-07 17:53:24 +00:00
|
|
|
home-manager = {
|
2024-08-28 16:08:36 +00:00
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
2024-04-07 17:53:24 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixos-wsl = {
|
|
|
|
|
url = "github:nix-community/nixos-wsl";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
vscode-server = {
|
|
|
|
|
url = "github:nix-community/nixos-vscode-server";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixvim = {
|
2024-08-28 16:08:36 +00:00
|
|
|
url = "github:nix-community/nixvim/nixos-24.05";
|
2024-04-07 17:53:24 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2024-04-09 20:45:15 +00:00
|
|
|
|
2024-08-28 16:08:36 +00:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
2024-04-07 17:53:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
|
self,
|
|
|
|
|
nixpkgs,
|
2024-08-28 16:08:36 +00:00
|
|
|
nixpkgs-unstable,
|
2024-04-07 17:53:24 +00:00
|
|
|
home-manager,
|
|
|
|
|
nixos-wsl,
|
|
|
|
|
vscode-server,
|
|
|
|
|
nixvim,
|
|
|
|
|
...
|
|
|
|
|
} @ inputs: let
|
|
|
|
|
inherit (self) outputs;
|
|
|
|
|
in {
|
|
|
|
|
# Available through 'nixos-rebuild --flake .#wsl'
|
|
|
|
|
nixosConfigurations = {
|
2024-04-09 20:45:15 +00:00
|
|
|
virtualbox = nixpkgs.lib.nixosSystem {
|
|
|
|
|
specialArgs = {
|
|
|
|
|
inherit inputs outputs;
|
|
|
|
|
username = "nickolaj";
|
|
|
|
|
hostname = "virtualbox";
|
|
|
|
|
};
|
|
|
|
|
modules = [
|
|
|
|
|
nixos-wsl.nixosModules.wsl
|
|
|
|
|
vscode-server.nixosModules.default
|
|
|
|
|
./nixos/configuration.nix
|
|
|
|
|
./machines/virtualbox/configuration.nix
|
|
|
|
|
];
|
|
|
|
|
};
|
2024-04-07 17:53:24 +00:00
|
|
|
wsl = nixpkgs.lib.nixosSystem {
|
|
|
|
|
specialArgs = {
|
|
|
|
|
inherit inputs outputs;
|
|
|
|
|
username = "nickolaj";
|
|
|
|
|
hostname = "wsl";
|
|
|
|
|
};
|
|
|
|
|
modules = [
|
|
|
|
|
nixos-wsl.nixosModules.wsl
|
|
|
|
|
vscode-server.nixosModules.default
|
|
|
|
|
./nixos/configuration.nix
|
2024-04-09 20:45:15 +00:00
|
|
|
./machines/wsl/configuration.nix
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
legion = nixpkgs.lib.nixosSystem {
|
|
|
|
|
specialArgs = {
|
|
|
|
|
inherit inputs outputs;
|
|
|
|
|
username = "nickolaj";
|
|
|
|
|
hostname = "legion";
|
|
|
|
|
};
|
|
|
|
|
modules = [
|
|
|
|
|
nixos-wsl.nixosModules.wsl
|
|
|
|
|
vscode-server.nixosModules.default
|
|
|
|
|
./nixos/configuration.nix
|
|
|
|
|
./machines/legion/configuration.nix
|
2024-04-07 17:53:24 +00:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|