feat(configurations): add enable
to meta
Disable old `darwin` configurations (`apavel-a01` and `limontozu`)
This commit is contained in:
parent
2c7ba766fe
commit
479c86c003
3 changed files with 18 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
system = "x86_64-darwin";
|
system = "x86_64-darwin";
|
||||||
|
enable = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
system = "x86_64-darwin";
|
system = "x86_64-darwin";
|
||||||
|
enable = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -294,12 +294,15 @@ in
|
||||||
# TODO: put in a more visible place
|
# TODO: put in a more visible place
|
||||||
default = {
|
default = {
|
||||||
nixos = {
|
nixos = {
|
||||||
predicate = ({ root, host, configurationFiles, ... }:
|
predicate = ({ root, host, configurationFiles, ... }: let
|
||||||
|
meta = import "${root}/meta.nix";
|
||||||
|
in
|
||||||
and [
|
and [
|
||||||
(! (host == "__template__"))
|
(! (host == "__template__"))
|
||||||
(hasFiles
|
(hasFiles
|
||||||
[ "configuration.nix" "meta.nix" ]
|
[ "configuration.nix" "meta.nix" ]
|
||||||
configurationFiles)
|
configurationFiles)
|
||||||
|
(meta.enable or true)
|
||||||
]);
|
]);
|
||||||
mkHost = ({ root, host, configurationFiles, ... }: let
|
mkHost = ({ root, host, configurationFiles, ... }: let
|
||||||
meta = import "${root}/meta.nix" // {
|
meta = import "${root}/meta.nix" // {
|
||||||
|
@ -320,12 +323,15 @@ in
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
nix-on-droid = {
|
nix-on-droid = {
|
||||||
predicate = ({ root, host, configurationFiles, ... }:
|
predicate = ({ root, host, configurationFiles, ... }: let
|
||||||
|
meta = import "${root}/meta.nix";
|
||||||
|
in
|
||||||
and [
|
and [
|
||||||
(! (host == "__template__"))
|
(! (host == "__template__"))
|
||||||
(hasFiles
|
(hasFiles
|
||||||
[ "configuration.nix" "home.nix" "meta.nix" ]
|
[ "configuration.nix" "home.nix" "meta.nix" ]
|
||||||
configurationFiles)
|
configurationFiles)
|
||||||
|
(meta.enable or true)
|
||||||
]);
|
]);
|
||||||
mkHost = ({ root, host, configurationFiles, ... }: let
|
mkHost = ({ root, host, configurationFiles, ... }: let
|
||||||
meta = import "${root}/meta.nix" // {
|
meta = import "${root}/meta.nix" // {
|
||||||
|
@ -340,7 +346,9 @@ in
|
||||||
nix-darwin = {
|
nix-darwin = {
|
||||||
hostsName = "darwinHosts";
|
hostsName = "darwinHosts";
|
||||||
configurationsName = "darwinConfigurations";
|
configurationsName = "darwinConfigurations";
|
||||||
predicate = ({ root, host, configurationFiles, ... }:
|
predicate = ({ root, host, configurationFiles, ... }: let
|
||||||
|
meta = import "${root}/meta.nix";
|
||||||
|
in
|
||||||
and [
|
and [
|
||||||
(! (host == "__template__"))
|
(! (host == "__template__"))
|
||||||
(hasFiles
|
(hasFiles
|
||||||
|
@ -349,6 +357,7 @@ in
|
||||||
(hasDirectories
|
(hasDirectories
|
||||||
[ "home" ]
|
[ "home" ]
|
||||||
configurationFiles)
|
configurationFiles)
|
||||||
|
(meta.enable or true)
|
||||||
]);
|
]);
|
||||||
mkHost = ({ root, host, configurationFiles, ... }: let
|
mkHost = ({ root, host, configurationFiles, ... }: let
|
||||||
meta = import "${root}/meta.nix" // {
|
meta = import "${root}/meta.nix" // {
|
||||||
|
@ -371,12 +380,15 @@ in
|
||||||
home-manager = {
|
home-manager = {
|
||||||
hostsName = "homeHosts";
|
hostsName = "homeHosts";
|
||||||
configurationsName = "homeConfigurations";
|
configurationsName = "homeConfigurations";
|
||||||
predicate = ({ root, host, configurationFiles, ... }:
|
predicate = ({ root, host, configurationFiles, ... }: let
|
||||||
|
meta = import "${root}/meta.nix";
|
||||||
|
in
|
||||||
and [
|
and [
|
||||||
(! (host == "__template__"))
|
(! (host == "__template__"))
|
||||||
(hasFiles
|
(hasFiles
|
||||||
[ "home.nix" "meta.nix" ]
|
[ "home.nix" "meta.nix" ]
|
||||||
configurationFiles)
|
configurationFiles)
|
||||||
|
(meta.enable or true)
|
||||||
]);
|
]);
|
||||||
mkHost = ({ root, host, configurationFiles, ... }: let
|
mkHost = ({ root, host, configurationFiles, ... }: let
|
||||||
meta = import "${root}/meta.nix" // {
|
meta = import "${root}/meta.nix" // {
|
||||||
|
|
Loading…
Reference in a new issue