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 = [
|
imports = [
|
||||||
# ../lib
|
|
||||||
./config.nix
|
./config.nix
|
||||||
|
|
||||||
../hosts
|
../hosts
|
||||||
|
|
|
@ -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; [
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
module = import ./module.nix;
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
_: {
|
{
|
||||||
enabled = {
|
enabled = {
|
||||||
## Quickly enable an option.
|
## Quickly enable an option.
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in a new issue