downgrade piped but w/ new java, add session, tidy'd and updates

This commit is contained in:
Chaos 2023-05-03 16:45:10 +01:00
parent 7f7754272e
commit 1b080446c0
No known key found for this signature in database
13 changed files with 779 additions and 855 deletions

View file

@ -2,18 +2,22 @@
"nodes": { "nodes": {
"deploy-rs": { "deploy-rs": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": [
"flake-compat"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs-fixed" "nixpkgs-fixed"
], ],
"utils": "utils" "utils": [
"flake-utils"
]
}, },
"locked": { "locked": {
"lastModified": 1674127017, "lastModified": 1682063650,
"narHash": "sha256-QO1xF7stu5ZMDLbHN30LFolMAwY6TVlzYvQoUs1RD68=", "narHash": "sha256-VaDHh2z6xlnTHaONlNVHP7qEMcK5rZ8Js3sT6mKb2XY=",
"owner": "serokell", "owner": "serokell",
"repo": "deploy-rs", "repo": "deploy-rs",
"rev": "8c9ea9605eed20528bf60fae35a2b613b901fd77", "rev": "c2ea4e642dc50fd44b537e9860ec95867af30d39",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -25,11 +29,11 @@
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1668681692, "lastModified": 1673956053,
"narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=", "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra", "owner": "edolstra",
"repo": "flake-compat", "repo": "flake-compat",
"rev": "009399224d5e398d03b22badca40a37ac85412a1", "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,61 +42,35 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_2": { "flake-utils": {
"flake": false, "inputs": {
"systems": "systems"
},
"locked": { "locked": {
"lastModified": 1650374568, "lastModified": 1681202837,
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=", "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "edolstra", "owner": "numtide",
"repo": "flake-compat", "repo": "flake-utils",
"rev": "b4a34015c698c7793d592d66adbab377907a2be8", "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "edolstra", "owner": "numtide",
"repo": "flake-compat", "repo": "flake-utils",
"type": "github"
}
},
"flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1650374568,
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_4": {
"flake": false,
"locked": {
"lastModified": 1668681692,
"narHash": "sha256-Ht91NGdewz8IQLtWZ9LCeNXMSXHUss+9COoqu6JLmXU=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "009399224d5e398d03b22badca40a37ac85412a1",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github" "type": "github"
} }
}, },
"gitlab_archiver": { "gitlab_archiver": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": [
"flake-compat"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs-fixed" "nixpkgs-fixed"
], ],
"utils": "utils_2" "utils": [
"flake-utils"
]
}, },
"locked": { "locked": {
"lastModified": 1661345778, "lastModified": 1661345778,
@ -110,11 +88,15 @@
}, },
"gitlab_artifacts_sync": { "gitlab_artifacts_sync": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_3", "flake-compat": [
"flake-compat"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs-fixed" "nixpkgs-fixed"
], ],
"utils": "utils_3" "utils": [
"flake-utils"
]
}, },
"locked": { "locked": {
"lastModified": 1661347022, "lastModified": 1661347022,
@ -134,15 +116,14 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs-unstable" "nixpkgs-unstable"
], ]
"utils": "utils_4"
}, },
"locked": { "locked": {
"lastModified": 1675935446, "lastModified": 1682977601,
"narHash": "sha256-WajulTn7QdwC7QuXRBavrANuIXE5z+08EdxdRw1qsNs=", "narHash": "sha256-F1Va/Uiw2tVNn27FLqWyBkiqDyIm/eCamw9wA/GK8Fw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2dce7f1a55e785a22d61668516df62899278c9e4", "rev": "0e4c33d76006c9080d2f228ba1c2308e3e4d7be6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -153,11 +134,15 @@
}, },
"musicutil": { "musicutil": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_4", "flake-compat": [
"flake-compat"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs-fixed" "nixpkgs-fixed"
], ],
"utils": "utils_5" "utils": [
"flake-utils"
]
}, },
"locked": { "locked": {
"lastModified": 1674038300, "lastModified": 1674038300,
@ -191,11 +176,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1676110339, "lastModified": 1683014792,
"narHash": "sha256-kOS/L8OOL2odpCOM11IevfHxcUeE0vnZUQ74EOiwXcs=", "narHash": "sha256-6Va9iVtmmsw4raBc3QKvQT2KT/NGRWlvUlJj46zN8B8=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e5530aba13caff5a4f41713f1265b754dc2abfd8", "rev": "1a411f23ba299db155a5b45d5e145b85a7aafc42",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -207,11 +192,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1676281484, "lastModified": 1683123657,
"narHash": "sha256-dWZXiud69G6LwzpFCaKFD4wpKarTRYY3605rLN9fw50=", "narHash": "sha256-/RRubLn+P61uwruoELBD/xZtwdyjgLUH0YosbiV67lc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "d44ab24d70b4e0080630730c42793fdff8ea0ace", "rev": "bf213c6f18981ae52cc11d5fc07f8e94c9f5755e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -223,6 +208,8 @@
"root": { "root": {
"inputs": { "inputs": {
"deploy-rs": "deploy-rs", "deploy-rs": "deploy-rs",
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"gitlab_archiver": "gitlab_archiver", "gitlab_archiver": "gitlab_archiver",
"gitlab_artifacts_sync": "gitlab_artifacts_sync", "gitlab_artifacts_sync": "gitlab_artifacts_sync",
"home-manager-unstable": "home-manager-unstable", "home-manager-unstable": "home-manager-unstable",
@ -248,6 +235,21 @@
"type": "github" "type": "github"
} }
}, },
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tree-input": { "tree-input": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -256,11 +258,11 @@
"std": "std" "std": "std"
}, },
"locked": { "locked": {
"lastModified": 1674066361, "lastModified": 1676505934,
"narHash": "sha256-1f7L1be7u3x0jNDJ+W641kM9pZfd2ZLkjziRvKIZMvw=", "narHash": "sha256-jeqZtNLOKXRSDmD1v+b9+v+hwVyH6kcKzZ9f0gcJpdk=",
"owner": "kittywitch", "owner": "kittywitch",
"repo": "tree", "repo": "tree",
"rev": "638ad6549febe360b0120375cae2bc3bb3b477f3", "rev": "a831f6fd209e3d00c5026303994de28d0031ab3b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -268,81 +270,6 @@
"repo": "tree", "repo": "tree",
"type": "github" "type": "github"
} }
},
"utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_2": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_3": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_4": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_5": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -2,10 +2,20 @@
description = "NixOS configuration"; description = "NixOS configuration";
inputs = { inputs = {
# flake-utils which everyone uses for default systems list
flake-utils.url = "github:numtide/flake-utils";
# flake-compat which is used for non-flake stuff but added anyway to reduce dupes
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
# nixpkgs Unstable Inputs # nixpkgs Unstable Inputs
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager-unstable.url = "github:nix-community/home-manager"; home-manager-unstable.url = "github:nix-community/home-manager";
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable"; home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable";
home-manager-unstable.inputs.utils.follows = "flake-utils";
#nix-darwin-unstable.url = "github:lnl7/nix-darwin/master"; #nix-darwin-unstable.url = "github:lnl7/nix-darwin/master";
#nix-darwin-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable"; #nix-darwin-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable";
@ -19,15 +29,23 @@
deploy-rs.url = "github:serokell/deploy-rs"; deploy-rs.url = "github:serokell/deploy-rs";
deploy-rs.inputs.nixpkgs.follows = "nixpkgs-fixed"; deploy-rs.inputs.nixpkgs.follows = "nixpkgs-fixed";
deploy-rs.inputs.utils.follows = "flake-utils";
deploy-rs.inputs.flake-compat.follows = "flake-compat";
musicutil.url = "gitlab:ChaotiCryptidz/musicutil"; musicutil.url = "gitlab:ChaotiCryptidz/musicutil";
musicutil.inputs.nixpkgs.follows = "nixpkgs-fixed"; musicutil.inputs.nixpkgs.follows = "nixpkgs-fixed";
musicutil.inputs.utils.follows = "flake-utils";
musicutil.inputs.flake-compat.follows = "flake-compat";
gitlab_archiver.url = "gitlab:ChaotiCryptidz/gitlab_archiver"; gitlab_archiver.url = "gitlab:ChaotiCryptidz/gitlab_archiver";
gitlab_archiver.inputs.nixpkgs.follows = "nixpkgs-fixed"; gitlab_archiver.inputs.nixpkgs.follows = "nixpkgs-fixed";
gitlab_archiver.inputs.utils.follows = "flake-utils";
gitlab_archiver.inputs.flake-compat.follows = "flake-compat";
gitlab_artifacts_sync.url = "gitlab:ChaotiCryptidz/gitlab_artifacts_sync"; gitlab_artifacts_sync.url = "gitlab:ChaotiCryptidz/gitlab_artifacts_sync";
gitlab_artifacts_sync.inputs.nixpkgs.follows = "nixpkgs-fixed"; gitlab_artifacts_sync.inputs.nixpkgs.follows = "nixpkgs-fixed";
gitlab_artifacts_sync.inputs.utils.follows = "flake-utils";
gitlab_artifacts_sync.inputs.flake-compat.follows = "flake-compat";
}; };
outputs = {...} @ inputs: import ./outputs.nix inputs; outputs = {...} @ inputs: import ./outputs.nix inputs;

