add example flakes
This commit is contained in:
parent
9e693f2317
commit
66cef5f4bc
15
configs.json
Normal file
15
configs.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"default": {
|
||||
"adminMode": "local",
|
||||
"networkLayer": "yggdrasil",
|
||||
"applications": {
|
||||
"syncthing": {
|
||||
"enable": true,
|
||||
"sharedFolders": [ "/shared/docs" ]
|
||||
},
|
||||
"mumbleClient": {
|
||||
"server": "mumble.hiboss"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
example-flake-boilerplate.nix
Normal file
15
example-flake-boilerplate.nix
Normal 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
27
example-flake-full.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user