config: change internal variable used for checking

This commit is contained in:
Gabriel Arazas 2023-07-28 08:30:12 +08:00
parent f34d793bb6
commit 6dcbb30e4a
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ icontype = "svg"
# Project-wide attributes to be used. # Project-wide attributes to be used.
github-repo = "foo-dogsquared/nixos-config" github-repo = "foo-dogsquared/nixos-config"
check-variable = "_isInsideFds" check-variable = "_isfoodogsquaredcustom"
canonical-flake-url = "github:foo-dogsquared/nixos-config" canonical-flake-url = "github:foo-dogsquared/nixos-config"
canonical-source-repo = "https://github.com/foo-dogsquared/nixos-config" canonical-source-repo = "https://github.com/foo-dogsquared/nixos-config"
canonical-flake-url-tarball-master = "https://github.com/foo-dogsquared/nixos-config/archive/master.tar.gz" canonical-flake-url-tarball-master = "https://github.com/foo-dogsquared/nixos-config/archive/master.tar.gz"

View File

@ -27,7 +27,7 @@ rec {
getSecret = path: ../secrets/${path}; getSecret = path: ../secrets/${path};
isInternal = config: config ? _isInsideFds && config._isInsideFds; isInternal = config: config ? _isfoodogsquaredcustom && config._isfoodogsquaredcustom;
getUsers = type: users: getUsers = type: users:
let let

View File

@ -1,6 +1,6 @@
= Profiles = Profiles
:toc: :toc:
:check_variable: _isInsideFds :check_variable: _isfoodogsquaredcustom
We're defining profiles after how link:https://digga.divnix.com/concepts/profiles.html[digga library from divnix defines it]. We're defining profiles after how link:https://digga.divnix.com/concepts/profiles.html[digga library from divnix defines it].

View File

@ -168,7 +168,7 @@ in
} }
# Check whether this is inside of my personal configuration or nah. # Check whether this is inside of my personal configuration or nah.
(lib.mkIf (lib.isInternal config) { (lib.mkIf (attrs ? _isfoodogsquaredcustom && attrs._isfoodogsquaredcustom) {
profiles.i18n = lib.mkDefault { profiles.i18n = lib.mkDefault {
enable = true; enable = true;
ibus.enable = true; ibus.enable = true;