refactor(flake, system): improve code structure

Refactor configuration generation

- Inherit lib from nixpkgs
- Rename functions (mkHome -> makeHome, merge -> forEachHost
- Relocate some variables' definitions into config generator functions
- Create separate function to track home-manager modules
This commit is contained in:
2024-08-06 01:58:25 +03:00
parent 2f0934d02b
commit 668c2f17c4
5 changed files with 20 additions and 41 deletions

View File

@@ -84,8 +84,4 @@ in
tappingDragLock = false;
};
};
# Something important
system.stateVersion = "24.05";
}

View File

@@ -1,13 +1,4 @@
{
inputs,
config,
pkgs,
lib,
...
}:
{
networking.hostName = "maidena";
services = {
desktopManager.plasma6.enable = true;
displayManager.sddm = {

View File

@@ -1,12 +1,4 @@
{
inputs,
config,
pkgs,
lib,
...
}:
{
networking.hostName = "tokishiko";
console.keyMap = "no";
services = {