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);
makePkgs = system: import nixpkgs { inherit system; };
makeNixosConfig = configName: nixpkgs.lib.nixosSystem {
makeNixosConfig =
configName:
nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./hosts/${configName}/configuration.nix ];
};
@ -82,21 +84,31 @@
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.harmonica;
};
};
packages = forAllSystems (system:
packages = forAllSystems (
system:
let
makeNixosConfigWithSystemOverride = configName: nixpkgs.lib.nixosSystem {
makeNixosConfigWithSystemOverride =
configName:
nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/${configName}/configuration.nix
{ nixpkgs.hostPlatform = nixpkgs.lib.mkForce system; }
];
};
dotfilesMachineNames = [ "ymir" "pochita" "tartarus" "wallfacer" ];
dotfilesMachineNames = [
"ymir"
"pochita"
"tartarus"
"wallfacer"
];
in
builtins.listToAttrs (map (name: {
builtins.listToAttrs (
map (name: {
name = "${name}-dotfiles";
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.firewall.allowedTCPPorts = [
8889
8000