feat(zen-browser): Add input/pkg

This commit is contained in:
Tibo De Peuter 2025-09-16 20:52:22 +02:00
parent 3fce7adaaa
commit 378ef78b40
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 54 additions and 47 deletions

View file

@ -5,17 +5,13 @@
nixpkgs.url = "nixpkgs/nixos-24.11"; nixpkgs.url = "nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.11"; url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
openconnect-sso = { openconnect-sso = {
url = github:ThinkChaos/openconnect-sso/fix/nix-flake; url = "github:ThinkChaos/openconnect-sso/fix/nix-flake";
inputs = { inputs = {
flake-utils.follows = "utils"; flake-utils.follows = "utils";
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
@ -23,20 +19,24 @@
}; };
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
utils = { utils = {
url = "github:gytis-ivaskevicius/flake-utils-plus"; url = "github:gytis-ivaskevicius/flake-utils-plus";
inputs.flake-utils.follows = "flake-utils"; inputs.flake-utils.follows = "flake-utils";
}; };
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs@{ outputs = inputs@{
self, nixpkgs, nixpkgs-unstable, self, nixpkgs, nixpkgs-unstable,
devshell, flake-utils, home-manager, openconnect-sso, sops-nix, utils, flake-utils, home-manager, openconnect-sso, sops-nix, utils, zen-browser,
... }: ... }:
let let
system = "x86_64-linux"; system = utils.lib.system.x86_64-linux;
unfreePackages = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ unfreePackages = pkg: builtins.elem (nixpkgs.lib.getName pkg) [
"corefonts" "corefonts"

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs-unstable, ... }: { config, inputs, lib, pkgs, pkgs-unstable, ... }:
let let
cfg = config.sisyphus.users.tdpeuter; cfg = config.sisyphus.users.tdpeuter;
@ -33,6 +33,48 @@ in {
]; ];
initialPassword = "ChangeMe"; initialPassword = "ChangeMe";
shell = pkgs.zsh; shell = pkgs.zsh;
packages = (with pkgs; [
cmdtime # Zsh plugin
icosystem # Personal icon theme
nextcloud-client
spotify-adblock
brave # Internet browser
chafa # Terminal image viewer
duf # Df alternative
feishin # Jellyfin music client
foot
fzf
gh # GitHub CLI tool
glow # Terminal Markdown renderer
jellyfin-media-player
libreoffice-fresh # Office tools
librewolf # Internet browser
mpv # Media player
nsxiv # Lightweight image viewer
qalculate-gtk # Calculator
spotify
unzip
vifm # File manager
zathura # PDF viewer
zellij # Tmux + screen alternative
zsh
zsh-autosuggestions
zsh-syntax-highlighting
# SMB
cifs-utils
psmisc
# Linters and LSPs
statix # Nix
# TODO Move to devshells
# ruff pylint # Python
]) ++ (with pkgs-unstable; [
logseq # Note taking
]) ++ [
inputs.zen-browser.packages.${pkgs.system}.default
];
}; };
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
@ -60,44 +102,9 @@ in {
homeDirectory = "/home/${user}"; homeDirectory = "/home/${user}";
inherit (config.system) stateVersion; inherit (config.system) stateVersion;
packages = (with pkgs; [ # packages = (with pkgs; [
cmdtime # Zsh plugin # ]) ++ (with pkgs-unstable; [
icosystem # Personal icon theme # ]);
nextcloud-client
spotify-adblock
]) ++ (with pkgs-unstable; [
brave
chafa # Terminal image viewer
duf # Df alternative
feishin # Jellyfin music client
foot
fzf
glow # Terminal Markdown renderer
jellyfin-media-player
libreoffice-fresh # Office tools
# FIXME Waiting for electron version to update, now insecure.
# logseq # Note taking
mpv # Media player
nsxiv # Lightweight image viewer
qalculate-gtk # Calculator
spotify
unzip
vifm # File manager
zathura # PDF viewer
zellij # Tmux + screen alternative
zsh
zsh-autosuggestions
zsh-syntax-highlighting
# SMB
cifs-utils
psmisc
# Linters and LSPs
statix # Nix
# TODO Move to devshells
# ruff pylint # Python
]);
pointerCursor = { pointerCursor = {
inherit (cursor) package name size; inherit (cursor) package name size;