Compare commits

...

2 Commits

Author SHA1 Message Date
36294d8cc1
update alotta stuff 2023-10-13 23:14:32 +03:00
affc22a125
a 2023-10-09 03:35:11 +03:00
12 changed files with 86 additions and 237 deletions

View File

@ -216,16 +216,16 @@
"crane_5": {
"flake": false,
"locked": {
"lastModified": 1681175776,
"narHash": "sha256-7SsUy9114fryHAZ8p1L6G6YSu7jjz55FddEwa2U8XZc=",
"lastModified": 1686108916,
"narHash": "sha256-looLH5MdY4erLiJw0XwQohGdr0fJL9y6TJY3898RA2U=",
"owner": "ipetkov",
"repo": "crane",
"rev": "445a3d222947632b5593112bb817850e8a9cf737",
"rev": "8ab1a49432695bd80ff4b7f6c6515da0e926d922",
"type": "github"
},
"original": {
"owner": "ipetkov",
"ref": "v0.12.1",
"ref": "v0.12.2",
"repo": "crane",
"type": "github"
}
@ -326,39 +326,20 @@
},
"dream2nix_2": {
"inputs": {
"all-cabal-json": [
"musikquad",
"nci"
],
"crane": "crane_5",
"devshell": [
"musikquad",
"nci"
],
"drv-parts": "drv-parts_2",
"flake-compat": "flake-compat_5",
"flake-compat": [
"musikquad",
"nci"
],
"flake-parts": [
"musikquad",
"nci",
"parts"
],
"flake-utils-pre-commit": [
"musikquad",
"nci"
],
"ghc-utils": [
"musikquad",
"nci"
],
"gomod2nix": [
"musikquad",
"nci"
],
"mach-nix": [
"musikquad",
"nci"
],
"nix-pypi-fetcher": [
"nix-unit": [
"musikquad",
"nci"
],
@ -367,31 +348,21 @@
"nci",
"nixpkgs"
],
"nixpkgsV1": "nixpkgsV1_2",
"poetry2nix": [
"musikquad",
"nci"
],
"pre-commit-hooks": [
"musikquad",
"nci"
],
"pruned-racket-catalog": [
"musikquad",
"nci"
]
},
"locked": {
"lastModified": 1688815683,
"narHash": "sha256-mGeQgTcAltpQlr3KUBA1WoGBQadq6OAhuF864ci4+vI=",
"lastModified": 1697064937,
"narHash": "sha256-yZ5OlQkPnNUDnEzUY/Su2gu52i1+w7h5HHK/kBk5oUg=",
"owner": "nix-community",
"repo": "dream2nix",
"rev": "99373e29568de05287d391a745947154ddbf4e3e",
"rev": "1caf997f694c3144ed8fa6752c4af36d1e68851c",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "legacy",
"repo": "dream2nix",
"type": "github"
}
@ -431,41 +402,6 @@
"type": "github"
}
},
"drv-parts_2": {
"inputs": {
"flake-compat": [
"musikquad",
"nci",
"dream2nix",
"flake-compat"
],
"flake-parts": [
"musikquad",
"nci",
"dream2nix",
"flake-parts"
],
"nixpkgs": [
"musikquad",
"nci",
"dream2nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1680698112,
"narHash": "sha256-FgnobN/DvCjEsc0UAZEAdPLkL4IZi2ZMnu2K2bUaElc=",
"owner": "davhau",
"repo": "drv-parts",
"rev": "e8c2ec1157dc1edb002989669a0dbd935f430201",
"type": "github"
},
"original": {
"owner": "davhau",
"repo": "drv-parts",
"type": "github"
}
},
"fenix": {
"inputs": {
"nixpkgs": [
@ -584,22 +520,6 @@
"type": "github"
}
},
"flake-compat_7": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_3"
@ -636,24 +556,6 @@
"type": "github"
}
},
"flake-parts_3": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_5"
},
"locked": {
"lastModified": 1693611461,
"narHash": "sha256-aPODl8vAgGQ0ZYFIRisxYG5MOGSkIczvu2Cd8Gb9+1Y=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "7f53fdb7bdc5bb237da7fefef12d099e4fd611ca",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
@ -889,11 +791,11 @@
"parts": "parts_5"
},
"locked": {
"lastModified": 1690542028,
"narHash": "sha256-UiF/Qqrb/KptNvNqaA396CmdlWFqcn1uO15zINJhUC8=",
"lastModified": 1697227073,
"narHash": "sha256-QiqX2SnhyJTrCu6itsv1av4NS8DRiXU0AZVHawy6RLw=",
"owner": "yusdacra",
"repo": "musikquadrupled",
"rev": "423fc5685ddbdb6cd132d577bdcf57580610397b",
"rev": "c3e6db50710eb6cce93563aea4dbef3df3e9bb3a",
"type": "github"
},
"original": {
@ -912,11 +814,11 @@
"systems": "systems_5"
},
"locked": {
"lastModified": 1683653023,
"narHash": "sha256-NTT/YCx+BeZQN5dZkMI+jE9aFk+a0QjWFqO/48YYoF8=",
"lastModified": 1697213072,
"narHash": "sha256-5rOidod1imEK5vRs77AfsZscFU+1QKniL0Tt4A9OeBI=",
"owner": "yusdacra",
"repo": "musikspider",
"rev": "409163319ed07d96477f09cc7dcf53264f4296c6",
"rev": "89f99b7324c0dcc37e4d7a8eb4ab1f3a75a349cc",
"type": "github"
},
"original": {
@ -968,6 +870,7 @@
},
"nci_2": {
"inputs": {
"crane": "crane_5",
"dream2nix": "dream2nix_2",
"mk-naked-shell": "mk-naked-shell_2",
"nixpkgs": [
@ -979,11 +882,11 @@
"treefmt": "treefmt_2"
},
"locked": {
"lastModified": 1690537257,
"narHash": "sha256-wosBxxp6U2YZ4iFOOknK0Ybv8NGJs/6V4/9o/6TmAfw=",
"lastModified": 1697220707,
"narHash": "sha256-hycPu8SirzPYwCzRJ89ardLvnTJ3oR1WuGtsE4GH67c=",
"owner": "yusdacra",
"repo": "nix-cargo-integration",
"rev": "b46c8aa9e612b9b9dfa1f3e9b27a7756756e877d",
"rev": "b5a5e688c26c11961f85cc66b25111b91d4eedb2",
"type": "github"
},
"original": {
@ -1029,21 +932,6 @@
"type": "github"
}
},
"nix-std": {
"locked": {
"lastModified": 1685917625,
"narHash": "sha256-2manVKofCZrCToVDnDYNvtYUFBYOM5JhdDoNGVY4fq4=",
"owner": "chessai",
"repo": "nix-std",
"rev": "e20af8822b5739434b875643bfc61fe0195ea2fb",
"type": "github"
},
"original": {
"owner": "chessai",
"repo": "nix-std",
"type": "github"
}
},
"nixd": {
"inputs": {
"flake-parts": "flake-parts_2",
@ -1152,11 +1040,11 @@
"nixpkgs-lib_2": {
"locked": {
"dir": "lib",
"lastModified": 1680213900,
"narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=",
"lastModified": 1696019113,
"narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e3652e0735fbec227f342712f180f4f21f0594f2",
"rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a",
"type": "github"
},
"original": {
@ -1203,24 +1091,6 @@
"type": "github"
}
},
"nixpkgs-lib_5": {
"locked": {
"dir": "lib",
"lastModified": 1693471703,
"narHash": "sha256-0l03ZBL8P1P6z8MaSDS/MvuU8E75rVxe5eE1N6gxeTo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3e52e76b70d5508f3cec70b882a29199f4d1ee85",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-master": {
"locked": {
"lastModified": 1694874640,
@ -1268,21 +1138,6 @@
"type": "indirect"
}
},
"nixpkgsV1_2": {
"locked": {
"lastModified": 1686501370,
"narHash": "sha256-G0WuM9fqTPRc2URKP9Lgi5nhZMqsfHGrdEbrLvAPJcg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "75a5ebf473cd60148ba9aec0d219f72e5cf52519",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1690272529,
@ -1400,11 +1255,11 @@
]
},
"locked": {
"lastModified": 1688466019,
"narHash": "sha256-VeM2akYrBYMsb4W/MmBo1zmaMfgbL4cH3Pu8PGyIwJ0=",
"lastModified": 1696343447,
"narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "8e8d955c22df93dbe24f19ea04f47a74adbdc5ec",
"rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4",
"type": "github"
},
"original": {
@ -1421,11 +1276,11 @@
]
},
"locked": {
"lastModified": 1688466019,
"narHash": "sha256-VeM2akYrBYMsb4W/MmBo1zmaMfgbL4cH3Pu8PGyIwJ0=",
"lastModified": 1696343447,
"narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "8e8d955c22df93dbe24f19ea04f47a74adbdc5ec",
"rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4",
"type": "github"
},
"original": {
@ -1439,11 +1294,11 @@
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1680392223,
"narHash": "sha256-n3g7QFr85lDODKt250rkZj2IFS3i4/8HBU2yKHO3tqw=",
"lastModified": 1696343447,
"narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "dcc36e45d054d7bb554c9cdab69093debd91a0b5",
"rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4",
"type": "github"
},
"original": {
@ -1473,7 +1328,6 @@
"nixpkgs-wayland": "nixpkgs-wayland",
"nur": "nur",
"stylix": "stylix",
"vfio": "vfio",
"vscode-extensions": "vscode-extensions"
}
},
@ -1592,11 +1446,11 @@
"rust-overlay_5": {
"flake": false,
"locked": {
"lastModified": 1690510705,
"narHash": "sha256-6mjs3Gl9/xrseFh9iNcNq1u5yJ/MIoAmjoaG7SXZDIE=",
"lastModified": 1697163235,
"narHash": "sha256-HzGr9LbTKf8x4NeDH94i1J2Cq/0CY1Qrt4z5pETk9HA=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "851ae4c128905a62834d53ce7704ebc1ba481bea",
"rev": "b48a7e5dab1b472dd9c9ee9053401489dbb4d6fc",
"type": "github"
},
"original": {
@ -1608,7 +1462,7 @@
"stylix": {
"inputs": {
"base16": "base16",
"flake-compat": "flake-compat_6",
"flake-compat": "flake-compat_5",
"home-manager": [
"home"
],
@ -1752,11 +1606,11 @@
]
},
"locked": {
"lastModified": 1689620039,
"narHash": "sha256-BtNwghr05z7k5YMdq+6nbue+nEalvDepuA7qdQMAKoQ=",
"lastModified": 1697018566,
"narHash": "sha256-tOhoeq621JQOULO9X2U+Io03PK/TQrYFYB4sJFaDCuQ=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "719c2977f958c41fa60a928e2fbc50af14844114",
"rev": "0b2ffeb3ae1a7449a48a952f3e731cfa41eaf780",
"type": "github"
},
"original": {
@ -1765,31 +1619,9 @@
"type": "github"
}
},
"vfio": {
"inputs": {
"flake-parts": "flake-parts_3",
"nix-std": "nix-std",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1696457108,
"narHash": "sha256-aC7zKhCO11ffT/WMuku/YErHmKJRcl3/lz2s2APgD5s=",
"owner": "yusdacra",
"repo": "nixos-vfio",
"rev": "fb9a8c28811fc5b98973d870659e8c1c0e592206",
"type": "github"
},
"original": {
"owner": "yusdacra",
"repo": "nixos-vfio",
"type": "github"
}
},
"vscode-extensions": {
"inputs": {
"flake-compat": "flake-compat_7",
"flake-compat": "flake-compat_6",
"flake-utils": "flake-utils_5",
"nixpkgs": [
"nixpkgs"

View File

@ -56,8 +56,8 @@
nh.url = "github:viperML/nh";
nh.inputs.nixpkgs.follows = "nixpkgs";
vfio.url = "github:yusdacra/nixos-vfio";
vfio.inputs.nixpkgs.follows = "nixpkgs";
# vfio.url = "github:yusdacra/nixos-vfio";
# vfio.inputs.nixpkgs.follows = "nixpkgs";
# needed for hyprland setup
# hyprland.url = "github:hyprwm/Hyprland";

View File

@ -9,7 +9,7 @@
]
++ (tlib.importFolder (toString ./modules));
boot.cleanTmpDir = true;
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
# firewall stuffs

View File

@ -1,10 +1,12 @@
{...}: {
{config, ...}: {
services.gitea = {
enable = true;
domain = "git.gaze.systems";
rootUrl = "https://git.gaze.systems/";
httpPort = 3001;
settings = {
server = {
DOMAIN = "git.gaze.systems";
ROOT_URL = "https://git.gaze.systems/";
HTTP_PORT = 3001;
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
};
@ -13,6 +15,6 @@
services.nginx.virtualHosts."git.gaze.systems" = {
useACMEHost = "gaze.systems";
forceSSL = true;
locations."/".proxyPass = "http://localhost:3001";
locations."/".proxyPass = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}";
};
}

View File

@ -10,6 +10,7 @@
PUBLIC_MUSIKQUAD_SERVER = "mq.gaze.systems";
PUBLIC_BASEURL = "ms.gaze.systems";
});
port = "4004";
in {
users.users.musikspider = {
isSystemUser = true;
@ -23,14 +24,13 @@ in {
after = ["network.target"];
serviceConfig = {
User = "musikspider";
ExecStart = "${pkgs.deno}/bin/deno run --allow-env --allow-read --allow-net ${pkg}/index.js";
ExecStart = "${pkg}/bin/musikspider";
Restart = "on-failure";
RestartSec = 5;
WorkingDirectory = "/var/lib/musikspider";
Environment="HOME=/var/lib/musikspider";
EnvironmentFile = pkgs.writeText "musikspider-env" ''
DENO_NO_UPDATE_CHECK=1
DENO_DIR=/var/lib/musikspider/.deno
PORT=4004
PORT=${port}
'';
};
};
@ -39,7 +39,7 @@ in {
useACMEHost = "gaze.systems";
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:4004";
proxyPass = "http://localhost:${port}";
proxyWebsockets = true;
};
};

View File

@ -2,7 +2,7 @@
services.fail2ban.enable = true;
services.openssh = {
enable = true;
passwordAuthentication = false;
settings.PasswordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
(builtins.readFile "${inputs.self}/secrets/yusdacra.key.pub")

View File

@ -10,7 +10,7 @@
l.mapAttrsToList
(
name: _: let
o = import "${./overlays}/${name}";
o = import "${./.}/overlays/${name}";
in
if (l.functionArgs o) ? inputs
then o {inherit inputs;}

View File

@ -0,0 +1,12 @@
final: prev: {
bitwig-studio = prev.bitwig-studio.overrideAttrs (old: rec {
version = "5.0.4";
src = final.fetchurl {
url = "https://downloads.bitwig.com/stable/${version}/${old.pname}-${version}.deb";
sha256 = "sha256-IkhUkKO+Ay1WceZNekII6aHLOmgcgGfx0hGo5ldFE5Y=";
};
postInstall = ''
cp ${../patches/bitwig.jar} $out/libexec/bin/bitwig.jar
'';
});
}

BIN
pkgs-set/patches/bitwig.jar Normal file

Binary file not shown.

View File

@ -3,8 +3,7 @@ pkgs: (
[
"phantom"
"comic-mono"
"fluidsynth-dssi"
"calf"
"bitwig-studio"
]
pkgs
)

View File

@ -22,6 +22,7 @@ in {
config = lib.mkIf cfg.enable {
home.packages = [cfg.package];
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [".config/musikcube"];
xdg.configFile."musikcube/settings.json".text = builtins.toJSON cfg.settings;
};
}

View File

@ -114,7 +114,7 @@ in {
["zoxide" "zsh" "fzf" "starship" "direnv"]
# dev stuff
["helix" "git" "ssh"]
# ["musikcube" "musikcubed"]
["musikcube" "musikcubed"]
];
in
l.flatten [
@ -139,6 +139,9 @@ in {
# caches / history stuff
".directory_history"
".cache"
"Bitwig Studio"
".BitwigStudio"
".vst"
]
++ mkPaths ".local/share" [
"direnv"
@ -221,13 +224,13 @@ in {
gtkcord4
gh
transmission_4-gtk
# yabridge
# yabridgectl
# bitwig-studio
yabridge
yabridgectl
bitwig-studio
# reaper
# ardour
(retroarch.override {
cores = with libretro; [desmume melonds];
cores = with libretro; [desmume citra];
})
# wineWowPackages.stagingFull
# lutris
@ -235,7 +238,7 @@ in {
];
};
programs = {
# musikcube.enable = true;
musikcube.enable = true;
command-not-found.enable =
nixosConfig.programs.command-not-found.enable;
git = {
@ -249,10 +252,10 @@ in {
};
};
services = {
# musikcubed = {
# enable = true;
# settings.password = "somethingidk";
# };
musikcubed = {
enable = true;
settings.password = "somethingidk";
};
gpg-agent = let
defaultCacheTtl = 3600 * 6;
maxCacheTtl = 3600 * 24;