format tree
This commit is contained in:
parent
24547fcd6c
commit
92c55595d0
43 changed files with 476 additions and 357 deletions
modules/nixos/common
|
@ -1,12 +1,8 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.comin.nixosModules.comin
|
||||
];
|
||||
imports = [ inputs.comin.nixosModules.comin ];
|
||||
|
||||
services.telegraf.extraConfig.inputs.prometheus.urls = [
|
||||
"http://localhost:4243/metrics"
|
||||
];
|
||||
services.telegraf.extraConfig.inputs.prometheus.urls = [ "http://localhost:4243/metrics" ];
|
||||
|
||||
services.comin = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./comin.nix
|
||||
|
@ -25,7 +30,9 @@
|
|||
Restart = "on-failure";
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.lib.mkIf (!config.boot.supportedFilesystems.zfs or false) pkgs.linuxPackages_latest;
|
||||
boot.kernelPackages = pkgs.lib.mkIf (
|
||||
!config.boot.supportedFilesystems.zfs or false
|
||||
) pkgs.linuxPackages_latest;
|
||||
|
||||
zramSwap.enable = true;
|
||||
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
restartIfChanged = false;
|
||||
unitConfig.X-StopOnRemoval = false;
|
||||
serviceConfig.Type = "oneshot";
|
||||
path = [ config.systemd.package pkgs.coreutils pkgs.kexec-tools ];
|
||||
path = [
|
||||
config.systemd.package
|
||||
pkgs.coreutils
|
||||
pkgs.kexec-tools
|
||||
];
|
||||
script = ''
|
||||
booted="$(readlink /run/booted-system/{initrd,kernel,kernel-modules} && cat /run/booted-system/kernel-params)"
|
||||
p="$(readlink -f /nix/var/nix/profiles/system)"
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
|
||||
services.openssh = {
|
||||
hostKeys = [
|
||||
{ path = "/etc/ssh/ssh_host_ed25519_key"; type = "ed25519"; }
|
||||
{
|
||||
path = "/etc/ssh/ssh_host_ed25519_key";
|
||||
type = "ed25519";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, inputs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
defaultSopsPath = "${toString inputs.self}/hosts/${config.networking.hostName}/secrets.yaml";
|
||||
in
|
||||
|
|
|
@ -5,10 +5,7 @@ let
|
|||
userImports =
|
||||
let
|
||||
toUserPath = f: usersDir + "/${f}";
|
||||
onlyUserFiles = x:
|
||||
lib.hasSuffix ".nix" x &&
|
||||
x != "lib.nix"
|
||||
;
|
||||
onlyUserFiles = x: lib.hasSuffix ".nix" x && x != "lib.nix";
|
||||
userDirEntries = builtins.readDir usersDir;
|
||||
userFiles = builtins.filter onlyUserFiles (lib.attrNames userDirEntries);
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue