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:
|
# Source of inspiration:
|
||||||
# - https://github.com/BonusPlay/sysconf/blob/master/flake.nix
|
# - https://github.com/BonusPlay/sysconf/blob/master/flake.nix (agenix)
|
||||||
# - https://github.com/NixOS/infra/blob/master/build/flake.nix
|
# - 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";
|
description = "Pazpi's systems";
|
||||||
|
|
||||||
|
|
@ -34,19 +35,18 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{ self
|
||||||
self,
|
, nixpkgs
|
||||||
nixpkgs,
|
, nixos-hardware
|
||||||
nixos-hardware,
|
, lix-module
|
||||||
lix-module,
|
, agenix
|
||||||
agenix,
|
, colmena
|
||||||
colmena,
|
, home-manager
|
||||||
home-manager,
|
, ...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{ lib
|
||||||
lib,
|
, config
|
||||||
config,
|
, pkgs
|
||||||
pkgs,
|
, ...
|
||||||
...
|
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,12 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.my.virtualisation.proxmox;
|
cfg = config.my.virtualisation.proxmox;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
options.my.virtualisation.proxmox = {
|
options.my.virtualisation.proxmox = {
|
||||||
enable = lib.mkEnableOption "If this host is running inside Proxmox";
|
enable = lib.mkEnableOption "If this host is running inside Proxmox";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue