From 1ace7442a1886b81f3a3d9a372afa0bdb1f8acfe Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sat, 13 Sep 2025 23:08:10 +0200 Subject: [PATCH] add nixpkgs-stable Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- flake.lock | 17 +++++++++++++++++ flake.nix | 5 ++++- home/programs/tailscale/default.nix | 4 ++-- hosts/laptop/configuration.nix | 2 +- hosts/laptop/home.nix | 2 +- nixos/tailscale.nix | 7 ++++++- 6 files changed, 31 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 0699578..30ecaef 100644 --- a/flake.lock +++ b/flake.lock @@ -763,6 +763,22 @@ "type": "github" } }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1757545623, + "narHash": "sha256-mCxPABZ6jRjUQx3bPP4vjA68ETbPLNz9V2pk9tO7pRQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "8cd5ce828d5d1d16feff37340171a98fc3bf6526", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_10": { "locked": { "lastModified": 1755027561, @@ -999,6 +1015,7 @@ "nixcord": "nixcord", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_6", + "nixpkgs-stable": "nixpkgs-stable", "nvf": "nvf", "sops-nix": "sops-nix", "spicetify-nix": "spicetify-nix", diff --git a/flake.nix b/flake.nix index 347bbaa..2019620 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; hyprpanel.url = "github:Jas-SinghFSU/HyprPanel"; @@ -35,7 +36,9 @@ modules = [ { nixpkgs.overlays = []; - _module.args = {inherit inputs;}; + _module.args = { + inherit inputs; + }; } inputs.nixos-hardware.nixosModules.omen-16-n0005ne # CHANGEME: check https://github.com/NixOS/nixos-hardware inputs.home-manager.nixosModules.home-manager diff --git a/home/programs/tailscale/default.nix b/home/programs/tailscale/default.nix index fc63a54..e2c1471 100644 --- a/home/programs/tailscale/default.nix +++ b/home/programs/tailscale/default.nix @@ -1,7 +1,7 @@ # Tailscale is a VPN service that works on top of WireGuard. # It allows me to access my servers and devices from anywhere. -{pkgs, ...}: { - home.packages = with pkgs; [tailscale tailscale-systray]; +{inputs, ...}: { + home.packages = with inputs.nixpkgs-stable.legacyPackages.x86_64-linux; [tailscale tailscale-systray]; # wayland.windowManager.hyprland.settings.exec-once = ["${pkgs.tailscale-systray}/bin/tailscale-systray"]; } diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 23e42a2..a8d68fb 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -11,7 +11,7 @@ ../../nixos/sddm.nix ../../nixos/users.nix ../../nixos/utils.nix - # ../../nixos/tailscale.nix # FIXME: + ../../nixos/tailscale.nix ../../nixos/hyprland.nix ../../nixos/omen.nix # For my laptop only diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index f14952b..b56f60f 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -18,7 +18,7 @@ ../../home/programs/thunar ../../home/programs/lazygit ../../home/programs/discord - # ../../home/programs/tailscale # FIXME: + ../../home/programs/tailscale # Scripts ../../home/scripts # All scripts diff --git a/nixos/tailscale.nix b/nixos/tailscale.nix index f323bc9..7b3d8b9 100644 --- a/nixos/tailscale.nix +++ b/nixos/tailscale.nix @@ -1,5 +1,9 @@ # Tailscale is a VPN service that makes it easy to connect your devices between each other. -{config, ...}: let +{ + config, + inputs, + ... +}: let username = config.var.username; in { security.sudo.extraRules = [ @@ -21,6 +25,7 @@ in { services.tailscale = { enable = true; + package = inputs.nixpkgs-stable.legacyPackages.x86_64-linux.tailscale; openFirewall = true; };