mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-17 00:48:20 +01:00
Compare commits
No commits in common. "1c80e5554cb1f029d576cfee36c8e5cf6ffbe2aa" and "317d66bab2059a731a16b136613274329cf83409" have entirely different histories.
1c80e5554c
...
317d66bab2
5 changed files with 22 additions and 54 deletions
|
|
@ -91,6 +91,7 @@ in
|
||||||
boot.initrd.luks.devices = {
|
boot.initrd.luks.devices = {
|
||||||
crypted = {
|
crypted = {
|
||||||
device = "/dev/disk/by-path/pci-0000:02:00.0-nvme-1";
|
device = "/dev/disk/by-path/pci-0000:02:00.0-nvme-1";
|
||||||
|
header = "/dev/disk/by-partuuid/3c43dda3-6a23-7148-add5-84354a28a59e";
|
||||||
preLVM = true;
|
preLVM = true;
|
||||||
crypttabExtraOpts = [ "fido2-device=auto" "token-timeout=10s" ];
|
crypttabExtraOpts = [ "fido2-device=auto" "token-timeout=10s" ];
|
||||||
# fido2.credential = "";
|
# fido2.credential = "";
|
||||||
|
|
@ -422,8 +423,7 @@ in
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.trustedInterfaces = [ "p2p-wl+" "tailscale0" ];
|
networking.firewall.trustedInterfaces = [ "p2p-wl+" "tailscale0" ];
|
||||||
# 24800 for input-leap
|
networking.firewall.allowedTCPPorts = [ 5900 5905 7236 7250 ];
|
||||||
networking.firewall.allowedTCPPorts = [ 5900 5905 7236 7250 24800 ];
|
|
||||||
networking.firewall.allowedUDPPorts = [ 5900 5905 7236 5353 26000 ];
|
networking.firewall.allowedUDPPorts = [ 5900 5905 7236 5353 26000 ];
|
||||||
|
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,15 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/12CE-A600";
|
{ device = "/dev/disk/by-label/boot";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"noauto"
|
||||||
|
# "x-systemd.automount"
|
||||||
|
# "x-systemd.idle-timeout=1min"
|
||||||
|
# "x-systemd.device-timeout=1s"
|
||||||
|
# "x-systemd.mount-timeout=5s"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,6 @@
|
||||||
accent = "yellow";
|
accent = "yellow";
|
||||||
})
|
})
|
||||||
|
|
||||||
input-leap
|
|
||||||
|
|
||||||
remmina
|
remmina
|
||||||
# web
|
# web
|
||||||
protonvpn-gui
|
protonvpn-gui
|
||||||
|
|
@ -96,19 +94,19 @@
|
||||||
# dev
|
# dev
|
||||||
# Wrap idea-community to add libraries required for Minecraft Moddev
|
# Wrap idea-community to add libraries required for Minecraft Moddev
|
||||||
jetbrains.idea-community
|
jetbrains.idea-community
|
||||||
(mylib.IDEAappwrapper {
|
(mylib.appwrapper {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inputpkg = jetbrains.idea-community;
|
inputpkg = jetbrains.idea-community;
|
||||||
pkgsuffix = "mcdev-jbr17";
|
pkgsuffix = "mcdev-jbr17";
|
||||||
libraries = with pkgs; [libpulseaudio libGL glfw openal stdenv.cc.cc.lib];
|
libraries = with pkgs; [libpulseaudio libGL glfw openal stdenv.cc.cc.lib];
|
||||||
jdk = pkgs.jetbrains.jdk-no-jcef-17;
|
extrapathpkgs = with pkgs; [jetbrains.jdk-no-jcef-17];
|
||||||
})
|
})
|
||||||
(mylib.IDEAappwrapper {
|
(mylib.appwrapper {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inputpkg = jetbrains.idea-community;
|
inputpkg = jetbrains.idea-community;
|
||||||
pkgsuffix = "mcdev-jbr21";
|
pkgsuffix = "mcdev-jbr21";
|
||||||
libraries = with pkgs; [libpulseaudio libGL glfw openal stdenv.cc.cc.lib];
|
libraries = with pkgs; [libpulseaudio libGL glfw openal stdenv.cc.cc.lib];
|
||||||
jdk = pkgs.jetbrains.jdk-no-jcef;
|
extrapathpkgs = with pkgs; [jetbrains.jdk-no-jcef];
|
||||||
})
|
})
|
||||||
packwiz
|
packwiz
|
||||||
# vscodium # see programs.vscode
|
# vscodium # see programs.vscode
|
||||||
|
|
@ -181,21 +179,13 @@
|
||||||
monero-gui
|
monero-gui
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# gnome network manager applet since plasma-nm is not using Secret Service
|
||||||
systemd.user.services.app-input-leap-client = {
|
# https://invent.kde.org/plasma/plasma-nm/-/issues/7
|
||||||
Unit = {
|
services.network-manager-applet.enable = true;
|
||||||
Description = "input-leap client";
|
# Requires tray.target by default so let's remove it
|
||||||
After = [ "graphical-session-pre.target" "network.target" ];
|
systemd.user.services.network-manager-applet.Unit = {
|
||||||
PartOf = [ "graphical-session.target" ];
|
Requires = pkgs.lib.mkOverride 0 [ ];
|
||||||
};
|
After = pkgs.lib.mkOverride 0 [ "graphical-session-pre.target" ];
|
||||||
Service = {
|
|
||||||
Type = "simple";
|
|
||||||
ExecStart = "${pkgs.input-leap}/bin/input-leapc -f --debug DEBUG --name lgm-nixos --disable-crypto [wandering-nomad.lan]:24800";
|
|
||||||
Restart = "always";
|
|
||||||
};
|
|
||||||
Install = {
|
|
||||||
WantedBy = [ "graphical-session.target" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Email stuff
|
# Email stuff
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"candidateHashFilenames": [
|
"candidateHashFilenames": [
|
||||||
"factorio-headless_linux_2.0.30.tar.xz"
|
"factorio-headless_linux_2.0.30.tar.xz"
|
||||||
],
|
],
|
||||||
"name": "factorio_headless_x64-2.0.30.tar.xz",
|
"name": "factorio_headless_x64-2.0.21.tar.xz",
|
||||||
"needsAuth": false,
|
"needsAuth": false,
|
||||||
"sha256": "4137824a20e1f3298410432c85e62d0eb46b0dab1a8411c233699f890d4c1668",
|
"sha256": "4137824a20e1f3298410432c85e62d0eb46b0dab1a8411c233699f890d4c1668",
|
||||||
"tarDirectory": "x64",
|
"tarDirectory": "x64",
|
||||||
|
|
|
||||||
|
|
@ -26,33 +26,4 @@
|
||||||
'';
|
'';
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
IDEAappwrapper =
|
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputpkg,
|
|
||||||
pkgsuffix,
|
|
||||||
libraries,
|
|
||||||
jdk
|
|
||||||
}: with pkgs; let
|
|
||||||
name = "${inputpkg.pname}-${pkgsuffix}";
|
|
||||||
in stdenv.mkDerivation {
|
|
||||||
inherit name;
|
|
||||||
inherit (inputpkg) version;
|
|
||||||
nativeBuildInputs = [ makeWrapper gnused ];
|
|
||||||
buildCommand = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
mkdir -p $out/share/applications
|
|
||||||
cp ${inputpkg}/share/applications/${inputpkg.pname}.desktop $out/share/applications/${name}.desktop
|
|
||||||
makeWrapper ${inputpkg}/bin/${inputpkg.pname} $out/bin/${name} \
|
|
||||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libraries}" \
|
|
||||||
--prefix PATH : "${lib.makeBinPath [jdk]}" \
|
|
||||||
--set JAVA_HOME "${jdk}/lib/openjdk"
|
|
||||||
substituteInPlace $out/share/applications/${name}.desktop \
|
|
||||||
--replace-fail "=${inputpkg.pname}" "=${name}"
|
|
||||||
sed -i -E "s/^Name=(.*)/Name=\1 (${pkgsuffix})/g" "$out/share/applications/${name}.desktop"
|
|
||||||
echo $out/bin/${name}
|
|
||||||
'';
|
|
||||||
dontBuild = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue