summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.lock123
-rw-r--r--flake.nix3
-rw-r--r--hosts/shinji/default.nix1
-rw-r--r--hosts/shinji/firefox-nightly.nix17
4 files changed, 135 insertions, 9 deletions
diff --git a/flake.lock b/flake.lock
index 68d19e9..146ad99 100644
--- a/flake.lock
+++ b/flake.lock
@@ -81,7 +81,44 @@
"type": "github"
}
},
+ "firefox-nightly": {
+ "inputs": {
+ "flake-compat": "flake-compat",
+ "lib-aggregate": "lib-aggregate",
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1756552380,
+ "narHash": "sha256-fH7nmEMe068EpjTaBVqzzv9aXkMGp6d6h4Ht11wRPl8=",
+ "owner": "nix-community",
+ "repo": "flake-firefox-nightly",
+ "rev": "dd57d2f6149742b914ef331d329f187eb23d1497",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "flake-firefox-nightly",
+ "type": "github"
+ }
+ },
"flake-compat": {
+ "locked": {
+ "lastModified": 1746162366,
+ "narHash": "sha256-5SSSZ/oQkwfcAz/o/6TlejlVGqeK08wyREBQ5qFFPhM=",
+ "owner": "nix-community",
+ "repo": "flake-compat",
+ "rev": "0f158086a2ecdbb138cd0429410e44994f1b7e4b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "flake-compat",
+ "type": "github"
+ }
+ },
+ "flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1696426674,
@@ -97,7 +134,7 @@
"type": "github"
}
},
- "flake-compat_2": {
+ "flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1747046372,
@@ -115,7 +152,25 @@
},
"flake-utils": {
"inputs": {
- "systems": "systems_3"
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "flake-utils_2": {
+ "inputs": {
+ "systems": "systems_4"
},
"locked": {
"lastModified": 1731533236,
@@ -267,7 +322,7 @@
"nixpkgs"
],
"pre-commit-hooks": "pre-commit-hooks",
- "systems": "systems",
+ "systems": "systems_2",
"xdph": "xdph"
},
"locked": {
@@ -488,9 +543,28 @@
"type": "github"
}
},
+ "lib-aggregate": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs-lib": "nixpkgs-lib"
+ },
+ "locked": {
+ "lastModified": 1754828166,
+ "narHash": "sha256-i7c+fpXVsnvj2+63Gl3YfU1hVyxbLeqeFj55ZBZACWI=",
+ "owner": "nix-community",
+ "repo": "lib-aggregate",
+ "rev": "f01c8d121a3100230612be96e4ac668e15eafb77",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "lib-aggregate",
+ "type": "github"
+ }
+ },
"nixos-wsl": {
"inputs": {
- "flake-compat": "flake-compat_2",
+ "flake-compat": "flake-compat_3",
"nixpkgs": [
"nixpkgs"
]
@@ -525,6 +599,21 @@
"type": "github"
}
},
+ "nixpkgs-lib": {
+ "locked": {
+ "lastModified": 1754788789,
+ "narHash": "sha256-x2rJ+Ovzq0sCMpgfgGaaqgBSwY+LST+WbZ6TytnT9Rk=",
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "rev": "a73b9c743612e4244d865a2fdee11865283c04e6",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "type": "github"
+ }
+ },
"ny": {
"flake": false,
"locked": {
@@ -539,7 +628,7 @@
},
"pre-commit-hooks": {
"inputs": {
- "flake-compat": "flake-compat",
+ "flake-compat": "flake-compat_2",
"gitignore": "gitignore",
"nixpkgs": [
"hyprland",
@@ -564,6 +653,7 @@
"inputs": {
"apple-fonts": "apple-fonts",
"astal": "astal",
+ "firefox-nightly": "firefox-nightly",
"home-manager": "home-manager",
"hy3": "hy3",
"hyprland": "hyprland",
@@ -707,6 +797,21 @@
},
"systems": {
"locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ },
+ "systems_2": {
+ "locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
@@ -720,7 +825,7 @@
"type": "github"
}
},
- "systems_2": {
+ "systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@@ -735,7 +840,7 @@
"type": "github"
}
},
- "systems_3": {
+ "systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@@ -752,7 +857,7 @@
},
"talc": {
"inputs": {
- "flake-utils": "flake-utils",
+ "flake-utils": "flake-utils_2",
"nixpkgs": [
"nixpkgs"
]
@@ -773,7 +878,7 @@
},
"utils": {
"inputs": {
- "systems": "systems_2"
+ "systems": "systems_3"
},
"locked": {
"lastModified": 1710146030,
diff --git a/flake.nix b/flake.nix
index 0964fc8..e0901ac 100644
--- a/flake.nix
+++ b/flake.nix
@@ -39,6 +39,9 @@
zen-browser.url = "github:0xc000022070/zen-browser-flake";
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
zen-browser.inputs.home-manager.follows = "home-manager";
+ # firefox-nightly
+ firefox-nightly.url = "github:nix-community/flake-firefox-nightly";
+ firefox-nightly.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
diff --git a/hosts/shinji/default.nix b/hosts/shinji/default.nix
index f9401bf..4be3de3 100644
--- a/hosts/shinji/default.nix
+++ b/hosts/shinji/default.nix
@@ -6,6 +6,7 @@
...
}: {
imports = [
+ ./firefox-nightly.nix
./hardware.nix
./sops.nix
./wireguard.nix
diff --git a/hosts/shinji/firefox-nightly.nix b/hosts/shinji/firefox-nightly.nix
new file mode 100644
index 0000000..38b330e
--- /dev/null
+++ b/hosts/shinji/firefox-nightly.nix
@@ -0,0 +1,17 @@
+{
+ pkgs,
+ inputs,
+ ...
+}: let
+ firefox = inputs.firefox-nightly.packages.${pkgs.system}.firefox-nightly-bin;
+ my-firefox = pkgs.writeShellApplication rec {
+ name = "firefox-nightly";
+ text = ''
+ export MOZ_PROFILE="$HOME"/.${name}
+ mkdir -p "$MOZ_PROFILE"
+ ${firefox}/bin/${name} --profile "$MOZ_PROFILE" "$@"
+ '';
+ };
+in {
+ environment.systemPackages = [my-firefox];
+}