cleaned up core modules and added universal flakeLocation argument
This commit is contained in:
@@ -1,13 +1,5 @@
|
|||||||
{
|
{self, ...}: {
|
||||||
self,
|
flake.nixosModules.core = {pkgs, ...}: let
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
flake.nixosModules.core = {
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
modules = with self.nixosModules; [
|
modules = with self.nixosModules; [
|
||||||
user
|
user
|
||||||
bootloader
|
bootloader
|
||||||
@@ -21,6 +13,7 @@
|
|||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
]
|
]
|
||||||
++ modules;
|
++ modules;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
avahi.enable = true;
|
avahi.enable = true;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
perSystem = {system, ...}: {
|
perSystem = {system, ...}: {
|
||||||
_module.args.unfreePkgs = import inputs.nixpkgs {
|
_module.args = {
|
||||||
|
unfreePkgs = import inputs.nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
# Make flakeLocation universally addressable
|
||||||
|
flakeLocation = builtins.getEnv "PWD";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
flake.nixosModules.nix = {...}: {
|
flake.nixosModules.nix = {...}: {
|
||||||
nix = {
|
nix = {
|
||||||
|
|||||||
Reference in New Issue
Block a user