fix: Formatting

Working:
  - The daemon
  - Mutable config — well, kinda. I'm not yet sure how it will interact with
    `emacsWithPackagesFromUsePackage`.
  - Packages via Nixpkgs
This commit is contained in:
Madeleine Sydney
2025-01-03 17:06:49 -07:00
parent d2ced4089b
commit ceb7bdf92e
2 changed files with 32 additions and 29 deletions

View File

@@ -13,6 +13,7 @@ let users = builtins.readDir ../users;
# Directory name should always match username. # Directory name should always match username.
({ ... }: { home.username = username; }) ({ ... }: { home.username = username; })
# TODO: Move to default module.
({ lib, ... }: { ({ lib, ... }: {
nix = { nix = {
settings.experimental-features = settings.experimental-features =

View File

@@ -18,10 +18,11 @@ let
(builtins.readDir ../users))); (builtins.readDir ../users)));
}; };
mkHost = hostName: nixpkgs.lib.nixosSystem { mkHost = hostName:
let system = import ../hosts/${hostName}/system.nix;
in nixpkgs.lib.nixosSystem {
specialArgs = inputs; specialArgs = inputs;
system = import ../hosts/${hostName}/system.nix; inherit system;
# TODO: This is very ad-hoc, and I don't like it. Organise this better.
modules = [ modules = [
../hosts/${hostName}/configuration.nix ../hosts/${hostName}/configuration.nix
@@ -51,6 +52,7 @@ let
inherit config lib; inherit config lib;
pkgs = nixpkgs; pkgs = nixpkgs;
}; };
inherit inputs system;
}; };
}) })
]; ];