format and comments
This commit is contained in:
parent
c22caf7cef
commit
b297bf2853
3 changed files with 15 additions and 19 deletions
22
flake.nix
22
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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
{ lib
|
||||
, config
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue