feat: make lib work

This commit is contained in:
punkfairie 2025-05-25 13:14:20 -07:00
parent 367db24109
commit ce706dd76a
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
8 changed files with 14 additions and 10 deletions

View file

@ -1,6 +1,5 @@
{ {
imports = [ imports = [
# ../lib
./config.nix ./config.nix
../hosts ../hosts

View file

@ -6,6 +6,8 @@
imports = [inputs.easy-hosts.flakeModule]; imports = [inputs.easy-hosts.flakeModule];
config.easy-hosts = { config.easy-hosts = {
shared.specialArgs.marleylib = import ../lib;
### Module Imports ### ### Module Imports ###
# TODO: Move module imports to custom module # TODO: Move module imports to custom module
shared.modules = with inputs; [ shared.modules = with inputs; [

View file

@ -1,9 +1,9 @@
{ {
lib, marleylib,
config, config,
... ...
}: let }: let
inherit (lib.marleyos) enabled; inherit (marleylib.module) enabled;
in { in {
networking = { networking = {
computerName = "mairley"; computerName = "mairley";

View file

@ -1,5 +1,5 @@
{lib, ...}: let {marleylib, ...}: let
inherit (lib.marleyos) enabled; inherit (marleylib.module) enabled;
in { in {
imports = [./hardware-configuration.nix]; imports = [./hardware-configuration.nix];

View file

@ -1,5 +1,5 @@
{lib, ...}: let {marleylib, ...}: let
inherit (lib.marleyos) enabled; inherit (marleylib.module) enabled;
in { in {
imports = [./hardware-configuration.nix]; imports = [./hardware-configuration.nix];

View file

@ -1,5 +1,5 @@
{lib, ...}: let {marleylib, ...}: let
inherit (lib.marleyos) enabled; inherit (marleylib.module) enabled;
in { in {
imports = [./hardware-configuration.nix ./mounts.nix ./autorandr.nix]; imports = [./hardware-configuration.nix ./mounts.nix ./autorandr.nix];

View file

@ -0,0 +1,3 @@
{
module = import ./module.nix;
}

View file

@ -1,4 +1,4 @@
_: { {
enabled = { enabled = {
## Quickly enable an option. ## Quickly enable an option.
## ##