-
-
Notifications
You must be signed in to change notification settings - Fork 5
Labels
bugSomething isn't workingSomething isn't working
Description
I tried to add a simple, static aspect as includes in den.aspects.alice.includes, these are the changes:
diff --git a/templates/default/modules/aspects/alice.nix b/templates/default/modules/aspects/alice.nix
index 9274926406..9025d6a30f 100644
--- a/templates/default/modules/aspects/alice.nix
+++ b/templates/default/modules/aspects/alice.nix
@@ -1,21 +1,27 @@
{ den, ... }:
{
den.aspects.alice = {
# You can include other aspects, in this case some
# den included batteries that provide common configs.
includes =
let
# deadnix: skip # demo: enable <> on lexical scope
inherit (den.lib) __findFile;
+
+ enableEmacs.homeManager = { pkgs, ... }: {
+ programs.emacs.enable = true;
+ programs.emacs.package = pkgs.emacs30;
+ };
in
[
+ enableEmacs
<eg/autologin>
<den/primary-user> # alice is admin always.
(<den/user-shell> "fish") # default user shell
];and here's the error:
error: The option `virtualisation.vmVariant.home-manager.users.alice.programs.emacs.package' is defined multiple times while it's expected to be unique.
Definition values:
- In `/nix/store/0xiy74pflpm059grgd2s2c8m3wz672pc-source/templates/default/modules/aspects/alice.nix, via option den.aspects.alice.includes."[definition 1-entry 1]".homeManager': <derivation emacs-30.2>
- In `/nix/store/0xiy74pflpm059grgd2s2c8m3wz672pc-source/templates/default/modules/aspects/alice.nix, via option den.aspects.alice.includes."[definition 1-entry 1]".homeManager': <derivation emacs-30.2> - In `/nix/store/0xiy74pflpm059grgd2s2c8m3wz672pc-source/templates/default/modules/aspects/alice.nix, via option den.aspects.alice.includes."[definition 1-entry 1]".homeManager': <derivation emacs-30.2>
- In `/nix/store/0xiy74pflpm059grgd2s2c8m3wz672pc-source/templates/default/modules/aspects/alice.nix, via option den.aspects.alice.includes."[definition 1-entry 1]".homeManager': <derivation emacs-30.2> - In `/nix/store/0xiy74pflpm059grgd2s2c8m3wz672pc-source/templates/default/modules/aspects/alice.nix, via option den.aspects.alice.includes."[definition 1-entry 1]".homeManager': <derivation emacs-30.2> - In `/nix/store/0xiy74pflpm059grgd2s2c8m3wz672pc-source/templates/default/modules/aspects/alice.nix, via option den.aspects.alice.includes."[definition 1-entry 1]".homeManager': <derivation emacs-30.2>
Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.
Sub-issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working