Compare commits

...

7 commits

Author SHA1 Message Date
026e41ccb4 flake.lock: Update
Flake lock file updates:

• Updated input 'nicks_nextcloud_integrations':
    'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=218871e060759be746d87be67912dabb0a0485b6' (2023-12-03)
  → 'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=f67292fd9023fef8499da69a2c85a3e8447306c9' (2023-12-03)
2023-12-03 15:54:32 -08:00
f71cfd3346 flake.lock: Update
Flake lock file updates:

• Updated input 'nicks_nextcloud_integrations':
    'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=2861dab7bf0081999db00617a116617a0a1ea2fa' (2023-12-03)
  → 'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=218871e060759be746d87be67912dabb0a0485b6' (2023-12-03)
2023-12-03 15:46:11 -08:00
5913453fb8 flake.lock: Update
Flake lock file updates:

• Updated input 'nicks_nextcloud_integrations':
    'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=9c5989f414529c40dd3ad6b2ac6f4924c97e615d' (2023-12-03)
  → 'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=2861dab7bf0081999db00617a116617a0a1ea2fa' (2023-12-03)
2023-12-03 15:39:22 -08:00
4fd65fcb81 flake.lock: Update
Flake lock file updates:

• Updated input 'nicks_nextcloud_integrations':
    'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=1a1ffede6d6f5b1277de0c5cf01f02a4809b40a2' (2023-12-03)
  → 'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=9c5989f414529c40dd3ad6b2ac6f4924c97e615d' (2023-12-03)
2023-12-03 15:34:36 -08:00
4efc3a52f5 disabled status cloud 2023-12-03 14:51:52 -08:00
6088cbb6dd flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/8cedd63eede4c22deb192f1721dd67e7460e1ebe' (2023-11-24)
  → 'github:nix-community/home-manager/e504e8d01f950776c3a3160ba38c5957a1b89e66' (2023-12-03)
• Updated input 'kmonad':
    'github:kmonad/kmonad/cec7d4ac3644c96737da23124e473e13ace5156c?dir=nix' (2023-11-17)
  → 'github:kmonad/kmonad/0a761c5e2b7a71a5a203d5f04cd2f7c209e79322?dir=nix' (2023-11-29)
• Updated input 'nicks_nextcloud_integrations':
    'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=0b5175f90a9679ba8402a40091c52d5ef0a79f08' (2023-09-12)
  → 'git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git?ref=refs/heads/main&rev=1a1ffede6d6f5b1277de0c5cf01f02a4809b40a2' (2023-12-03)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/19cbff58383a4ae384dea4d1d0c823d72b49d614' (2023-11-22)
  → 'github:nixos/nixpkgs/e92039b55bcd58469325ded85d4f58dd5a4eaf58' (2023-11-29)
• Updated input 'nixpkgs-stable':
    'github:NixOS/nixpkgs/cbd3f3722ac41a200c1655141e021cf12c3ba4e6' (2023-11-24)
  → 'github:NixOS/nixpkgs/e9f06adb793d1cca5384907b3b8a4071d5d7cb19' (2023-12-03)
• Updated input 'nixvim':
    'github:nix-community/nixvim/bacdae2c508defccdff1af8511e4d639d26d3d47' (2023-11-24)
  → 'github:nix-community/nixvim/741dd36395236f34dbe35a2db79a711c6b318ce4' (2023-12-02)
• Updated input 'nixvim/nixpkgs':
    'github:NixOS/nixpkgs/19cbff58383a4ae384dea4d1d0c823d72b49d614' (2023-11-22)
  → 'github:NixOS/nixpkgs/e92039b55bcd58469325ded85d4f58dd5a4eaf58' (2023-11-29)
• Updated input 'nixvim/pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/e558068cba67b23b4fbc5537173dbb43748a17e8' (2023-11-15)
  → 'github:cachix/pre-commit-hooks.nix/e5ee5c5f3844550c01d2131096c7271cec5e9b78' (2023-11-25)
