Compare commits
No commits in common. "prime" and "0.0.1" have entirely different histories.
9 changed files with 9 additions and 160 deletions
|
@ -1,3 +0,0 @@
|
||||||
This repository is hosted at https://git.rrv.sh/rrvsh/rrv.sh.
|
|
||||||
|
|
||||||
It's mirrored at https://github.com/rrvsh/rrv.sh.
|
|
|
@ -5,7 +5,7 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name version;
|
inherit name version;
|
||||||
src = ../src;
|
src = ./src;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
cp -r . $out
|
cp -r . $out
|
||||||
'';
|
'';
|
34
flake.nix
34
flake.nix
|
@ -1,32 +1,6 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
outputs =
|
outputs = inputs: {
|
||||||
inputs:
|
packages.x86_64-linux.default = ./default.nix;
|
||||||
let
|
};
|
||||||
systems = [
|
|
||||||
"x86_64-linux"
|
|
||||||
"aarch64-linux"
|
|
||||||
];
|
|
||||||
inherit (builtins) map listToAttrs;
|
|
||||||
forAllSystems =
|
|
||||||
f:
|
|
||||||
listToAttrs (
|
|
||||||
map (system: {
|
|
||||||
name = system;
|
|
||||||
value = f system;
|
|
||||||
}) systems
|
|
||||||
);
|
|
||||||
in
|
|
||||||
{
|
|
||||||
packages = forAllSystems (
|
|
||||||
system:
|
|
||||||
let
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
default = pkgs.callPackage ./nix/package.nix { };
|
|
||||||
}
|
|
||||||
);
|
|
||||||
nixosModules.default = import ./nix/modules/nixos.nix;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,51 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (builtins) toString;
|
|
||||||
inherit (lib) mkOption mkEnableOption mkIf;
|
|
||||||
inherit (lib.types) port str;
|
|
||||||
cfg = config.services.rrv-sh;
|
|
||||||
package = pkgs.callPackage ../package.nix { };
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.services.rrv-sh = {
|
|
||||||
enable = mkEnableOption "";
|
|
||||||
port = mkOption {
|
|
||||||
type = port;
|
|
||||||
default = 2309;
|
|
||||||
};
|
|
||||||
user = mkOption {
|
|
||||||
type = str;
|
|
||||||
default = "rrv-sh";
|
|
||||||
};
|
|
||||||
group = mkOption {
|
|
||||||
type = str;
|
|
||||||
default = "rrv-sh";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
users.users.rrv-sh = mkIf (cfg.user == "rrv-sh") {
|
|
||||||
inherit (cfg) group;
|
|
||||||
isSystemUser = true;
|
|
||||||
description = "rrv.sh server user";
|
|
||||||
};
|
|
||||||
users.groups.rrv-sh = mkIf (cfg.user == "rrv-sh") { };
|
|
||||||
systemd.services.rrv-sh = {
|
|
||||||
description = "the rrv.sh website";
|
|
||||||
after = [ "network.target" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "simple";
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = "5s";
|
|
||||||
User = cfg.user;
|
|
||||||
Group = cfg.group;
|
|
||||||
ExecStart = "${pkgs.live-server}/bin/live-server -p ${toString cfg.port} ${package}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>rrv.sh</title>
|
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>BLOG</h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
@ -1,36 +1,10 @@
|
||||||
<!doctype html>
|
<html>
|
||||||
<html lang="en">
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8">
|
||||||
<title>rrv.sh</title>
|
<title>rrv.sh</title>
|
||||||
<link rel="stylesheet" href="static/style.css" />
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
|
|
||||||
/>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<h1>hi</h1>
|
||||||
<h1>mohammad rafiq</h1>
|
|
||||||
<div class="list">
|
|
||||||
<li><a href="https://dev.to/bwfiq">blog</a> <- start here!</li>
|
|
||||||
<li><a href="https://aenyrathia.wiki">wiki</a></li>
|
|
||||||
<li>
|
|
||||||
<a href="https://registry.jsonresume.org/rrvsh?theme=professional"
|
|
||||||
>cv</a
|
|
||||||
>
|
|
||||||
</li>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<footer>
|
|
||||||
<a class="fa fa-github" href="https://github.com/rrvsh"></a>
|
|
||||||
<a class="fa fa-instagram" href="https://instagram.com/88rafiq"></a>
|
|
||||||
<a class="fa fa-linkedin" href="https://linkedin.com/in/rrvsh"></a>
|
|
||||||
<a class="fa" href="https://lichess.org/@/bwfiq">
|
|
||||||
<img src="static/lichess.svg" alt="Lichess Icon" class="icon">
|
|
||||||
</a>
|
|
||||||
<a class="fa fa-reddit" href="https://reddit.com/u/bwfiq"></a>
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
|
|
||||||
<path fill="#ffffff" stroke="#ffffff" stroke-linejoin="round" d="M38.956.5c-3.53.418-6.452.902-9.286 2.984C5.534 1.786-.692 18.533.68 29.364 3.493 50.214 31.918 55.785 41.329 41.7c-7.444 7.696-19.276 8.752-28.323 3.084C3.959 39.116-.506 27.392 4.683 17.567 9.873 7.742 18.996 4.535 29.03 6.405c2.43-1.418 5.225-3.22 7.655-3.187l-1.694 4.86 12.752 21.37c-.439 5.654-5.459 6.112-5.459 6.112-.574-1.47-1.634-2.942-4.842-6.036-3.207-3.094-17.465-10.177-15.788-16.207-2.001 6.967 10.311 14.152 14.04 17.663 3.73 3.51 5.426 6.04 5.795 6.756 0 0 9.392-2.504 7.838-8.927L37.4 7.171z"></path>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 697 B |
|
@ -1,31 +0,0 @@
|
||||||
body {
|
|
||||||
background-color: black;
|
|
||||||
color: white;
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
div.container {
|
|
||||||
margin: 0;
|
|
||||||
text-align: center;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
-ms-transform: translate(-50%, -50%);
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
}
|
|
||||||
div.list {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
a,
|
|
||||||
a:visited,
|
|
||||||
a:hover,
|
|
||||||
a:active {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
a.fa {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.icon {
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue