refactor: merge 'host.nix' into 'meta.nix'
This commit is contained in:
@@ -6,11 +6,13 @@
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
meta = import ./meta.nix;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
./hard.nix
|
||||
./host.nix
|
||||
inputs.nixos-hardware.nixosModules.common-pc
|
||||
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
||||
# inputs.nixos-hardware.nixosModules.lenovo-thinkpad-e14-intel-gen7 (not available yet?)
|
||||
@@ -21,6 +23,8 @@
|
||||
})
|
||||
];
|
||||
|
||||
inherit (meta) host;
|
||||
|
||||
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
|
||||
|
||||
"ai-tools".enable = true;
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
host = {
|
||||
username = "h";
|
||||
highRam = true;
|
||||
admin = true;
|
||||
};
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
{
|
||||
system = "x86_64-linux";
|
||||
deployment = {
|
||||
tags = [ "local" ];
|
||||
targetHost = "";
|
||||
targetUser = "h";
|
||||
};
|
||||
role = "laptop";
|
||||
tags = [ "local" ];
|
||||
host = {
|
||||
username = "h";
|
||||
highRam = true;
|
||||
admin = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user