From b297bf28530a8e843cef4d4097926bfda20f309f Mon Sep 17 00:00:00 2001 From: pazpi Date: Thu, 5 Sep 2024 19:55:56 +0200 Subject: [PATCH] format and comments --- flake.nix | 22 +++++++++++----------- modules/networking/tailscale.nix | 9 ++++----- modules/virtualisation/proxmox.nix | 3 --- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/flake.nix b/flake.nix index 7fea340..e0e18df 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,8 @@ { # Source of inspiration: - # - https://github.com/BonusPlay/sysconf/blob/master/flake.nix - # - https://github.com/NixOS/infra/blob/master/build/flake.nix + # - https://github.com/BonusPlay/sysconf/blob/master/flake.nix (agenix) + # - https://github.com/NixOS/infra/blob/master/build/flake.nix (agenix) + # - https://johns.codes/blog/organizing-system-configs-with-nixos (caddy) description = "Pazpi's systems"; @@ -34,19 +35,18 @@ }; outputs = - { - self, - nixpkgs, - nixos-hardware, - lix-module, - agenix, - colmena, - home-manager, + { self + , nixpkgs + , nixos-hardware + , lix-module + , agenix + , colmena + , home-manager + , ... }@inputs: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; - lib = nixpkgs.lib; in { diff --git a/modules/networking/tailscale.nix b/modules/networking/tailscale.nix index 7043233..2789a34 100644 --- a/modules/networking/tailscale.nix +++ b/modules/networking/tailscale.nix @@ -1,8 +1,7 @@ -{ - lib, - config, - pkgs, - ... +{ lib +, config +, pkgs +, ... }: with lib; let diff --git a/modules/virtualisation/proxmox.nix b/modules/virtualisation/proxmox.nix index c03044e..f831dc8 100644 --- a/modules/virtualisation/proxmox.nix +++ b/modules/virtualisation/proxmox.nix @@ -2,15 +2,12 @@ config, lib, pkgs, - inputs, ... }: - let cfg = config.my.virtualisation.proxmox; in { - options.my.virtualisation.proxmox = { enable = lib.mkEnableOption "If this host is running inside Proxmox";