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 = [
# ../lib
./config.nix
../hosts

View file

@ -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; [

View file

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

View file

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

View file

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

View file

@ -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];

View file

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

View file

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