mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
refactor: add zen browser for aarch64-linux
This commit is contained in:
parent
54c6920e83
commit
26d55fa278
5 changed files with 90 additions and 15 deletions
68
flake.lock
68
flake.lock
|
@ -324,6 +324,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-parts_4": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730504689,
|
||||||
|
"narHash": "sha256-hgmguH29K2fvs9szpq2r3pz2/8cJd2LPS+b4tfNFCwE=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "506278e768c2a08bec68eb62932193e341f55c90",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
|
@ -755,6 +773,18 @@
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
|
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-lib_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730504152,
|
||||||
|
"narHash": "sha256-lXvH/vOfb4aGYyvFmZK/HlsNsr/0CVWlwYvo2rxJk3s=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/cc2f28000298e1269cea6612cd06ec9979dd5d7f.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/cc2f28000298e1269cea6612cd06ec9979dd5d7f.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710695816,
|
"lastModified": 1710695816,
|
||||||
|
@ -803,6 +833,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731139594,
|
||||||
|
"narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"plugins-lsp-progress": {
|
"plugins-lsp-progress": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -882,7 +928,8 @@
|
||||||
"vesktop-bin": "vesktop-bin",
|
"vesktop-bin": "vesktop-bin",
|
||||||
"viminal": "viminal",
|
"viminal": "viminal",
|
||||||
"wallpapers": "wallpapers",
|
"wallpapers": "wallpapers",
|
||||||
"zen-browser": "zen-browser"
|
"zen-browser": "zen-browser",
|
||||||
|
"zen-browser-source": "zen-browser-source"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
@ -1198,6 +1245,25 @@
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"zen-browser-source": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts_4",
|
||||||
|
"nixpkgs": "nixpkgs_4"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731292739,
|
||||||
|
"narHash": "sha256-c0ED1Yu1AamD3RXsH1kLvvP8gdhGp/HB8AJfzJw7Ph0=",
|
||||||
|
"owner": "youwen5",
|
||||||
|
"repo": "zen-browser-source-flake",
|
||||||
|
"rev": "dc72f9d9456cd732ad9eb78f8e3d676aa807d554",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "youwen5",
|
||||||
|
"repo": "zen-browser-source-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
bleedingpkgs = inputs.bleedingpkgs.legacyPackages.${pkgs.system};
|
bleedingpkgs = inputs.bleedingpkgs.legacyPackages.${pkgs.system};
|
||||||
|
inherit (pkgs) system;
|
||||||
in
|
in
|
||||||
# stablepkgs = inputs.stablepkgs.legacyPackages.${pkgs.system};
|
# stablepkgs = inputs.stablepkgs.legacyPackages.${pkgs.system};
|
||||||
# nixpkgs-small = inputs.nixpkgs-unstable-small.legacyPackages.${pkgs.system};
|
# nixpkgs-small = inputs.nixpkgs-unstable-small.legacyPackages.${pkgs.system};
|
||||||
|
@ -12,6 +13,13 @@ in
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(self: super: {
|
(self: super: {
|
||||||
_7zz = bleedingpkgs._7zz;
|
_7zz = bleedingpkgs._7zz;
|
||||||
|
zen-browser =
|
||||||
|
if system == "x86_64-linux" then
|
||||||
|
inputs.zen-browser.packages.${system}.default
|
||||||
|
else if system == "aarch64-linux" then
|
||||||
|
inputs.zen-browser-source.packages.${system}.default
|
||||||
|
else
|
||||||
|
null;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
{ pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
let
|
let
|
||||||
createCommon = import ../common-packages.nix;
|
createCommon = import ../common-packages.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = (createCommon pkgs) ++ (with pkgs; [ ]);
|
home.packages =
|
||||||
|
(createCommon pkgs)
|
||||||
|
++ [
|
||||||
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,4 +39,6 @@ pkgs: with pkgs; [
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
hledger
|
hledger
|
||||||
|
|
||||||
|
zen-browser
|
||||||
]
|
]
|
||||||
|
|
|
@ -10,18 +10,14 @@ in
|
||||||
{
|
{
|
||||||
home.packages =
|
home.packages =
|
||||||
(createCommon pkgs)
|
(createCommon pkgs)
|
||||||
++ (
|
++ (with pkgs; [
|
||||||
with pkgs;
|
|
||||||
[
|
|
||||||
bitwarden-desktop
|
bitwarden-desktop
|
||||||
modrinth-app
|
modrinth-app
|
||||||
lutris
|
lutris
|
||||||
sbctl
|
sbctl
|
||||||
r2modman
|
r2modman
|
||||||
zoom-us
|
zoom-us
|
||||||
]
|
]);
|
||||||
++ [ zen-browser ]
|
|
||||||
);
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
DEFAULT_BROWSER = "${zen-browser}/bin/zen";
|
DEFAULT_BROWSER = "${zen-browser}/bin/zen";
|
||||||
|
|
Loading…
Reference in a new issue