packetmix/modules/nilla-home/home.nix
packetmix/modules/nilla-home/home.nix
This file has not been changed.
packetmix/modules/nilla-home/homes-type.nix
packetmix/modules/nilla-home/homes-type.nix
This file has not been changed.
+4
-5
packetmix/modules/nilla-home/nixos.nix
+4
-5
packetmix/modules/nilla-home/nixos.nix
···
30
31
config.modules =
32
let
33
-
system = submodule.config.pkgs.stdenv.hostPlatform.system or submodule.config.pkgs.system;
34
warn' = builtins.warn or builtins.trace; # builtins.warn doesn't exist on some versions of nix/lix
35
warnIf =
36
condition: message: value:
···
51
homeNameParts = builtins.match "([a-z][-a-z0-9]*)(@([-A-Za-z0-9]+))?(:([-_A-Za-z0-9]+))?" homeName;
52
username = builtins.elemAt homeNameParts 0;
53
homeHasHomeManager = !(builtins.isNull home.home-manager);
54
-
homeIsValidForSystem = home ? result.${value.pkgs.stdenv.hostPlatform.system or value.pkgs.system};
55
in
56
-
if !hasHomeManager then
57
builtins.throw "You've asked for the home \"${homeName}\" to be activated in the NixOS system \"${name}\", but it needs a home-manager instance, none was provided and \"inputs.home-manager\" does not exist."
58
else if !homeIsValidForSystem then
59
builtins.throw "You've asked for the home \"${homeName}\" to be activated in the NixOS system \"${name}\", but it isn't valid for \"${
60
-
value.pkgs.stdenv.hostPlatform.system or value.pkgs.system
61
}\" systems."
62
else
63
{
···
67
(
68
values:
69
let
70
-
existingUsernames = builtins.filter (username: value.username != null) values;
71
uniqueUsernames = lib.lists.unique existingUsernames;
72
in
73
if existingUsernames != uniqueUsernames then
···
30
31
config.modules =
32
let
33
warn' = builtins.warn or builtins.trace; # builtins.warn doesn't exist on some versions of nix/lix
34
warnIf =
35
condition: message: value:
···
50
homeNameParts = builtins.match "([a-z][-a-z0-9]*)(@([-A-Za-z0-9]+))?(:([-_A-Za-z0-9]+))?" homeName;
51
username = builtins.elemAt homeNameParts 0;
52
homeHasHomeManager = !(builtins.isNull home.home-manager);
53
+
homeIsValidForSystem = home ? result.${config.pkgs.stdenv.hostPlatform.system or config.pkgs.system};
54
in
55
+
if !homeHasHomeManager then
56
builtins.throw "You've asked for the home \"${homeName}\" to be activated in the NixOS system \"${name}\", but it needs a home-manager instance, none was provided and \"inputs.home-manager\" does not exist."
57
else if !homeIsValidForSystem then
58
builtins.throw "You've asked for the home \"${homeName}\" to be activated in the NixOS system \"${name}\", but it isn't valid for \"${
59
+
config.pkgs.stdenv.hostPlatform.system or config.pkgs.system
60
}\" systems."
61
else
62
{
···
66
(
67
values:
68
let
69
+
existingUsernames = builtins.filter (value: value.username != null) values;
70
uniqueUsernames = lib.lists.unique existingUsernames;
71
in
72
if existingUsernames != uniqueUsernames then
packetmix/npins/sources.json
packetmix/npins/sources.json
This file has not been changed.
History
7 rounds
0 comments
a.starrysky.fyi
submitted
#6
1 commit
expand
collapse
do-not-merge: fix eval warnings
expand 0 comments
This pull has been deleted (possibly by jj abandon or jj squash)
a.starrysky.fyi
submitted
#5
1 commit
expand
collapse
do-not-merge: fix eval warnings
expand 0 comments
a.starrysky.fyi
submitted
#4
1 commit
expand
collapse
do-not-merge: fix eval warnings
expand 0 comments
a.starrysky.fyi
submitted
#3
1 commit
expand
collapse
chore: bump nillas to testing versions
expand 0 comments
a.starrysky.fyi
submitted
#2
1 commit
expand
collapse
chore: bump nillas to testing versions
expand 0 comments
a.starrysky.fyi
submitted
#1
1 commit
expand
collapse
chore: bump nillas to testing versions
expand 0 comments
a.starrysky.fyi
submitted
#0
1 commit
expand
collapse
chore: bump nillas to testing versions