✨ Added Thinkpad and pi4 configs
This commit is contained in:
111
flake.nix
111
flake.nix
@ -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 =========
|
||||
|
Reference in New Issue
Block a user