generated from john/nix-docker
reorg
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -36,7 +36,7 @@
|
|||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
# pkgs = import nixpkgs { system = "x86_64-linux"; };
|
# pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix # > Our main nixos configuration file <
|
./nixos/configuration.nix # > Our main nixos configuration file <
|
||||||
"${nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
|
"${nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
nixpkgs.hostPlatform = "${system}";
|
nixpkgs.hostPlatform = "${system}";
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
})
|
})
|
||||||
vscode-server.nixosModules.default
|
vscode-server.nixosModules.default
|
||||||
({ config, pkgs, ... }: {services.vscode-server.enable = true;})
|
({ config, pkgs, ... }: {services.vscode-server.enable = true;})
|
||||||
(import ./loki.nix {
|
(import ./nixos/loki.nix {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
inherit lokiPort;
|
inherit lokiPort;
|
||||||
inherit lokiUser;
|
inherit lokiUser;
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
"root@${hostname}" = home-manager.lib.homeManagerConfiguration {
|
"root@${hostname}" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = {inherit inputs outputs;};
|
||||||
modules = [(import ./git.nix { repoPath = "${lokiPath}"; })];
|
modules = [(import ./home-manager/git.nix { repoPath = "${lokiPath}"; })];
|
||||||
};
|
};
|
||||||
|
|
||||||
# FIXME replace with your username@hostname
|
# FIXME replace with your username@hostname
|
||||||
@@ -70,8 +70,8 @@
|
|||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = {inherit inputs outputs;};
|
||||||
# > Our main home-manager configuration file <
|
# > Our main home-manager configuration file <
|
||||||
modules = [
|
modules = [
|
||||||
(import ./home.nix { user = "${lokiUser}"; repoPath = "${lokiPath}"; })
|
(import ./home-manager/home.nix { user = "${lokiUser}"; repoPath = "${lokiPath}"; })
|
||||||
(import ./git.nix { repoPath = "${lokiPath}"; })
|
(import ./home-manager/git.nix { repoPath = "${lokiPath}"; })
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(pkgs.writeShellScriptBin "loki-check" "curl http://localhost:3100/ready")
|
(pkgs.writeShellScriptBin "loki-check" "curl http://localhost:${builtins.toString lokiPort}/ready")
|
||||||
(pkgs.writeShellScriptBin "loki-logs" "journalctl -b -u loki.service -n 25")
|
(pkgs.writeShellScriptBin "loki-logs" "journalctl -b -u loki.service -n 10")
|
||||||
];
|
];
|
||||||
|
|
||||||
services.loki = {
|
services.loki = {
|
||||||
Reference in New Issue
Block a user