formatted all files with nixfmt, added env variable to hold secrets
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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) ];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user