Merge branch 'master' of github.com:Kropatz/dotfiles

This commit is contained in:
Kopatz
2024-04-16 15:26:46 +02:00
14 changed files with 100 additions and 52 deletions

View File

@@ -1,10 +1,9 @@
{pkgs, ...}:
{pkgs, config, ...}:
{
imports = [
#../graphical/lxqt.nix
../cli-tools.nix
../docker.nix
../fh/scanning.nix
#../fh/scanning.nix
../flatpak.nix
../gpg.nix
../graphical/audio.nix
@@ -20,7 +19,6 @@
../hardware/firmware.nix
../hardware/nvidia.nix
../hardware/ssd.nix
../hardware/wooting.nix
../kernel.nix # use latest kernel
../nftables.nix
../nix/index.nix
@@ -33,8 +31,10 @@
../tmpfs.nix
../virt-manager.nix
../wireshark.nix
#../fh/forensik.nix
#../graphical/hyprland.nix
#../hardware/vfio.nix too stupid for this
];
kop.wooting.enable = true;
#kop.tmpfs.enabled = true;
#kop.wireshark.enabled = true;
#kop.virt-manager.enabled = true;
}

12
modules/default.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs, config, ...}:
{
imports = [
./fh
./games
./graphical
./hardware
./nix
./services
./support
];
}

6
modules/fh/default.nix Normal file
View File

@@ -0,0 +1,6 @@
{ pkgs, config, ...}:
{
imports = [
];
}

View File

@@ -0,0 +1,6 @@
{ pkgs, config, ...}:
{
imports = [
];
}

View File

@@ -0,0 +1,6 @@
{ pkgs, config, ...}:
{
imports = [
];
}

View File

@@ -8,10 +8,12 @@
};
environment.systemPackages = with pkgs; [
taisei
tetrio
osu-lazer-bin
wineWowPackages.unstableFull
winetricks
lutris
mangohud
prismlauncher
#libs
];

View File

@@ -41,15 +41,12 @@ in
keepassxc
xfce.thunar
remmina
#nextcloud-client
thunderbird
rofi
localsend
element-desktop
tetrio
#element-desktop
krita
libreoffice-fresh
mangohud
screenshot
anki
mpv

View File

@@ -0,0 +1,6 @@
{ pkgs, config, ...}:
{
imports = [
./wooting.nix
];
}

View File

@@ -1,31 +1,40 @@
{ pkgs, lib, ...}:
{ config, pkgs, lib, ...}:
with lib;
let
wooting-udev = pkgs.stdenv.mkDerivation rec {
pname = "wooting-udev-rules";
version = "unstable-2023-03-31";
# Source: https://help.wooting.io/en/article/wootility-configuring-device-access-for-wootility-under-linux-udev-rules-r6lb2o/
src = [ ./wooting.rules ];
dontUnpack = true;
installPhase = ''
install -Dpm644 $src $out/lib/udev/rules.d/70-wooting.rules
'';
meta = with lib; {
homepage = "https://help.wooting.io/en/article/wootility-configuring-device-access-for-wootility-under-linux-udev-rules-r6lb2o/";
description = "udev rules that give NixOS permission to communicate with Wooting keyboards";
platforms = platforms.linux;
license = "unknown";
maintainers = with maintainers; [ davidtwco ];
};
};
cfg = config.kop.wooting;
in
{
services.udev.packages = [ wooting-udev ];
options.kop.wooting = {
enable = mkEnableOption "Enable wooting hardware support";
};
environment.systemPackages = with pkgs; [
wootility
];
config = let
wooting-udev = pkgs.stdenv.mkDerivation rec {
pname = "wooting-udev-rules";
version = "unstable-2023-03-31";
# Source: https://help.wooting.io/en/article/wootility-configuring-device-access-for-wootility-under-linux-udev-rules-r6lb2o/
src = [ ./wooting.rules ];
dontUnpack = true;
installPhase = ''
install -Dpm644 $src $out/lib/udev/rules.d/70-wooting.rules
'';
meta = with lib; {
homepage = "https://help.wooting.io/en/article/wootility-configuring-device-access-for-wootility-under-linux-udev-rules-r6lb2o/";
description = "udev rules that give NixOS permission to communicate with Wooting keyboards";
platforms = platforms.linux;
license = "unknown";
maintainers = with maintainers; [ davidtwco ];
};
};
in mkIf cfg.enable {
services.udev.packages = [ wooting-udev ];
environment.systemPackages = with pkgs; [
wootility
];
};
}

6
modules/nix/default.nix Normal file
View File

@@ -0,0 +1,6 @@
{ pkgs, config, ...}:
{
imports = [
];
}

View File

@@ -0,0 +1,6 @@
{ pkgs, config, ...}:
{
imports = [
];
}

View File

@@ -0,0 +1,6 @@
{ pkgs, config, ...}:
{
imports = [
];
}