formatted all files with nixfmt, added env variable to hold secrets

This commit is contained in:
pagedmov
2024-11-09 16:20:27 -05:00
parent d38da56ba2
commit 2a1ba18c09
93 changed files with 948 additions and 1254 deletions

View File

@@ -1,6 +1,7 @@
{pkgs, lib, config, ...}: {
{ pkgs, lib, config, ... }: {
options = {
movOpts.hardwareCfg.bootLoader.enable = lib.mkEnableOption "enables bootloader config";
movOpts.hardwareCfg.bootLoader.enable =
lib.mkEnableOption "enables bootloader config";
};
config = lib.mkIf config.movOpts.hardwareCfg.bootLoader.enable {
boot = {

View File

@@ -1,15 +1,4 @@
{
inputs,
nixpkgs,
nixvim,
config,
self,
username,
host,
...
}: {
imports =
[(import ./bootloader.nix)]
++ [(import ./network.nix)]
++ [(import ./powerprofiles.nix)];
{ inputs, nixpkgs, nixvim, config, self, username, host, ... }: {
imports = [ (import ./bootloader.nix) ] ++ [ (import ./network.nix) ]
++ [ (import ./powerprofiles.nix) ];
}

View File

@@ -1,16 +1,16 @@
{host, lib, config, ...}:
{
{ host, lib, config, ... }: {
options = {
movOpts.hardwareCfg.networkModule.enable = lib.mkEnableOption "enables network configuration";
movOpts.hardwareCfg.networkModule.enable =
lib.mkEnableOption "enables network configuration";
};
config = lib.mkIf config.movOpts.hardwareCfg.networkModule.enable {
networking = {
networkmanager.enable = true;
hostName = "${host}";
hosts = {
"192.168.1.200" = ["xenon"];
"192.168.1.201" = ["oganesson"];
"192.168.1.202" = ["mercury"];
"192.168.1.200" = [ "xenon" ];
"192.168.1.201" = [ "oganesson" ];
"192.168.1.202" = [ "mercury" ];
};
firewall = {
enable = true;

View File

@@ -1,6 +1,7 @@
{lib, config, ... }: {
{ lib, config, ... }: {
options = {
movOpts.hardwareCfg.powerProfiles.enable = lib.mkEnableOption "enables power profiles";
movOpts.hardwareCfg.powerProfiles.enable =
lib.mkEnableOption "enables power profiles";
};
config = lib.mkIf config.movOpts.hardwareCfg.powerProfiles.enable {
services = {