refactor: switch from modules to import arrays
This commit is contained in:
parent
d893750c09
commit
41eaa38d31
75 changed files with 1870 additions and 2541 deletions
|
|
@ -1,23 +1,27 @@
|
|||
{
|
||||
# keep-sorted start
|
||||
hostName,
|
||||
userName,
|
||||
util,
|
||||
# keep-sorted end
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# keep-sorted start
|
||||
../../modules/nixos/default.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# reusable modules
|
||||
|
||||
# keep-sorted start
|
||||
borgmatic.enable = true;
|
||||
intel-gpu.enable = true;
|
||||
server.enable = true;
|
||||
# keep-sorted end
|
||||
|
||||
# config
|
||||
# keep-sorted end
|
||||
]
|
||||
++ (util.toImports ../../modules/nixos/features [
|
||||
# keep-sorted start
|
||||
"borgmatic"
|
||||
"intel-gpu"
|
||||
# keep-sorted end
|
||||
])
|
||||
++ (util.toImports ../../modules/nixos/bundles [
|
||||
"server"
|
||||
]);
|
||||
|
||||
networking.hostName = "${hostName}";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue