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:
@@ -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 =
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user