Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 203 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
colmena-flake.url = "github:juspay/colmena-flake";
ragenix.url = "github:yaxitech/ragenix";

# Software inputs
nixos-vscode-server.flake = false;
Expand Down Expand Up @@ -98,7 +99,7 @@
./systems/ax41.nix;
};

perSystem = { self', pkgs, system, config, ... }: {
perSystem = { self', inputs', pkgs, system, config, ... }: {
# Flake inputs we want to update periodically
# Run: `nix run .#update`.
nixos-flake = {
Expand Down Expand Up @@ -126,6 +127,7 @@
just
colmena
nixd
inputs'.ragenix.packages.default
];
};
# Make our overlay available to the devShell
Expand Down
3 changes: 2 additions & 1 deletion nix-darwin/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ self, config, ... }:
{ self, inputs, config, ... }:
{
# Configuration common to all macOS systems
flake = {
Expand All @@ -15,6 +15,7 @@
self.darwinModules_.home-manager
self.darwinModules.my-home
self.nixosModules.common
inputs.ragenix.darwinModules.default
];
};
};
Expand Down
3 changes: 2 additions & 1 deletion nixos/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ self, config, ... }:
{ self, inputs, config, ... }:

{
# Configuration common to all Linux systems
Expand All @@ -24,6 +24,7 @@
self.nixosModules.home-manager
self.nixosModules.my-home
self.nixosModules.common
inputs.ragenix.nixosModules.default
./self/self-ide.nix
./current-location.nix
];
Expand Down
9 changes: 7 additions & 2 deletions nixos/hedgedoc.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{ config, ... }:

let
domain = "pad.srid.ca";
port = 9112;
in
{
age.secrets."hedgedoc.env" = {
file = ../secrets/hedgedoc.env.age;
owner = "hedgedoc";
};
services.hedgedoc = {
enable = true;

# GitHub secrets set in colmena (see flake.nix)
environmentFile = "/run/keys/hedgedoc.env";
environmentFile = config.age.secrets."hedgedoc.env".path;

settings = {
# URL config
Expand Down
15 changes: 15 additions & 0 deletions secrets/hedgedoc.env.age

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions secrets/secrets.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let
config = import ../users/config.nix;
users = [ config.users.srid.sshKey ];

appreciate = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICra+ZidiwrHGjcGnyqPvHcZDvnGivbLMayDyecPYDh0";
immediacy = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKZALEiJIrH1Kj10u+WshkQXr5NHmszza8wNLqW+2fB0";
systems = [ appreciate immediacy ];
in
{
"hedgedoc.env.age".publicKeys = users ++ systems;
}