moved things where they belong

This commit is contained in:
Danilo Reyes 2024-05-25 20:51:43 -06:00
parent d3c7401438
commit 9617d1d0c4
4 changed files with 29 additions and 11 deletions

View File

@ -1,11 +1,4 @@
{ config, lib, pkgs, ... }:
let
unstable = import
(builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master") {
config = config.nixpkgs.config;
};
vdhcoapp = pkgs.callPackage ../../pkgs/vdhcoapp/default.nix { };
in {
{ config, lib, pkgs, ... }: {
imports = [
# <agenix/modules/age.nix>
./hardware-configuration.nix
@ -103,8 +96,6 @@ in {
groups.nixremote.gid = 555;
users = {
jawz.packages = (with pkgs; [
fooyin
vdhcoapp
gocryptfs # encrypted filesystem! shhh!!!
torrenttools # create torrent files from the terminal!
vcsi # video thumbnails for torrents, can I replace it with ^?

View File

@ -1,4 +1,6 @@
{ config, lib, pkgs, ... }: {
{ config, lib, pkgs, ... }:
let vdhcoapp = pkgs.callPackage ../../pkgs/vdhcoapp/default.nix { };
in {
options.my.apps.internet.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.apps.internet.enable {
programs = {
@ -10,6 +12,7 @@
};
services.psd.enable = true;
users.users.jawz.packages = with pkgs; [
vdhcoapp # video download helper assistant
nextcloud-client # self-hosted google-drive alternative
fragments # beautiful torrent client
protonmail-bridge # bridge for protonmail

View File

@ -2,6 +2,7 @@
options.my.apps.multimedia.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.apps.multimedia.enable {
users.users.jawz.packages = with pkgs; [
fooyin # foobar inspired music player
pitivi # video editor
celluloid # video player
curtail # image compressor

23
pkgs/pureref/default.nix Normal file
View File

@ -0,0 +1,23 @@
{ lib, appimageTools, runCommand, curl, gnugrep, cacert }:
appimageTools.wrapType1 rec {
pname = "pureref";
version = "2.0.0";
src = runCommand "PureRef-${version}_x64.Appimage" {
nativeBuildInputs = [ curl gnugrep cacert ];
outputHash = "sha256-da/dH0ruI562JylpvE9f2zMUSJ56+T7Y0xlP/xr3yhY=";
} ''
key="$(curl "https://www.pureref.com/download.php" --silent | grep '%3D%3D' | cut -d '"' -f2)"
curl "https://www.pureref.com/files/build.php?build=LINUX64.Appimage&version=${version}&downloadKey=$key" --output $out
'';
meta = with lib; {
description = "Reference Image Viewer";
homepage = "https://www.pureref.com";
license = licenses.unfree;
maintainers = with maintainers; [ elnudev ];
platforms = [ "x86_64-linux" ];
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
};
}