mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-19 16:49:04 +05:30
feat(droid): add nix-on-droid support and vega host
This commit is contained in:
32
modules/droid/core/hm.nix
Normal file
32
modules/droid/core/hm.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ inputs, config, ... }:
|
||||
{
|
||||
flake.modules.droid.core =
|
||||
{
|
||||
hostName,
|
||||
userName,
|
||||
userEmail,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home-manager = {
|
||||
backupFileExtension = "bak";
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
hostName
|
||||
userName
|
||||
userEmail
|
||||
;
|
||||
};
|
||||
|
||||
config = {
|
||||
imports = [
|
||||
config.flake.modules.homeManager.shell
|
||||
config.flake.modules.homeManager.${hostName}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
7
modules/droid/core/nix.nix
Normal file
7
modules/droid/core/nix.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
flake.modules.droid.core = {
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user