add example flakes

This commit is contained in:
lassulus 2023-06-25 13:15:18 +02:00
parent 9e693f2317
commit 66cef5f4bc
3 changed files with 57 additions and 0 deletions

15
configs.json Normal file
View File

@ -0,0 +1,15 @@
{
"default": {
"adminMode": "local",
"networkLayer": "yggdrasil",
"applications": {
"syncthing": {
"enable": true,
"sharedFolders": [ "/shared/docs" ]
},
"mumbleClient": {
"server": "mumble.hiboss"
}
}
}
}

View File

@ -0,0 +1,15 @@
{
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
inputs.hiboss.url = "git+https://git.hiboss.com/hiboss";
inputs.hiboss.nixpkgs.follows = "nixpkgs";
outputs = { self, nixpkgs, hiboss, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
hiboss = import hiboss { inherit system pkgs; };
in
{
nixosConfigurations = builtins.fromJSON (import ./configs.json);
};
}

27
example-flake-full.nix Normal file
View File

@ -0,0 +1,27 @@
{
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
inputs.hiboss.url = "git+https://git.hiboss.com/hiboss";
inputs.hiboss.nixpkgs.follows = "nixpkgs";
outputs = { self, nixpkgs, hiboss, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
hiboss = import hiboss { inherit system pkgs; };
in
{
nixosConfigurations = {
default = hiboss.nixosSystem {
adminMode = "local";
networkLayer= "yggdrasil";
applications = {
syncthing = {
enable = true;
sharedFolders = "/shared/docs";
};
mumbleClient.server = "mumble.hiboss";
};
};
};
};
}