formatting
This commit is contained in:
parent
29c782efb2
commit
dbb8efeec2
4 changed files with 105 additions and 94 deletions
24
flake.nix
24
flake.nix
|
|
@ -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
|
||||
)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
networking.hostName = "ymir"; # Define your hostname.
|
||||
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
8889
|
||||
8000
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
{
|
||||
size = "small";
|
||||
widgets = [
|
||||
{type = "calendar";}
|
||||
{ type = "calendar"; }
|
||||
{
|
||||
type = "repository";
|
||||
repository = "NixOS/nixpkgs";
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
port = 3000;
|
||||
hydraURL = "http://${config.networking.hostName}.curl-boga.ts.net/hydra/";
|
||||
notificationSender = "hydra@localhost";
|
||||
buildMachinesFiles = [];
|
||||
buildMachinesFiles = [ ];
|
||||
useSubstitutes = true;
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue