mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
config: change internal variable used for checking
This commit is contained in:
parent
f34d793bb6
commit
6dcbb30e4a
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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].
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user