Corrected missing boilerplate from flake.nix

This commit is contained in:
Luke Else 2025-03-20 15:59:18 +00:00
parent 5965d43eff
commit e555963e79

View File

@ -1,37 +1,47 @@
outputs = { nixpkgs, home-manager, ... }: {
let description = "NixOS Configuration for Laptop, Desktop and VM";
system = "x86_64-linux";
in { inputs = {
nixosConfigurations = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
laptop = nixpkgs.lib.nixosSystem { home-manager.url = "github:nix-community/home-manager";
inherit system; home-manager.inputs.nixpkgs.follows = "nixpkgs";
modules = [ };
./hosts/laptop.nix
./modules/common.nix outputs = { nixpkgs, home-manager, ... }:
./modules/hyprland.nix let
./modules/networking.nix system = "x86_64-linux";
./modules/user.nix in {
]; nixosConfigurations = {
}; laptop = nixpkgs.lib.nixosSystem {
desktop = nixpkgs.lib.nixosSystem { inherit system;
inherit system; modules = [
modules = [ ./hosts/laptop.nix
./hosts/desktop.nix ./modules/common.nix
./modules/common.nix ./modules/hyprland.nix
./modules/hyprland.nix ./modules/networking.nix
./modules/networking.nix ./modules/user.nix
./modules/user.nix ];
]; };
}; desktop = nixpkgs.lib.nixosSystem {
vm = nixpkgs.lib.nixosSystem { inherit system;
inherit system; modules = [
modules = [ ./hosts/desktop.nix
./hosts/vm.nix ./modules/common.nix
./modules/common.nix ./modules/hyprland.nix
./modules/hyprland.nix ./modules/networking.nix
./modules/networking.nix ./modules/user.nix
./modules/user.nix ];
]; };
vm = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/vm.nix
./modules/common.nix
./modules/hyprland.nix
./modules/networking.nix
./modules/user.nix
];
};
}; };
}; };
}; }