Added Thinkpad and pi4 configs

This commit is contained in:
2025-04-12 19:45:01 +02:00
parent 00cf2c38f9
commit 6ca92c8537
74 changed files with 7730 additions and 973 deletions

111
flake.nix
View File

@ -78,6 +78,17 @@
lib = nixpkgs.lib.extend customLib;
libHm = home-manager.lib.extend customLib;
systems = [
{
hostName = "desktop";
system = "x86_64-linux";
}
{
hostName = "thinkpad";
system = "x86_64-linux";
}
];
in
{
#
@ -89,51 +100,65 @@
#
# ========= Host Configurations =========
#
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;
nixosConfigurations = builtins.listToAttrs (
builtins.map (
{
hostName,
system,
user ? {
name = common.username;
password = "temp";
},
version ? common.version,
}:
{
name = hostName;
value = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit
outputs
inputs
common
theme
lib
hostName
version
;
isDarwin = false;
};
}
{
nixpkgs.overlays = with inputs; [
hyprpanel.overlay
modules = [
./hosts/${hostName}
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
version
;
};
users.${user.name} = import ./hosts/${hostName}/home-manager;
};
}
{
nixpkgs.overlays = with inputs; [
hyprpanel.overlay
];
}
];
}
];
};
};
}
) systems
);
#
# ========= Formatting =========