cleaned up core modules and added universal flakeLocation argument

This commit is contained in:
2026-08-27 14:21:11 +01:00
parent 06f2e248a8
commit 03f1d74812
2 changed files with 10 additions and 13 deletions

View File

@@ -1,13 +1,5 @@
{
self,
inputs,
...
}: {
flake.nixosModules.core = {
pkgs,
lib,
...
}: let
{self, ...}: {
flake.nixosModules.core = {pkgs, ...}: let
modules = with self.nixosModules; [
user
bootloader
@@ -21,6 +13,7 @@
/etc/nixos/hardware-configuration.nix
]
++ modules;
services = {
openssh.enable = true;
avahi.enable = true;

View File

@@ -1,8 +1,12 @@
{inputs, ...}: {
perSystem = {system, ...}: {
_module.args.unfreePkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
_module.args = {
unfreePkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
# Make flakeLocation universally addressable
flakeLocation = builtins.getEnv "PWD";
};
};
flake.nixosModules.nix = {...}: {