2023-12-03 14:49:52 -08:00
b8ada4438f switched to headscale flake 2023-12-03 14:07:22 -08:00
5 changed files with 43 additions and 46 deletions

View file

@ -162,17 +162,17 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1701336075, "lastModified": 1683878976,
"narHash": "sha256-1AN5KGL42BwBNkJMjS2ZDcd/CT/AtH1BkT+azHMI5NY=", "narHash": "sha256-nqmTqe3F3Oh8rnJH0clwACD/0RpqmfOMXNubr3C8rEc=",
"owner": "kradalby", "owner": "juanfont",
"repo": "headscale", "repo": "headscale",
"rev": "bbb4c357268998fd02780b7f8f2013f76e3ab80a", "rev": "b01f1f1867136d9b2d7b1392776eb363b482c525",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "kradalby", "owner": "juanfont",
"repo": "headscale", "repo": "headscale",
"rev": "bbb4c357268998fd02780b7f8f2013f76e3ab80a", "rev": "b01f1f1867136d9b2d7b1392776eb363b482c525",
"type": "github" "type": "github"
} }
}, },
@ -183,11 +183,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1700847865, "lastModified": 1701609479,
"narHash": "sha256-uWaOIemGl9LF813MW0AEgCBpKwFo2t1Wv3BZc6e5Frw=", "narHash": "sha256-mcEnMz7XB3K57ZX16VXoEkswljSNGXdMuUu5+g8a8R8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "8cedd63eede4c22deb192f1721dd67e7460e1ebe", "rev": "e504e8d01f950776c3a3160ba38c5957a1b89e66",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -202,11 +202,11 @@
}, },
"locked": { "locked": {
"dir": "nix", "dir": "nix",
"lastModified": 1700205230, "lastModified": 1701282310,
"narHash": "sha256-jF6Qb47maZHTwexI+eY4tL0QAnHJX+MVu74DEWeazA0=", "narHash": "sha256-9QaOSN4qiLqmb1auVSurPN1FrXAaZ7M324TQO0oggco=",
"owner": "kmonad", "owner": "kmonad",
"repo": "kmonad", "repo": "kmonad",
"rev": "cec7d4ac3644c96737da23124e473e13ace5156c", "rev": "0a761c5e2b7a71a5a203d5f04cd2f7c209e79322",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -222,11 +222,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1694485605, "lastModified": 1701647612,
"narHash": "sha256-xgRzeGU5EH+q38NPerJda65Ft/T3RBnqVheFRWfXVvc=", "narHash": "sha256-hGLOVe2vXNUJxcXNFpKipthxXRidgNyL1Vg3A0OtrFY=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "0b5175f90a9679ba8402a40091c52d5ef0a79f08", "rev": "f67292fd9023fef8499da69a2c85a3e8447306c9",
"revCount": 72, "revCount": 77,
"type": "git", "type": "git",
"url": "https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git" "url": "https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git"
}, },
@ -253,11 +253,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1700854570, "lastModified": 1701615100,
"narHash": "sha256-GiwMS5sWSgF/CyZYbm+G5EcgG1VOEyvcsP5lE1L97Aw=", "narHash": "sha256-7VI84NGBvlCTduw2aHLVB62NvCiZUlALLqBe5v684Aw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cbd3f3722ac41a200c1655141e021cf12c3ba4e6", "rev": "e9f06adb793d1cca5384907b3b8a4071d5d7cb19",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -349,11 +349,11 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1700612854, "lastModified": 1701253981,
"narHash": "sha256-yrQ8osMD+vDLGFX7pcwsY/Qr5PUd6OmDMYJZzZi0+zc=", "narHash": "sha256-ztaDIyZ7HrTAfEEUt9AtTDNoCYxUdSd6NrRHaYOIxtk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "19cbff58383a4ae384dea4d1d0c823d72b49d614", "rev": "e92039b55bcd58469325ded85d4f58dd5a4eaf58",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -365,11 +365,11 @@
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1700612854, "lastModified": 1701253981,
"narHash": "sha256-yrQ8osMD+vDLGFX7pcwsY/Qr5PUd6OmDMYJZzZi0+zc=", "narHash": "sha256-ztaDIyZ7HrTAfEEUt9AtTDNoCYxUdSd6NrRHaYOIxtk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "19cbff58383a4ae384dea4d1d0c823d72b49d614", "rev": "e92039b55bcd58469325ded85d4f58dd5a4eaf58",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -387,11 +387,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1700831612, "lastModified": 1701545368,
"narHash": "sha256-4rjt03g847UpPYshwItJqFqxHJ6l4aoXqDVT9CNOCu4=", "narHash": "sha256-AzE7T/aRj/3kJ6nKJZ4zxuPpSJ+NvU8NpTUS7ipbonA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "bacdae2c508defccdff1af8511e4d639d26d3d47", "rev": "741dd36395236f34dbe35a2db79a711c6b318ce4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -439,11 +439,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1700064067, "lastModified": 1700922917,
"narHash": "sha256-1ZWNDzhu8UlVCK7+DUN9dVQfiHX1bv6OQP9VxstY/gs=", "narHash": "sha256-ej2fch/T584b5K9sk1UhmZF7W6wEfDHuoUYpFN8dtvM=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "e558068cba67b23b4fbc5537173dbb43748a17e8", "rev": "e5ee5c5f3844550c01d2131096c7271cec5e9b78",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -5,11 +5,14 @@
utils.url = "github:numtide/flake-utils"; utils.url = "github:numtide/flake-utils";
nixvim.url = "github:nix-community/nixvim"; nixvim.url = "github:nix-community/nixvim";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-23.05"; nixpkgs-stable = {
url = "github:NixOS/nixpkgs/release-23.05";
};
kmonad.url = "github:kmonad/kmonad?dir=nix"; kmonad.url = "github:kmonad/kmonad?dir=nix";
headscale = { headscale = {
url = "github:kradalby/headscale/bbb4c357268998fd02780b7f8f2013f76e3ab80a"; # url = "github:kradalby/headscale/bbb4c357268998fd02780b7f8f2013f76e3ab80a";
url = "github:juanfont/headscale/b01f1f1867136d9b2d7b1392776eb363b482c525";
# url = "github:juanfont/headscale"; # Real repo # url = "github:juanfont/headscale"; # Real repo
inputs."flake-utils".follows = "utils"; inputs."flake-utils".follows = "utils";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -40,14 +43,6 @@
user = "nixolas"; user = "nixolas";
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [
headscale.overlay
];
config.allowUnfree = true;
};
pkgs-stable = import nixpkgs-stable { pkgs-stable = import nixpkgs-stable {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
@ -63,7 +58,7 @@
Alaska = lib.nixosSystem { Alaska = lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit user pkgs pkgs-stable; inherit user headscale pkgs-stable;
}; };
modules = [ modules = [
@ -95,7 +90,7 @@
NicksNixLaptop = lib.nixosSystem { NicksNixLaptop = lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit user pkgs; inherit user;
}; };
modules = [ modules = [

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, headscale, ... }:
{ {
@ -33,6 +33,7 @@
}; };
}; };
# headscale dns is handled by dnsmasq
networking.hosts = { networking.hosts = {
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ]; "100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
}; };

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, headscale, ... }:
let let
tailscale_dns_entries = import ./dns.nix; tailscale_dns_entries = import ./dns.nix;
@ -13,6 +13,7 @@ in {
# https://carjorvaz.com/posts/setting-up-headscale-on-nixos/ # https://carjorvaz.com/posts/setting-up-headscale-on-nixos/
services.headscale = { services.headscale = {
package = headscale.packages."x86_64-linux".headscale;
enable = true; enable = true;
address = "0.0.0.0"; address = "0.0.0.0";
port = 8082; port = 8082;

View file

@ -2,7 +2,7 @@
{ {
services.status_cloud = { services.status_cloud = {
enable = true; enable = false;
config_path = "/home/nixolas/nextcloud_integrations.toml"; config_path = "/home/nixolas/nextcloud_integrations.toml";
frequency = 15; frequency = 15;
}; };