1
home/apps/session.nix Normal file
View file

@ -0,0 +1 @@
{pkgs, ...}: {home.packages = with pkgs; [session-desktop];}

View file

@ -1,17 +0,0 @@
{...}: {
services.postgresql = {
enable = true;
ensureUsers = [
{
name = "misskey";
ensurePermissions."DATABASE misskey" = "ALL PRIVILEGES";
}
];
ensureDatabases = ["misskey"];
};
services.redis.servers."misskey" = {
enable = true;
port = 6379;
};
networking.firewall.allowedTCPPorts = [8024];
}

View file

@ -15,10 +15,8 @@
hosts.tablet.profiles.wireguard hosts.tablet.profiles.wireguard
hosts.tablet.profiles.harry-vpn hosts.tablet.profiles.harry-vpn
hosts.tablet.profiles.misskey-dev
./secrets.nix ./secrets.nix
./profiles/wireguard.nix
]; ];
home-manager.users.root = { home-manager.users.root = {

View file

@ -4,8 +4,8 @@ final: _prev: {
roc-toolkit-patched = final.callPackage ./roc-toolkit-patched {}; roc-toolkit-patched = final.callPackage ./roc-toolkit-patched {};
roc-send-pcm = final.callPackage ./roc-send-pcm {}; roc-send-pcm = final.callPackage ./roc-send-pcm {};
piped-backend = final.callPackage ./piped/backend { piped-backend = final.callPackage ./piped/backend {
jre = final.openjdk17_headless; jre = final.openjdk19_headless;
jdk = final.openjdk17; jdk = final.openjdk19;
}; };
piped-frontend = final.callPackage ./piped/frontend {}; piped-frontend = final.callPackage ./piped/frontend {};
piped-proxy = final.callPackage ./piped/proxy {}; piped-proxy = final.callPackage ./piped/proxy {};

View file

@ -55,9 +55,10 @@ in
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
export JAVA_HOME=${jdk}
export GRADLE_USER_HOME=$(mktemp -d) export GRADLE_USER_HOME=$(mktemp -d)
gradle --offline --init-script ${gradleInit} shadowJar gradle -P org.gradle.java.installations.fromEnv=JAVA_HOME --offline --init-script ${gradleInit} shadowJar
runHook postBuild runHook postBuild
''; '';

View file

@ -21,8 +21,9 @@ in
nativeBuildInputs = [gradle jdk perl]; nativeBuildInputs = [gradle jdk perl];
buildPhase = '' buildPhase = ''
export JAVA_HOME=${jdk}
export GRADLE_USER_HOME=$(mktemp -d); export GRADLE_USER_HOME=$(mktemp -d);
gradle --no-daemon assemble shadowJar gradle -P org.gradle.java.installations.fromEnv=JAVA_HOME --no-daemon assemble shadowJar
''; '';
# perl code mavenizes paths (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar) # perl code mavenizes paths (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar)

View file

@ -1,10 +1,4 @@
{ { fetchurl, fetchgit, linkFarm, runCommand, gnutar }: rec {
fetchurl,
fetchgit,
linkFarm,
runCommand,
gnutar,
}: rec {
offline_cache = linkFarm "offline" packages; offline_cache = linkFarm "offline" packages;
packages = [ packages = [
{ {

View file

@ -22,6 +22,7 @@
home.apps.firefox home.apps.firefox
home.apps.telegram home.apps.telegram
home.apps.quassel home.apps.quassel
home.apps.session
home.apps.obsidian home.apps.obsidian
home.apps.strawberry home.apps.strawberry

View file

@ -1 +1 @@
{...}: {boot.tmpOnTmpfs = true;} {...}: {boot.tmp.useTmpfs = true;}

View file

@ -1,4 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.pathsToLink = ["/share/zsh"]; environment.pathsToLink = ["/share/zsh"];
environment.shells = with pkgs; [zsh]; environment.shells = with pkgs; [zsh];
programs.zsh.enable = true;
} }

View file

@ -7,14 +7,13 @@ _: {
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true; jack.enable = true;
# TODO: fix config
config.pipewire = { #config.pipewire = {
"context.properties" = { # "context.properties" = {
# So fiio btr3k works, # # So fiio btr3k works,
"default.clock.rate" = "48000"; # "default.clock.rate" = "48000";
}; # };
}; #};
wireplumber.enable = false; wireplumber.enable = true;
media-session.enable = true;
}; };
} }