gaming updates, font sizes and encrypted usb
This commit is contained in:
parent
33b4258193
commit
27628dd254
|
@ -1 +1,3 @@
|
|||
{pkgs, ...}: {home.packages = with pkgs; [lutris];}
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [(lutris.override {extraPkgs = pkgs: with pkgs; [gamescope];}) wineWowPackages.staging];
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
};
|
||||
font = {
|
||||
name = "Comic Code";
|
||||
size = 16;
|
||||
size = 12;
|
||||
package = pkgs.comic-code;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -12,14 +12,10 @@
|
|||
homeManagerLib = inputs.home-manager.lib.hm;
|
||||
|
||||
fontSizesAll = {
|
||||
"lappy-t495" = {
|
||||
default = {
|
||||
small = "10";
|
||||
medium = "12";
|
||||
};
|
||||
default = {
|
||||
small = "14";
|
||||
medium = "16";
|
||||
};
|
||||
};
|
||||
|
||||
fontSizes =
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
home.programming.languages.nix
|
||||
|
||||
home.gaming.platforms.steam
|
||||
home.gaming.platforms.lutris
|
||||
];
|
||||
home.stateVersion = "24.05";
|
||||
};
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
};
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
}
|
||||
|
|
|
@ -2,16 +2,18 @@
|
|||
encryptedUSB = import ../data/drives/encryptedUSB.nix;
|
||||
|
||||
encUSBMount = pkgs.writeShellScriptBin "enc_usb_mount" ''
|
||||
export MAPPER_NAME=''${MAPPER_NAME:-${encryptedUSB.mapperName}}
|
||||
set -x
|
||||
${encUSBUnmount}/bin/enc_usb_unmount
|
||||
cat /secrets/usb_encryption_passphrase | cryptsetup luksOpen ${encryptedUSB.encryptedPath} ${encryptedUSB.mapperName} -
|
||||
mount ${encryptedUSB.mapperPath} -o rw ${encryptedUSB.mountpoint}
|
||||
cat /secrets/usb_encryption_passphrase | cryptsetup luksOpen ${encryptedUSB.encryptedPath} $MAPPER_NAME -
|
||||
mount /dev/mapper/$MAPPER_NAME -o rw ${encryptedUSB.mountpoint}
|
||||
'';
|
||||
|
||||
encUSBUnmount = pkgs.writeShellScriptBin "enc_usb_unmount" ''
|
||||
set -x
|
||||
umount -flR ${encryptedUSB.mountpoint} || true
|
||||
cryptsetup close ${encryptedUSB.mapperName} || true
|
||||
export MAPPER_NAME=''${MAPPER_NAME:-${encryptedUSB.mapperName}}
|
||||
set -x
|
||||
umount -flR ${encryptedUSB.mountpoint} || true
|
||||
cryptsetup close $MAPPER_NAME || true
|
||||
'';
|
||||
in {
|
||||
environment.systemPackages = [encUSBMount encUSBUnmount];
|
||||
|
|
Loading…
Reference in a new issue