Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Prince
PrivateStorageio
Commits
c9b0fd25
Commit
c9b0fd25
authored
3 years ago
by
Tom Prince
Browse files
Options
Downloads
Patches
Plain Diff
stuff
parent
8974fb84
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#975
failed
3 years ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
flake.lock
+79
-0
79 additions, 0 deletions
flake.lock
flake.nix
+40
-0
40 additions, 0 deletions
flake.nix
morph/lib/base.nix
+39
-0
39 additions, 0 deletions
morph/lib/base.nix
nix.conf
+9
-0
9 additions, 0 deletions
nix.conf
with
167 additions
and
0 deletions
flake.lock
0 → 100644
+
79
−
0
View file @
c9b0fd25
{
"nodes": {
"arion-src": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1630050960,
"narHash": "sha256-rWJCFu/RJLlUaW9XaPuI89wHnWipWQ10hbjnIeVwVWw=",
"owner": "tp-la",
"repo": "arion",
"rev": "3d45133a627a5aa1bb0c195f169ca1247e91c748",
"type": "github"
},
"original": {
"owner": "tp-la",
"ref": "hack",
"repo": "arion",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1629481132,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "997f7efcb746a9c140ce1f13c72263189225f482",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"narHash": "sha256-FfgFiOVzSNqsdBAu0nu7ErfEShESh84i0Ct7aALbXwA=",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/21.05/nixos-21.05.804.5de44c15758/nixexprs.tar.xz"
},
"original": {
"narHash": "sha256-FfgFiOVzSNqsdBAu0nu7ErfEShESh84i0Ct7aALbXwA=",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/21.05/nixos-21.05.804.5de44c15758/nixexprs.tar.xz"
}
},
"ourpkgs": {
"flake": false,
"locked": {
"lastModified": 1629944853,
"narHash": "sha256-/VRt93pML2HV/+34yc2M2x9P9go/5AgJ1dAMVlpgddM=",
"owner": "tp-la",
"repo": "nixpkgs",
"rev": "f0dbe36042a70e3601f287a887274fe82e3a95fd",
"type": "github"
},
"original": {
"owner": "tp-la",
"ref": "update-haskell.nix",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"arion-src": "arion-src",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"ourpkgs": "ourpkgs"
}
}
},
"root": "root",
"version": 7
}
This diff is collapsed.
Click to expand it.
flake.nix
0 → 100644
+
40
−
0
View file @
c9b0fd25
{
description
=
"A very basic flake"
;
inputs
=
{
nixpkgs
=
{
type
=
"tarball"
;
url
=
"https://releases.nixos.org/nixos/21.05/nixos-21.05.804.5de44c15758/nixexprs.tar.xz"
;
narHash
=
"sha256-FfgFiOVzSNqsdBAu0nu7ErfEShESh84i0Ct7aALbXwA="
;
};
ourpkgs
=
{
type
=
"github"
;
owner
=
"tp-la"
;
repo
=
"nixpkgs"
;
ref
=
"update-haskell.nix"
;
flake
=
false
;
};
arion-src
=
{
type
=
"github"
;
owner
=
"tp-la"
;
repo
=
"arion"
;
ref
=
"hack"
;
inputs
.
nixpkgs
.
follows
=
"nixpkgs"
;
};
flake-utils
.
url
=
"github:numtide/flake-utils"
;
};
outputs
=
{
self
,
flake-utils
,
nixpkgs
,
ourpkgs
,
arion-src
}:
let
build-output
=
import
"
${
self
}
/arion.nix"
;
system
=
"x86_64-linux"
;
lib
=
nixpkgs
.
lib
;
outputs
=
build-output
rec
{
inherit
self
arion-src
;
pkgs
=
nixpkgs
.
legacyPackages
.
${
system
};
lib
=
nixpkgs
.
legacyPackages
.
${
system
}
.
lib
;
ourpkgs
=
import
ourpkgs
.
outPath
{
inherit
system
;
};
arion-eval
=
args
:
arion-src
.
lib
.
eval
({
inherit
pkgs
;}
//
args
);
};
in
{
x
=
outputs
;
y
=
self
.
outputs
;};
}
This diff is collapsed.
Click to expand it.
morph/lib/base.nix
0 → 100644
+
39
−
0
View file @
c9b0fd25
{
lib
,
config
,
...
}:
{
options
.
grid
=
{
publicKeyPath
=
lib
.
mkOption
{
type
=
lib
.
types
.
path
;
description
=
''
A path on the deployment system of a directory containing all of the
public keys for the system. For example, this holds Wireguard public keys
for the VPN configuration and SSH public keys to configure SSH
authentication.
''
;
};
privateKeyPath
=
lib
.
mkOption
{
type
=
lib
.
types
.
path
;
description
=
''
A path on the deployment system of a directory containing all of the
corresponding private keys for the system.
''
;
};
};
imports
=
[
# Give it a good SSH configuration.
../../nixos/modules/ssh.nix
# Allow us to remotely trigger updates to this system.
../../nixos/modules/deployment.nix
];
config
=
{
passthru
.
vpn-ip
=
config
.
monitoringvpnIPv4
;
# The morph default deployment target the name of the node in the network
# attrset. We don't always want to give the node its proper public address
# there (because it depends on which domain is associated with the grid
# being configured and using variable names complicates a lot of things).
# Instead, just tell morph how to reach the node here - by using its fully
# qualified domain name.
deployment
.
targetHost
=
"
${
config
.
networking
.
hostName
}
.
${
config
.
networking
.
domain
}
"
;
};
}
This diff is collapsed.
Click to expand it.
nix.conf
0 → 100644
+
9
−
0
View file @
c9b0fd25
sandbox
=
false
experimental
-
features
=
nix
-
command
flakes
substitute
=
true
substituters
=
https
://
cache
.
nixos
.
org
/
http
://
saxtons
.
private
.
storage
/
https
://
hydra
.
iohk
.
io
trusted
-
public
-
keys
=
cache
.
nixos
.
org
-
1
:
6
NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY
=
saxtons
.
private
.
storage
:
MplOcEH8G
/
6
mRlhlKkbA8GdeFR3dhCFsSszrspE
/
ZwY
=
hydra
.
iohk
.
io
:
f
/
Ea
+
s
+
dFdN
+
3
Y
/
G
+
FDgSq
+
a5NEWhJGzdjvKNGv0
/
EQ
=
keep
-
outputs
=
true
keep
-
env
-
derivations
=
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment