formatting

This commit is contained in:
Osman Faruk Bayram 2025-07-29 00:51:26 +03:00
parent 29c782efb2
commit dbb8efeec2
4 changed files with 105 additions and 94 deletions

View file

@ -59,7 +59,9 @@
]; ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system); forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
makePkgs = system: import nixpkgs { inherit system; }; makePkgs = system: import nixpkgs { inherit system; };
makeNixosConfig = configName: nixpkgs.lib.nixosSystem { makeNixosConfig =
configName:
nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; }; specialArgs = { inherit inputs outputs; };
modules = [ ./hosts/${configName}/configuration.nix ]; modules = [ ./hosts/${configName}/configuration.nix ];
}; };
@ -82,21 +84,31 @@
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.harmonica; path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.harmonica;
}; };
}; };
packages = forAllSystems (system: packages = forAllSystems (
system:
let let
makeNixosConfigWithSystemOverride = configName: nixpkgs.lib.nixosSystem { makeNixosConfigWithSystemOverride =
configName:
nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; }; specialArgs = { inherit inputs outputs; };
modules = [ modules = [
./hosts/${configName}/configuration.nix ./hosts/${configName}/configuration.nix
{ nixpkgs.hostPlatform = nixpkgs.lib.mkForce system; } { nixpkgs.hostPlatform = nixpkgs.lib.mkForce system; }
]; ];
}; };
dotfilesMachineNames = [ "ymir" "pochita" "tartarus" "wallfacer" ]; dotfilesMachineNames = [
"ymir"
"pochita"
"tartarus"
"wallfacer"
];
in in
builtins.listToAttrs (map (name: { builtins.listToAttrs (
map (name: {
name = "${name}-dotfiles"; name = "${name}-dotfiles";
value = (makeNixosConfigWithSystemOverride name).config.home-manager.users.osbm.home-files; value = (makeNixosConfigWithSystemOverride name).config.home-manager.users.osbm.home-files;
}) dotfilesMachineNames) }) dotfilesMachineNames
)
); );
}; };
} }

View file

@ -30,7 +30,6 @@
networking.hostName = "ymir"; # Define your hostname. networking.hostName = "ymir"; # Define your hostname.
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
8889 8889
8000 8000

View file

@ -28,7 +28,7 @@
{ {
size = "small"; size = "small";
widgets = [ widgets = [
{type = "calendar";} { type = "calendar"; }
{ {
type = "repository"; type = "repository";
repository = "NixOS/nixpkgs"; repository = "NixOS/nixpkgs";

View file

@ -19,7 +19,7 @@
port = 3000; port = 3000;
hydraURL = "http://${config.networking.hostName}.curl-boga.ts.net/hydra/"; hydraURL = "http://${config.networking.hostName}.curl-boga.ts.net/hydra/";
notificationSender = "hydra@localhost"; notificationSender = "hydra@localhost";
buildMachinesFiles = []; buildMachinesFiles = [ ];
useSubstitutes = true; useSubstitutes = true;
}; };
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [