better variables

This commit is contained in:
John Lancaster
2024-12-07 14:26:10 -06:00
parent dd3de3c145
commit f303b9ec57
2 changed files with 9 additions and 7 deletions

View File

@@ -27,24 +27,29 @@
hostname = "loki";
lokiUser = "loki";
lokiPath = "/srv/loki";
lokiPort = 3100;
in
{
nixosConfigurations = {
# FIXME replace with your hostname
${hostname} = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs outputs;};
# pkgs = import nixpkgs { system = "x86_64-linux"; };
modules = [
./configuration.nix # > Our main nixos configuration file <
"${nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
({ ... }: {
nixpkgs.hostPlatform = "${system}";
system.stateVersion = "${stateVersion}";
time.timeZone = "${timeZone}";
})
vscode-server.nixosModules.default
({ config, pkgs, ... }: {services.vscode-server.enable = true;})
(import ./loki.nix { pkgs = nixpkgs.legacyPackages.${system}; userName = "${lokiUser}";})
(import ./loki.nix {
pkgs = nixpkgs.legacyPackages.${system};
inherit lokiPort;
inherit lokiUser;
})
];
};
};