Pass hostName in args, fix Hyprpanel theming, removed unused flake and overlay

This commit is contained in:
2025-04-12 18:51:28 +02:00
parent e3a1dd36d7
commit 00cf2c38f9
7 changed files with 55 additions and 127 deletions

View File

@ -89,46 +89,51 @@
#
# ========= Host Configurations =========
#
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
outputs
inputs
common
theme
lib
;
isDarwin = false;
};
modules = [
./hosts/desktop
home-manager.nixosModules.home-manager
{
home-manager = {
# Backups conflicting files in case of error
backupFileExtension = "bkp";
useGlobalPkgs = true;
useUserPackages = true;
# Passes inputs as an argument to home-manager
extraSpecialArgs = {
inherit
inputs
common
theme
libHm
;
nixosConfigurations.desktop =
let
hostName = "desktop";
in
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
outputs
inputs
common
theme
lib
hostName
;
isDarwin = false;
};
modules = [
./hosts/desktop
home-manager.nixosModules.home-manager
{
home-manager = {
# Backups conflicting files in case of error
backupFileExtension = "bkp";
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit
inputs
common
theme
libHm
hostName
;
};
users.${common.username} = import ./hosts/${hostName}/home-manager;
};
users.${common.username} = import ./hosts/desktop/home-manager;
};
}
{
nixpkgs.overlays = with inputs; [
hyprpanel.overlay
];
}
];
};
}
{
nixpkgs.overlays = with inputs; [
hyprpanel.overlay
];
}
];
};
#
# ========= Formatting =========