feat: make lib work
This commit is contained in:
parent
367db24109
commit
ce706dd76a
8 changed files with 14 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
# ../lib
|
||||
./config.nix
|
||||
|
||||
../hosts
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
imports = [inputs.easy-hosts.flakeModule];
|
||||
|
||||
config.easy-hosts = {
|
||||
shared.specialArgs.marleylib = import ../lib;
|
||||
|
||||
### Module Imports ###
|
||||
# TODO: Move module imports to custom module
|
||||
shared.modules = with inputs; [
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
lib,
|
||||
marleylib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.marleyos) enabled;
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
networking = {
|
||||
computerName = "mairley";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.marleyos) enabled;
|
||||
{marleylib, ...}: let
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
imports = [./hardware-configuration.nix];
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.marleyos) enabled;
|
||||
{marleylib, ...}: let
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
imports = [./hardware-configuration.nix];
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.marleyos) enabled;
|
||||
{marleylib, ...}: let
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
imports = [./hardware-configuration.nix ./mounts.nix ./autorandr.nix];
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
module = import ./module.nix;
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
_: {
|
||||
{
|
||||
enabled = {
|
||||
## Quickly enable an option.
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue