fix: fixed publish dates for builds
This commit is contained in:
parent
51b237dd8e
commit
e8fd233a30
4 changed files with 46 additions and 9 deletions
12
flake.nix
12
flake.nix
|
|
@ -18,16 +18,21 @@
|
|||
f {
|
||||
pkgs = import nixpkgs {inherit overlays system;};
|
||||
});
|
||||
|
||||
realSrc = /. + (builtins.getEnv "PWD");
|
||||
in {
|
||||
packages = forEachSupportedSystem ({pkgs}: {
|
||||
default = pkgs.callPackage ./nix/package.nix {
|
||||
siteUrl = "https://blog.jan-leila.com";
|
||||
sourcePath = realSrc;
|
||||
};
|
||||
blog = pkgs.callPackage ./nix/package.nix {
|
||||
siteUrl = "https://blog.jan-leila.com";
|
||||
sourcePath = realSrc;
|
||||
};
|
||||
volpe = pkgs.callPackage ./nix/package.nix {
|
||||
siteUrl = "https://volpe.jan-leila.com";
|
||||
sourcePath = realSrc;
|
||||
};
|
||||
});
|
||||
|
||||
|
|
@ -46,7 +51,7 @@
|
|||
{nixpkgs.overlays = overlays;}
|
||||
./nix/configuration.nix
|
||||
];
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = {inherit inputs realSrc;};
|
||||
};
|
||||
|
||||
# Deployment helper - use with: nix run .#deploy
|
||||
|
|
@ -58,9 +63,10 @@
|
|||
echo "Building and deploying to cyberian@69.61.19.180..."
|
||||
nixos-rebuild switch --flake .#volpe \
|
||||
--target-host cyberian@69.61.19.180 \
|
||||
--sudo
|
||||
--sudo \
|
||||
--impure
|
||||
'');
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue