Compare commits

..

No commits in common. "6699d5488a1d3caba90a5cbab17a40751c2ab4c5" and "d0bd1ca8fa351b12854c9c80b238d938123af349" have entirely different histories.

9 changed files with 8 additions and 113 deletions

View File

@ -41,7 +41,7 @@
ptw = {
programs = {
alacritty.enable = true;
sway.enable = false;
sway.enable = true;
emacs.enable = true;
firefox.enable = true;
tmux.enable = true;
@ -56,9 +56,8 @@
direnv.enable = true;
};
services = {
yubikey.enable = true;
cups.enable = true;
gnome.enable = false;
gnome.enable = true;
kanshi = let
horizontal = "Samsung Electric Company C27F398 H4ZR101145";
@ -124,29 +123,12 @@
};
};
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
};
};
environment.systemPackages = with pkgs; [
ansible
gnumake
(pkgs.callPackage ./wrapper.nix {
inherit (pkgs) retroarch;
cores = with pkgs.libretro; [
mgba mupen64plus melonds desmume dolphin
];
})
];
programs = {
gnupg.agent = {
pinentryFlavor = "qt";
};
gnupg.agent.pinentryFlavor = "qt";
};
}

View File

@ -1,37 +0,0 @@
{ stdenv, lib, makeWrapper, retroarch, cores ? [ ] }:
stdenv.mkDerivation {
pname = "retroarch";
version = lib.getVersion retroarch;
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
mkdir -p $out/lib
for coreDir in $cores
do
ln -s $coreDir/* $out/lib/.
done
ln -s -t $out ${retroarch}/share
if [ -d ${retroarch}/Applications ]; then
ln -s -t $out ${retroarch}/Applications
fi
makeWrapper ${retroarch}/bin/retroarch $out/bin/retroarch \
--suffix-each LD_LIBRARY_PATH ':' "$cores" \
--add-flags "-L $out/lib/" \
'';
cores = map (x: x + x.libretroCore) cores;
preferLocalBuild = true;
meta = with retroarch.meta; {
inherit changelog description homepage license maintainers platforms;
longDescription =
"RetroArch is the reference frontend for the libretro API. The following cores are included: "
+ lib.concatStringsSep ", " (map (x: "${x.name}") cores)
+ ".";
};
}

View File

@ -33,14 +33,7 @@ in {
};
networking = {
useDHCP = false; # Done by the network manager
networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-vpnc
networkmanager-openvpn
networkmanager-openconnect
];
};
networkmanager.enable = true;
#interfaces.*.useDHCP = false;

View File

@ -36,7 +36,6 @@
./services/greetd
./services/cups
./services/logiops
./services/yubikey
# User
#./users/default.nix

View File

@ -14,7 +14,7 @@ in {
description = "Ignore NixOS 'recommendations' and use the Wayland session by default";
};
};
/*sddm = {
sddm = {
backgroundImage = lib.mkOption {
default = "${pkgs.sddm-sugar-dark}/usr/share/sddm/themes/sugar-dark/Background.jpg";
description = "The background image to use with sddm-sugar-dark";
@ -27,7 +27,7 @@ in {
default = 1080;
description = "Width of the screen";
};
};*/
};
};
config = lib.mkIf cfg.enable {

View File

@ -83,7 +83,7 @@ in {
xdg.portal = {
enable = true;
#extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
#gtkUsePortal = true;
gtkUsePortal = true;
};
qt5 = {

View File

@ -15,10 +15,6 @@ in {
drivers = with pkgs; [ hplip ];
};
services.avahi = {
enable = lib.mkForce true;
nssmdns = true;
};
hardware.sane = {
enable = true;
extraBackends = with pkgs; [ sane-airscan hplip ];

View File

@ -1,31 +0,0 @@
{ lib, config, pkgs, ...}:
let
cfg = config.ptw.services.yubikey;
in {
options.ptw.services.yubikey = {
enable = lib.mkEnableOption "Enable everything for using a YubiKey";
};
config = lib.mkIf cfg.enable {
services = {
# Unprivileged access to the YubiKey
udev.packages = [ pkgs.yubikey-personalization ];
# Allow using the YubiKey as a smart card
pcscd.enable = true;
};
environment.systemPackages = with pkgs; [
# Management
yubikey-manager-qt yubikey-manager yubico-piv-tool
];
programs = {
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
};
}

View File

@ -24,7 +24,7 @@
programs.ssh = {
enable = true;
matchBlocks = let
sshPort = 1847;
sshPort = 3434;
in {
ayame = {
port = sshPort;
@ -33,13 +33,6 @@
identityFile = "~/.ssh/polynom.me_ayame";
identitiesOnly = true;
};
taihou = {
port = sshPort;
hostname = "162.55.43.248";
user = "alexander";
identityFile = "~/.ssh/polynom.me_ayame";
identitiesOnly = true;
};
"git.polynom.me" = {
port = 2222;
user = "gitea";