Skip to content

Commit

Permalink
Introduce nix-on-droid base config
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Oct 15, 2023
1 parent 7753312 commit 3d94131
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
27 changes: 27 additions & 0 deletions home/base/nix-on-droid/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ config, lib, ... }:

with lib;

let

cfg = config.custom.base.nix-on-droid;

in

{
options = {
custom.base.nix-on-droid = {
enable = mkEnableOption "NixOnDroid";
};
};

config = mkIf cfg.enable {
custom.base = {
nix.enableStoreOptimization = false;
non-nixos = {
enable = true;
installNix = false;
};
};
};
}
8 changes: 1 addition & 7 deletions home/roles/mobile/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ in
};

custom = {
base = {
nix.enableStoreOptimization = false;
non-nixos = {
enable = true;
installNix = false;
};
};
base.nix-on-droid.enable = true;

programs.ssh = {
enable = true;
Expand Down

0 comments on commit 3d94131

Please sign in to comment.