Compare commits

..

2 Commits

Author SHA1 Message Date
Flake Bot
007669d23d Bump flake.lock
Some checks are pending
Flake.lock / build (push) Waiting to run
Signed-off-by: Flake Bot <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-07 22:02:01 +00:00
c9123dfd05 hostname function in group 2024-09-08 00:00:11 +02:00
2 changed files with 13 additions and 21 deletions

View File

@ -11,5 +11,5 @@ Mirrored on [gitea.chrayed.de](https://gitea.chrayed.de/moe1369/nixos-config)
- [ ] ssh key deployment with [agenix](https://github.com/ryantm/agenix)
- [x] alternative way to declare .nix files instead of dumping them into configuration.nix -> now uses groups in flake.nix
- [x] Multi Host functionality for homelab
- [X] OCI container for common services
- [X] Fix Home-Manager issues with immutable .config files during rebuild -> files kglobalshortcutsrc and kwinrc can't be overwritten because of plasma-manager
- [ ] OCI container for common services
- [ ] Fix Home-Manager issues with immutable .config files during rebuild -> files kglobalshortcutsrc and kwinrc can't be overwritten because of plasma-manager

View File

@ -30,7 +30,8 @@
];
externalUserModules = [ plasma-manager.homeManagerModules.plasma-manager ];
# System Module groups
baseSystemModules = [
baseSystemModules = hostName:[
./hosts/${hostName}
./modules/system/apps-shell
./modules/system/boot
./modules/system/devices
@ -44,18 +45,20 @@
./modules/system/upgrades
./modules/system/users
];
desktopSystemModules = [
desktopSystemModules = hostName:[
./modules/system/ai
./modules/system/apps-misc
./modules/system/browser
./modules/system/flatpak
./modules/system/plasma
./modules/system/syncthing-${hostName}
];
displaySystemModules = [
./modules/system/sddm
];
gamingSystemModules = [
gamingSystemModules = hostName:[
./modules/system/controller
./modules/system/jovian-${hostName}
./modules/system/lact
./modules/system/retrodeck
./modules/system/steam
@ -87,10 +90,7 @@
in
lib.nixosSystem {
specialArgs = {inherit user; inherit hostName; inherit system;};
modules = externalSystemModules ++ baseSystemModules ++ desktopSystemModules ++ displaySystemModules ++ gamingSystemModules ++ [
./hosts/${hostName}
./modules/system/jovian-${hostName}
./modules/system/syncthing-${hostName}
modules = externalSystemModules ++ (baseSystemModules hostName) ++ (desktopSystemModules hostName) ++ displaySystemModules ++ (gamingSystemModules hostName) ++ [
{
home-manager.users.${user}.imports = baseUserModules ++ desktopUserModules ++ gamingUserModules ++ [
];
@ -106,12 +106,9 @@
in
lib.nixosSystem {
specialArgs = {inherit user; inherit hostName; inherit system;};
modules = externalSystemModules ++ baseSystemModules ++ desktopSystemModules ++ gamingSystemModules ++ [
./hosts/${hostName}
./modules/system/jovian-${hostName}
./modules/system/syncthing-${hostName}
modules = externalSystemModules ++ (baseSystemModules hostName) ++ (desktopSystemModules hostName) ++ (gamingSystemModules hostName) ++ [
{
home-manager.users.${user}.imports = baseUserModules ++ desktopUserModules ++ gamingUserModules ++ [
home-manager.users.${user}.imports = baseUserModules ++ desktopUserModules ++ gamingSystemModules ++ [
];
home-manager.extraSpecialArgs = { inherit user; inherit hostName;};
home-manager.sharedModules = externalUserModules;
@ -125,10 +122,7 @@
in
lib.nixosSystem {
specialArgs = {inherit user; inherit hostName; inherit system;};
modules = externalSystemModules ++ baseSystemModules ++ desktopSystemModules ++ gamingSystemModules ++ [
./hosts/${hostName}
./modules/system/jovian-${hostName}
./modules/system/syncthing-${hostName}
modules = externalSystemModules ++ (baseSystemModules hostName) ++ (desktopSystemModules hostName) ++ (gamingSystemModules hostName) ++ [
{
home-manager.users.${user}.imports = baseUserModules ++ desktopUserModules ++ gamingUserModules ++ [
];
@ -144,9 +138,7 @@
in
lib.nixosSystem {
specialArgs = {inherit user; inherit hostName; inherit system;};
modules = externalSystemModules ++ baseSystemModules ++ serverSystemModules ++ [
./hosts/${hostName}
./modules/system/syncthing-${hostName}
modules = externalSystemModules ++ (baseSystemModules hostName) ++ serverSystemModules ++ [
{
home-manager.users.${user}.imports = baseUserModules ++ serverUserModules ++ [
];