Merge branch 'master' of github.com:Kropatz/dotfiles
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
inherit inputs outputs;
|
||||
};
|
||||
modules = [
|
||||
./modules
|
||||
./users/kopatz
|
||||
./modules/collections/desktop.nix
|
||||
./systems/pc/configuration.nix
|
||||
|
||||
@@ -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
12
modules/default.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
./fh
|
||||
./games
|
||||
./graphical
|
||||
./hardware
|
||||
./nix
|
||||
./services
|
||||
./support
|
||||
];
|
||||
}
|
||||
6
modules/fh/default.nix
Normal file
6
modules/fh/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
|
||||
];
|
||||
}
|
||||
6
modules/games/default.nix
Normal file
6
modules/games/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
|
||||
];
|
||||
}
|
||||
6
modules/graphical/default.nix
Normal file
6
modules/graphical/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
|
||||
];
|
||||
}
|
||||
@@ -8,10 +8,12 @@
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
taisei
|
||||
tetrio
|
||||
osu-lazer-bin
|
||||
wineWowPackages.unstableFull
|
||||
winetricks
|
||||
lutris
|
||||
mangohud
|
||||
prismlauncher
|
||||
#libs
|
||||
];
|
||||
|
||||
@@ -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
|
||||
|
||||
6
modules/hardware/default.nix
Normal file
6
modules/hardware/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
./wooting.nix
|
||||
];
|
||||
}
|
||||
@@ -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
6
modules/nix/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
|
||||
];
|
||||
}
|
||||
6
modules/services/default.nix
Normal file
6
modules/services/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
|
||||
];
|
||||
}
|
||||
6
modules/support/default.nix
Normal file
6
modules/support/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
|
||||
];
|
||||
}
|
||||
@@ -26,9 +26,6 @@
|
||||
networking.networkmanager.enable = true;
|
||||
boot.initrd.systemd.network.wait-online.enable = false;
|
||||
systemd.network.wait-online.enable = false;
|
||||
|
||||
nix.settings.trusted-substituters = [ "https://ai.cachix.org" ];
|
||||
nix.settings.trusted-public-keys = [ "ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc=" ];
|
||||
|
||||
services.nscd.enableNsncd = false;
|
||||
#disable firewall when doing ipv6 vm stuff
|
||||
@@ -61,11 +58,6 @@
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Enable automatic login for the user.
|
||||
#services.xserver.displayManager.autoLogin.enable = true;
|
||||
#services.xserver.displayManager.autoLogin.user = "kopatz";
|
||||
@@ -73,13 +65,6 @@
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
# wget
|
||||
];
|
||||
|
||||
security.pki.certificates = [ ''
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIBjTCCATKgAwIBAgIRAMVH2+JHZ3wm2fLUlKjTYDswCgYIKoZIzj0EAwIwJDEM
|
||||
|
||||
Reference in New Issue
Block a user