Compare commits
No commits in common. "d61cd420a4b9fcf2e52cfc6b680f8a131158a4e0" and "373a9bcd70e5115dd3821265fbb2b53aa6acdb90" have entirely different histories.
d61cd420a4
...
373a9bcd70
7 changed files with 16 additions and 336 deletions
|
@ -14,7 +14,7 @@ Clone this Repository somewhere you can edit it easily:
|
||||||
git clone https://git.kb-one.de/kb01/aux-config ~/Project/aux-config
|
git clone https://git.kb-one.de/kb01/aux-config ~/Project/aux-config
|
||||||
```
|
```
|
||||||
|
|
||||||
Check if the Hostname of your System matches one of the [Systems](./systems/).
|
Check if the Hostname of your System matches one of the [Systems](./systems/README.md).
|
||||||
```bash
|
```bash
|
||||||
hostname
|
hostname
|
||||||
```
|
```
|
||||||
|
|
24
flake.lock
generated
24
flake.lock
generated
|
@ -127,11 +127,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739416022,
|
"lastModified": 1738878603,
|
||||||
"narHash": "sha256-Af1CIT+XlXEb+Dk11sgPDzJoOUiada2Xoj5hA8TBvLY=",
|
"narHash": "sha256-fmhq8B3MvQLawLbMO+LWLcdC2ftLMmwSk+P29icJ3tE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c9d343cfa0565671cc7e8d5aefebaf61cc840abd",
|
"rev": "433799271274c9f2ab520a49527ebfe2992dcfbd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -184,11 +184,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739411192,
|
"lastModified": 1738806350,
|
||||||
"narHash": "sha256-cwzAM/v1x8JEi7TYggNm/tLLzDUhGtHDtuAGWY/QK9Y=",
|
"narHash": "sha256-NaCd65SqWMROgbJzio9HW5WGNb5sOBfyuGVtccU4YmM=",
|
||||||
"owner": "Infinidoge",
|
"owner": "Infinidoge",
|
||||||
"repo": "nix-minecraft",
|
"repo": "nix-minecraft",
|
||||||
"rev": "da017303c7373b5d6371f496d628386f4662253b",
|
"rev": "e35b9bfe00b0602f57de8f19745c3d91cb45efec",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -251,11 +251,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739214665,
|
"lastModified": 1738680400,
|
||||||
"narHash": "sha256-26L8VAu3/1YRxS8MHgBOyOM8xALdo6N0I04PgorE7UM=",
|
"narHash": "sha256-ooLh+XW8jfa+91F1nhf9OF7qhuA/y1ChLx6lXDNeY5U=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "64e75cd44acf21c7933d61d7721e812eac1b5a0a",
|
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -306,11 +306,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739262228,
|
"lastModified": 1738291974,
|
||||||
"narHash": "sha256-7JAGezJ0Dn5qIyA2+T4Dt/xQgAbhCglh6lzCekTVMeU=",
|
"narHash": "sha256-wkwYJc8cKmmQWUloyS9KwttBnja2ONRuJQDEsmef320=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "07af005bb7d60c7f118d9d9f5530485da5d1e975",
|
"rev": "4c1251904d8a08c86ac6bc0d72cc09975e89aef7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,146 +0,0 @@
|
||||||
{ config, pkgs, lib, inputs, ... }:
|
|
||||||
let
|
|
||||||
# Firefox Profile Setting States
|
|
||||||
lock-false = {
|
|
||||||
Value = false;
|
|
||||||
Status = "locked";
|
|
||||||
};
|
|
||||||
lock-true = {
|
|
||||||
Value = true;
|
|
||||||
Status = "locked";
|
|
||||||
};
|
|
||||||
lock-empty-string = {
|
|
||||||
Value = "";
|
|
||||||
Status = "locked";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
home.username = "kb";
|
|
||||||
home.homeDirectory = "/home/kb";
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
# System
|
|
||||||
kate
|
|
||||||
kdePackages.kcalc
|
|
||||||
# Office
|
|
||||||
thunderbird
|
|
||||||
libreoffice-qt6-fresh
|
|
||||||
logseq
|
|
||||||
# Security
|
|
||||||
gnupg
|
|
||||||
keepassxc
|
|
||||||
pass-wayland
|
|
||||||
veracrypt
|
|
||||||
protonvpn-gui
|
|
||||||
# Media
|
|
||||||
freetube
|
|
||||||
inkscape
|
|
||||||
blender
|
|
||||||
obs-studio
|
|
||||||
cheese
|
|
||||||
gimp
|
|
||||||
vlc
|
|
||||||
kid3
|
|
||||||
#calibre
|
|
||||||
spotify-player
|
|
||||||
tidal-hifi
|
|
||||||
# Messengers
|
|
||||||
element-desktop # Matrix Client
|
|
||||||
telegram-desktop
|
|
||||||
signal-desktop
|
|
||||||
webcord
|
|
||||||
# Customization
|
|
||||||
razergenie
|
|
||||||
firefoxpwa
|
|
||||||
# Development
|
|
||||||
vscodium
|
|
||||||
scrcpy
|
|
||||||
# Experiments
|
|
||||||
yazi # Terminal File-Manager
|
|
||||||
# Gaming
|
|
||||||
ryujinx # Experimental Nitendo Switch Emulator
|
|
||||||
mangohud
|
|
||||||
prismlauncher
|
|
||||||
# Terminal Tools
|
|
||||||
mosh
|
|
||||||
btop
|
|
||||||
fastfetch
|
|
||||||
];
|
|
||||||
|
|
||||||
services.syncthing.enable = true;
|
|
||||||
services.syncthing.extraOptions = [
|
|
||||||
"--config=/home/kb/.config/syncthing"
|
|
||||||
"--data=/home/kb/sync"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.gpg-agent.enable = true;
|
|
||||||
|
|
||||||
services.ssh-agent.enable = true;
|
|
||||||
|
|
||||||
programs.firefox = {
|
|
||||||
enable = true;
|
|
||||||
nativeMessagingHosts = [ pkgs.firefoxpwa ];
|
|
||||||
policies = {
|
|
||||||
DisableTelemetry = true;
|
|
||||||
DisableFirefoxStudies = true;
|
|
||||||
DisablePocket = true;
|
|
||||||
DisableFirefoxAccounts = true;
|
|
||||||
AutofillAddressEnabled = false;
|
|
||||||
AutofillCreditCardEnabled = false;
|
|
||||||
OfferToSaveLogins = false;
|
|
||||||
FirefoxHome.TopSites = false;
|
|
||||||
FirefoxHome.SponsoredTopSites = false;
|
|
||||||
Preferences = {
|
|
||||||
"browser.newtabpage.pinned" = lock-empty-string;
|
|
||||||
"browser.topsites.contile.enabled" = lock-false;
|
|
||||||
};
|
|
||||||
DontCheckDefaultBrowser = true;
|
|
||||||
DisableProfileImport = true;
|
|
||||||
SearchBar = "unified";
|
|
||||||
SearchEngines.Add = [ # Only Available in ESR Releases https://mozilla.github.io/policy-templates/#searchengines--add
|
|
||||||
{
|
|
||||||
Name = "Brave";
|
|
||||||
URLTemplate = "https://search.brave.com/search?q={SearchTerms}";
|
|
||||||
Alias = "br";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
ExtensionSettings = { # See https://mozilla.github.io/policy-templates/#extensionsettings
|
|
||||||
"extension@tabliss.io" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/3940751/tabliss-2.6.0.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
"gdpr@cavi.au.dk" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4362793/consent_o_matic-1.1.3.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
"uBlock0@raymondhill.net" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4382536/ublock_origin-1.61.0.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
"keepassxc-browser@keepassxc.org" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4376326/keepassxc_browser-1.9.4.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
"offline-qr-code@rugk.github.io" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4349427/offline_qr_code_generator-1.9.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
"addon@darkreader.org" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4378073/darkreader-4.9.96.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
"firefoxpwa@filips.si" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4383345/pwas_for_firefox-2.13.1.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Bookmarks = [
|
|
||||||
{
|
|
||||||
Title = "Syncthing";
|
|
||||||
URL = "localhost:8384";
|
|
||||||
Placement = "toolbar";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.stateVersion = "24.05";
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
{
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
cfg = config.hardware.t2-mac-WirelessReload;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.hardware.t2-mac-WirelessReload.enable = lib.mkOption {
|
|
||||||
type = with lib.types; uniq bool;
|
|
||||||
default = false;
|
|
||||||
description = "Reloads the Wireless Drivers";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf (cfg.enable) {
|
|
||||||
# Service to load Driver with options
|
|
||||||
systemd.services."t2-mac-WirelessReload" = {
|
|
||||||
description = "Reloads Wireless Drivers for Mac";
|
|
||||||
path = [ pkgs.kmod ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = ''
|
|
||||||
${pkgs.kmod.out}/bin/modprobe -r brcmfmac_wcc || true
|
|
||||||
${pkgs.kmod.out}/bin/modprobe -r brcmfmac || true
|
|
||||||
${pkgs.kmod.out}/bin/modprobe brcmfmac || true
|
|
||||||
${pkgs.kmod.out}/bin/modprobe -r hci_bcm4377 || true
|
|
||||||
${pkgs.kmod.out}/bin/modprobe hci_bcm4377 || true
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
## [Ohybke](./x86_64-linux/Ohybke)
|
## Ohybke
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="../assets/Ohybke.jpeg" width="152" height="114"></td>
|
<td><img src="../assets/Ohybke.jpeg" width="152" height="114"></td>
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>User</td>
|
<td>User</td>
|
||||||
<td><a href="../homes/x86_64-linux/kb@Ohybke">kb@Ohybke</a></td>
|
<td>kb@Ohybke</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Cpu</td>
|
<td>Cpu</td>
|
||||||
|
|
|
@ -1,97 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Configure Nix
|
|
||||||
nix.package = pkgs.lix;
|
|
||||||
nix.settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
};
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"electron-27.3.11"
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
# Networking
|
|
||||||
networking.hostName = "Ohybke";
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
#networking.wireless.enable = true;
|
|
||||||
|
|
||||||
# Enable Bluetooth
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
|
||||||
|
|
||||||
# Locale
|
|
||||||
time.timeZone = "Europe/Berlin";
|
|
||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver.enable = true;
|
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
|
||||||
services.displayManager.sddm.enable = true;
|
|
||||||
services.desktopManager.plasma6.enable = true;
|
|
||||||
|
|
||||||
# Keyboard and Keymap
|
|
||||||
services.xserver.xkb = {
|
|
||||||
layout = "de";
|
|
||||||
variant = "mac_nodeadkeys";
|
|
||||||
options = "";
|
|
||||||
};
|
|
||||||
console = {
|
|
||||||
font = "Lat2-Terminus16";
|
|
||||||
# keyMap = "de";
|
|
||||||
useXkbConfig = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
|
||||||
services.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Users
|
|
||||||
users.users.kb = { # Managed by Homemanager
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "kB";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable SSH-Agent
|
|
||||||
programs.ssh.startAgent = true;
|
|
||||||
|
|
||||||
# Packages installed in system profile. Search Packages: $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vim
|
|
||||||
git
|
|
||||||
kb-one.numen
|
|
||||||
kb-one.dotool
|
|
||||||
kb-one.vosk-model-small-en-us
|
|
||||||
];
|
|
||||||
|
|
||||||
system.stateVersion = "24.11"; # NEVER Change this!
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
{ config, lib, pkgs, modulesPath, inputs, ... }: let
|
|
||||||
inherit (inputs) nixos-hardware;
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
nixos-hardware.nixosModules.apple-t2
|
|
||||||
];
|
|
||||||
|
|
||||||
# Nix Config
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "cryptd" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
boot.loader.efi.efiSysMountPoint = "/boot";
|
|
||||||
|
|
||||||
# File Systems
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/e36a3f85-020f-4d6c-844f-b81131ce7e63";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
boot.initrd.luks.devices."luks-a226aaf4-1250-447b-a5fc-fa37758d332a".device = "/dev/disk/by-uuid/a226aaf4-1250-447b-a5fc-fa37758d332a";
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/5F66-17ED";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
|
||||||
};
|
|
||||||
swapDevices = [ { device = "/swapfile"; size = 8 * 1024; } ];
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue