mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: ...get internet again. git-hooks.nix adopt
This commit is contained in:
parent
7a0f09e700
commit
e00ec8f2f2
116 changed files with 1157 additions and 4681 deletions
|
|
@ -9,19 +9,18 @@
|
|||
inherit (lib.modules) mkDefault;
|
||||
inherit (lib.attrsets) genAttrs;
|
||||
fileOption = mkOption {
|
||||
type = attrsOf (submodule (
|
||||
_: {
|
||||
config.force = mkDefault config.home.clobberAllFiles;
|
||||
}
|
||||
));
|
||||
};
|
||||
|
||||
type = attrsOf (submodule (
|
||||
_: {
|
||||
config.force = mkDefault config.home.clobberAllFiles;
|
||||
}
|
||||
));
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
home = {
|
||||
clobberAllFiles = mkEnableOption "clobbering all files";
|
||||
file = fileOption;
|
||||
};
|
||||
xdg = genAttrs [ "configFile" "cacheFile" "stateFile" "dataFile" ] (_: fileOption);
|
||||
xdg = genAttrs ["configFile" "cacheFile" "stateFile" "dataFile"] (_: fileOption);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{ inputs, lib, pkgs, config, ... }: let
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkOption mkEnableOption mkPackageOption;
|
||||
inherit (lib.types) submodule path nullOr;
|
||||
inherit (lib.modules) mkIf;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
inherit (std) string set;
|
||||
in {
|
||||
options = let
|
||||
inherit (lib.types) str listOf attrs unspecified enum;
|
||||
inherit (lib.types) str listOf attrs nullOr unspecified enum bool;
|
||||
inherit (lib.options) mkOption;
|
||||
in {
|
||||
name = mkOption {
|
||||
|
|
@ -55,6 +55,18 @@ in {
|
|||
type = unspecified;
|
||||
internal = true;
|
||||
};
|
||||
microVM = {
|
||||
state = mkOption {
|
||||
description = "Does this system exist as a guest MicroVM?";
|
||||
type = bool;
|
||||
default = false;
|
||||
};
|
||||
host = mkOption {
|
||||
description = "The hostname that is the host of this guest MicroVM";
|
||||
type = nullOr str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = {
|
||||
system = let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue