modified: flake.nix

This commit is contained in:
2025-07-20 22:44:31 +10:00
parent d6f9fe97f5
commit 6d701af3c7

View File

@@ -14,42 +14,48 @@
};
};
outputs = { self, nixpkgs, nixos-conf-editor, home-manager, ... } @ inputs:
let system = "x86_64-linux"; in {
outputs = { self, nixpkgs, home-manager, winapps, ... } @ inputs:
let system = "x86_64-linux"; in
{
nixConfig = {
access-tokens = [
"github.com=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"
];
};
nixosConfigurations = {
# automatically use each host folder by name
nixos = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./hosts/nixos/configuration.nix
./common/hardware-configuration.nix
inputs.winapps.nixosModule
winapps.nixosModule
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.nixos = import ./hosts/nixos/home.nix;
}
];
configuration = {
environment.systemPackages = with nixpkgs.legacyPackages.${system}; [
# Inline module to configure winapps and VM backend
({ config, pkgs, lib, inputs, ... }:
{
environment.systemPackages = with pkgs; [
inputs.winapps.packages.${system}.winapps
inputs.winapps.packages.${system}.winapps-launcher
freerdp
];
virtualisation.libvirtd.enable = true;
# other VM or RDP-related settings...
services.libvirtd.enable = true;
# Optionally, enable docker/podman container support
# virtualisation.oci-containers.backend = "docker";
})
];
};
specialArgs = { inherit inputs; };
};
docker = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
@@ -62,6 +68,7 @@
}
];
};
server = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
@@ -74,7 +81,8 @@
}
];
};
nix-cache = nixpkgs.lib.nixosSystem {
"nix-cache" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/nix-cache/configuration.nix
@@ -85,9 +93,7 @@
home-manager.users.nixos = import ./common/home.nix;
}
];
};
};
};
}