Added Source for Voloxo Host
This commit is contained in:
parent
b1bcabba6d
commit
836accbaee
4 changed files with 425 additions and 0 deletions
291
systems/x86_64-linux/voloxo/default.nix
Normal file
291
systems/x86_64-linux/voloxo/default.nix
Normal file
|
@ -0,0 +1,291 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{
|
||||
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||
# as well as the libraries available from your flake's inputs.
|
||||
lib,
|
||||
# An instance of `pkgs` with your overlays and packages applied is also available.
|
||||
pkgs,
|
||||
# You also have access to your flake's inputs.
|
||||
inputs,
|
||||
|
||||
# Additional metadata is provided by Snowfall Lib.
|
||||
namespace, # The namespace used for your flake, defaulting to "internal" if not set.
|
||||
system, # The system architecture for this host (eg. `x86_64-linux`).
|
||||
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
||||
format, # A normalized name for the system target (eg. `iso`).
|
||||
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
|
||||
systems, # An attribute map of your defined hosts.
|
||||
|
||||
# All other arguments come from the system system.
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware.nix
|
||||
# ./modules.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Crosscompiling
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
|
||||
networking.hostName = "voloxo"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "de_DE.UTF-8";
|
||||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||||
LC_MEASUREMENT = "de_DE.UTF-8";
|
||||
LC_MONETARY = "de_DE.UTF-8";
|
||||
LC_NAME = "de_DE.UTF-8";
|
||||
LC_NUMERIC = "de_DE.UTF-8";
|
||||
LC_PAPER = "de_DE.UTF-8";
|
||||
LC_TELEPHONE = "de_DE.UTF-8";
|
||||
LC_TIME = "de_DE.UTF-8";
|
||||
};
|
||||
|
||||
# Experimental Features
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Nvidia Configuration
|
||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.xserver.desktopManager.plasma5.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
layout = "us,dv2,de";
|
||||
variant = "esc:swapcaps";
|
||||
extraLayouts.dv2 = {
|
||||
description = "German Dvorak Type 2";
|
||||
languages = [ "de" ];
|
||||
symbolsFile = ./symbols/dv2;
|
||||
};
|
||||
};
|
||||
|
||||
# Configure console keymap
|
||||
console.keyMap = "de";
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
#jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
services.onlyoffice = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.kb = {
|
||||
isNormalUser = true;
|
||||
description = "kb";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
kate
|
||||
thunderbird
|
||||
cheese
|
||||
obs-studio
|
||||
blender
|
||||
syncthing
|
||||
keepassxc
|
||||
freetube
|
||||
libreoffice
|
||||
adafruit-nrfutil
|
||||
prismlauncher
|
||||
gimp
|
||||
inkscape
|
||||
veracrypt
|
||||
matrix-commander
|
||||
vlc
|
||||
protonvpn-gui
|
||||
telegram-desktop
|
||||
logseq
|
||||
signal-desktop
|
||||
kid3
|
||||
calibre
|
||||
spotify-player
|
||||
tidal-hifi
|
||||
iamb # Matrix with Vim-Binds
|
||||
yazi
|
||||
nerdfonts
|
||||
scrcpy
|
||||
ryujinx
|
||||
razergenie
|
||||
webcord
|
||||
];
|
||||
};
|
||||
|
||||
# Define Service Users
|
||||
users.groups.languagetool = {};
|
||||
users.users.languagetool = {
|
||||
isSystemUser = true;
|
||||
group = "languagetool";
|
||||
};
|
||||
|
||||
# Enable automatic login for the user.
|
||||
services.displayManager.autoLogin.enable = true;
|
||||
services.displayManager.autoLogin.user = "kb";
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-27.3.11"
|
||||
];
|
||||
|
||||
programs.vim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
programs.ssh.startAgent = true;
|
||||
programs.kdeconnect.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
};
|
||||
|
||||
programs.firefox.enable = true;
|
||||
programs.firefox.nativeMessagingHosts.packages = [ pkgs.firefoxpwa ];
|
||||
|
||||
# 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
|
||||
fastfetch
|
||||
usbutils
|
||||
fprintd
|
||||
nss
|
||||
mesa
|
||||
python3
|
||||
zulu
|
||||
zulu8
|
||||
languagetool
|
||||
btop
|
||||
firefoxpwa
|
||||
bookworm
|
||||
foliate
|
||||
gparted
|
||||
git
|
||||
ntfs3g
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
# List services that you want to enable:
|
||||
systemd.services.languagetool = {
|
||||
description = "LanguageTool HTTP Server for local Spellchecking";
|
||||
wants = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "/run/current-system/sw/bin/languagetool-http-server --port 8081 --allow-origin '*'";
|
||||
WorkingDirectory = "~"; # Defaults to "/" If the user has no home
|
||||
User = "languagetool";
|
||||
Restart = "always";
|
||||
RestartSec = 30;
|
||||
};
|
||||
};
|
||||
|
||||
# services.udev.extraRules = ''
|
||||
#ENV{ID_VENDOR_ID}=="EloTouchSystems_Inc",ENV{ID_MODEL_ID}=="Elo_TouchSystems_2216_AccuTouch®_USB_Touchmonitor_Interface",ENV{WL_OUTPUT}="DP-0",ENV{LIBINPUT_CALIBRATION_MATRIX}="0.4 0 0 0 -0.347826087 0.652173913"
|
||||
#'';
|
||||
|
||||
# services.xserver.inputClassSections = [
|
||||
# ''
|
||||
# Identifier "calibration"
|
||||
# MatchProduct "EloTouchSystems,Inc Elo TouchSystems 2216 AccuTouch® USB Touchmonitor Interface"
|
||||
# Option "MinX" "6225"
|
||||
# Option "MaxX" "59846"
|
||||
# Option "MinY" "57849"
|
||||
# Option "MaxY" "5925"
|
||||
# Option "InvertY" "1"
|
||||
# ''
|
||||
# ];
|
||||
|
||||
# Virtualisation
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
dockerSocket.enable = true;
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "kb";
|
||||
dataDir = "/home/kb/sync";
|
||||
configDir = "/home/kb/.config/syncthing";
|
||||
};
|
||||
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.05"; # Did you read the comment?
|
||||
|
||||
}
|
44
systems/x86_64-linux/voloxo/hardware.nix
Normal file
44
systems/x86_64-linux/voloxo/hardware.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "nvidia" ];
|
||||
boot.kernelModules = [ "kvm-amd" "sg" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/f1abb1b8-0cc5-46f3-9e97-72f793c4b496";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-07910f1e-c989-4acc-8d81-fef02a2596b3".device = "/dev/disk/by-uuid/07910f1e-c989-4acc-8d81-fef02a2596b3";
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/1ECE-940A";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
hardware.openrazer = {
|
||||
enable = true;
|
||||
users = [ "kb" ];
|
||||
};
|
||||
}
|
10
systems/x86_64-linux/voloxo/modules.nix
Normal file
10
systems/x86_64-linux/voloxo/modules.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ inputs, config, pkgs, lib, system, ... }:
|
||||
{
|
||||
|
||||
|
||||
|
||||
modules.packagemanagers.appimage = true;
|
||||
|
||||
|
||||
}
|
||||
|
80
systems/x86_64-linux/voloxo/symbols/dv2
Normal file
80
systems/x86_64-linux/voloxo/symbols/dv2
Normal file
|
@ -0,0 +1,80 @@
|
|||
// German Dvorak keymap by Thorsten Staerk (www.staerk.de/thorsten)
|
||||
// Have acute and grave as dead keys, tilde and circumflex alive as they are needed
|
||||
// in many programming languages.
|
||||
// to use this keymap, use a 105-key-keyboard and the command setxkbmap -model pc105 -layout dvorak -variant de
|
||||
// source: http://www-lehre.informatik.uni-osnabrueck.de/~rfreund/dvorak.php
|
||||
// Some modifications by Simon Spruenker (simon.spruenker.de) e. g.:
|
||||
// Can also be used on 104-key-keyboard without loosing adiaeresis.
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "dvorak" {
|
||||
include "us(dvorak)"
|
||||
|
||||
name[Group1]="Germany - Dvorak";
|
||||
|
||||
key <TLDE> { [ asciicircum, degree ] };
|
||||
|
||||
key <AE01> { [ 1, exclam, onesuperior ] };
|
||||
key <AE02> { [ 2, quotedbl, twosuperior ] };
|
||||
key <AE03> { [ 3, section, threesuperior ] };
|
||||
key <AE04> { [ 4, dollar, bar ] };
|
||||
key <AE05> { [ 5, percent, bar ] };
|
||||
key <AE06> { [ 6, ampersand, brokenbar ] };
|
||||
key <AE07> { [ 7, slash, braceleft ] };
|
||||
key <AE08> { [ 8, parenleft, bracketleft ] };
|
||||
key <AE09> { [ 9, parenright, bracketright ] };
|
||||
key <AE10> { [ 0, equal, braceright ] };
|
||||
key <AE11> { [ plus, asterisk, asciitilde ] };
|
||||
key <AE12> { [ less, greater, dead_grave ] };
|
||||
|
||||
key <AD01> { [ udiaeresis, Udiaeresis, braceleft ] };
|
||||
key <AD02> { [ comma, semicolon, bracketleft ] };
|
||||
key <AD03> { [ period, colon, bracketright ] };
|
||||
key <AD04> { [ p, P, braceright ] };
|
||||
key <AD08> { [ c, C, copyright, Cacute ] };
|
||||
key <AD09> { [ t, T, trademark ] };
|
||||
key <AD10> { [ z, Z, zabovedot, Zabovedot ] };
|
||||
key <AD11> { [ question, ssharp ] };
|
||||
key <AD12> { [ slash, backslash, dead_acute ] };
|
||||
|
||||
key <AC01> { [ a, A, at, aogonek ] };
|
||||
key <AC02> { [ o, O, oacute, Oacute ] };
|
||||
key <AC03> { [ e, E, EuroSign, eogonek ] };
|
||||
key <AC04> { [ i, I, bar ] };
|
||||
key <AC05> { [ u, U ] };
|
||||
key <AC06> { [ h, H ] };
|
||||
key <AC07> { [ d, D ] };
|
||||
key <AC08> { [ r, R, registered ] };
|
||||
key <AC09> { [ n, N, nacute, Nacute ] };
|
||||
key <AC10> { [ s, S, sacute, Sacute] };
|
||||
key <AC11> { [ l, L, lstroke, Lstroke ] };
|
||||
|
||||
key <AB01> { [ odiaeresis, Odiaeresis, adiaeresis, Adiaeresis ] };
|
||||
key <AB02> { [ q, Q, at ] };
|
||||
key <AB07> { [ m, M, mu ] };
|
||||
key <AB10> { [ numbersign, apostrophe ] };
|
||||
|
||||
key <BKSL> { [ minus, underscore, hyphen, diaeresis] };
|
||||
|
||||
key <LSGT> { [ adiaeresis, Adiaeresis, bar ] };
|
||||
|
||||
include "level3(ralt_switch)"
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "Sundeadkeys" {
|
||||
|
||||
// For naming consistency
|
||||
|
||||
include "de(basic)"
|
||||
|
||||
};
|
||||
|
||||
partial alphanumeric_keys
|
||||
xkb_symbols "sundeadkeys" {
|
||||
|
||||
// For naming consistency
|
||||
|
||||
include "de(Sundeadkeys)"
|
||||
|
||||
name[Group1]="Germany - Sun dead keys";
|
||||
};
|
Loading…
Add table
Reference in a new issue