forked from danth/stylix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
droid: add support for nix-on-droid platform
Adds support for the nix-on-droid platform. Exposes the nixOnDroidModules.stylix module. Uses a temporary workaround for nix-community/nix-on-droid#436.
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
inputs: | ||
{ | ||
palette-generator, | ||
base16, | ||
homeManagerModule, | ||
}: | ||
{ lib, ... }: | ||
|
||
let | ||
autoload = import ../autoload.nix { inherit lib inputs; } "droid"; | ||
in | ||
{ | ||
imports = [ | ||
../pixel.nix | ||
../target.nix | ||
../opacity.nix | ||
./fonts.nix | ||
(import ./palette.nix { inherit palette-generator base16; }) | ||
(import ../templates.nix inputs) | ||
(import ../home-manager-integration.nix homeManagerModule) | ||
] ++ autoload; | ||
|
||
# See https://github.com/nix-community/nix-on-droid/issues/436 | ||
options.lib = lib.mkOption { | ||
type = with lib.types; attrsOf attrs; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
imports = [ ../fonts.nix ]; | ||
|
||
# TODO: set terminal.font to the path of the monospace font | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
args: | ||
{ config, lib, ... }: | ||
|
||
{ | ||
imports = [ (import ../palette.nix args) ]; | ||
|
||
config = lib.mkIf config.stylix.enable { | ||
environment.etc = config.stylix.generated.fileTree; | ||
}; | ||
} |