Moving more stuff around
All checks were successful
Build / nix-build (native-aarch64, varda) (pull_request) Successful in 1m31s
Build / nix-build (native-x86_64, durincore) (pull_request) Successful in 4m36s

This commit is contained in:
Joseph Hanson 2024-05-30 23:55:10 -05:00
parent 8c70906d0f
commit 435f1b3aa1
13 changed files with 12 additions and 42 deletions

View file

@ -1,6 +1,6 @@
## Modules
A set of 'custom' modules with the aim to enable easy on/off/settings to build up a system modulary to my 'specs'.
A set of 'custom' modules with the aim to enable easy on/off/settings to build up a system modularly to my 'specs'.
The main goal is to build up a `mySystem` options key which is easy to read and toggle functionality on and off.

View file

@ -1,7 +1,4 @@
{ lib
, config
, ...
}:
{ lib, config, ... }:
let
cfg = config.mySystem.system.impermanence;
in

View file

@ -1,8 +1,4 @@
{ lib
, config
, self
, ...
}:
{ lib, config, ... }:
with lib;
let
cfg = config.mySystem.nix;
@ -27,7 +23,6 @@ in
};
};
};
config.nix = {
optimise.automatic = cfg.autoOptimiseStore;
# automatically garbage collect nix store

View file

@ -1,8 +1,4 @@
{ lib
, config
, self
, ...
}:
{ lib, config, ... }:
with lib;
let
cfg = config.mySystem.services.openssh;
@ -23,7 +19,6 @@ in
default = "no";
};
};
config = mkIf cfg.enable {
services.openssh = {
enable = true;

View file

@ -8,7 +8,7 @@ let
cfg = config.mySystem.system.systemd.pushover-alerts;
in
{
options.mySystem.system.systemd.pushover-alerts.enable = mkEnableOption "Pushover alers for systemd failures" // { default = true; };
options.mySystem.system.systemd.pushover-alerts.enable = mkEnableOption "Pushover alerts for systemd failures" // { default = true; };
options.systemd.services = mkOption {
type = with types; attrsOf (
submodule {

View file

@ -1,7 +1,4 @@
{ lib
, config
, ...
}:
{ lib, config, ... }:
with lib;
let
cfg = config.mySystem.security;

View file

@ -1,8 +1,4 @@
{ lib
, config
, self
, ...
}:
{ lib, config, ... }:
with lib;
let
cfg = config.mySystem.system;

View file

@ -1,7 +1,4 @@
{ lib
, config
, ...
}:
{ lib, config, ... }:
let
cfg = config.mySystem.time;
in

View file

@ -1,8 +1,4 @@
{ lib
, config
, pkgs
, ...
}:
{ lib, config, pkgs, ... }:
let
cfg = config.mySystem.system.zfs;
in
@ -40,6 +36,5 @@ with lib;
ZED_PUSHOVER_TOKEN = "$(${pkgs.busybox}/bin/cat ${config.sops.secrets.pushover-api-key.path})";
ZED_PUSHOVER_USER = "$(${pkgs.busybox}/bin/cat ${config.sops.secrets.pushover-user-key.path})";
};
};
}

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, imports, modulesPath, ... }:
{ config, lib, pkgs, modulesPath, ... }:
with lib;
{

View file

@ -5,5 +5,4 @@
./system.nix
./users.nix
];
}

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ ... }:
{
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
# Secret for machine-specific pushover

View file

@ -1,5 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
{ lib, pkgs, ... }:
{
system = {
# Enable printing changes on nix build etc with nvd