This commit is contained in:
2023-03-03 15:24:10 +00:00
parent 3493993237
commit 8fad2f678d
4 changed files with 57 additions and 1 deletions

39
flake.lock generated
View File

@@ -44,6 +44,21 @@
} }
}, },
"flake-utils": { "flake-utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"locked": { "locked": {
"lastModified": 1649676176, "lastModified": 1649676176,
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=", "narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
@@ -58,6 +73,27 @@
"type": "github" "type": "github"
} }
}, },
"golink": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1675902276,
"narHash": "sha256-Yx99VgZsUKD945MjRHvyzwmzNSb/UGSwG/yQA8/oYN8=",
"owner": "tailscale",
"repo": "golink",
"rev": "7fd2d35ba633d5390fbaf50bac6b0821ab041d85",
"type": "github"
},
"original": {
"owner": "tailscale",
"repo": "golink",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -124,7 +160,7 @@
}, },
"i3utils": { "i3utils": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
@@ -178,6 +214,7 @@
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"golink": "golink",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"i3utils": "i3utils", "i3utils": "i3utils",

View File

@@ -14,6 +14,9 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
golink.url = "github:tailscale/golink";
golink.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { outputs = {
@@ -22,6 +25,7 @@
home-manager, home-manager,
i3utils, i3utils,
hyprland, hyprland,
golink,
... ...
}: let }: let
system = "x86_64-linux"; system = "x86_64-linux";
@@ -30,6 +34,9 @@
(import nixpkgs { (import nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = [
golink.overlay
];
}) })
// { // {
i3utils = i3utils.packages.${system}.default; i3utils = i3utils.packages.${system}.default;
@@ -68,6 +75,8 @@
}; };
} }
golink.nixosModules.default
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager = { home-manager = {

View File

@@ -5,6 +5,7 @@
./dungflix ./dungflix
./monitoring ./monitoring
./synapse ./synapse
./golink
]; ];
}; };

View File

@@ -0,0 +1,9 @@
{
...
}: {
services.golink = {
enable = true;
tailscaleAuthKeyFile = "/tmp/.ts_auth";
};
}