fixed zsh problems, schizofox not working

This commit is contained in:
vali 2024-04-10 21:15:15 +02:00
commit b8a9ad66c9
20 changed files with 10 additions and 790 deletions

296
alt/flake.lock generated
View file

@ -1,296 +0,0 @@
{
"nodes": {
"crane": {
"inputs": {
"nixpkgs": [
"schizofox",
"searx-randomizer",
"nixpkgs"
]
},
"locked": {
"lastModified": 1701386725,
"narHash": "sha256-w4aBlMYh9Y8co1V80m5LzEKMijUJ7CBTq209WbqVwUU=",
"owner": "ipetkov",
"repo": "crane",
"rev": "8b9bad9b30bd7a9ed08782e64846b7485f9d0a38",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"schizofox",
"nixpkgs"
]
},
"locked": {
"lastModified": 1706830856,
"narHash": "sha256-a0NYyp+h9hlb7ddVz4LUn1vT/PLwqfrWYcHMvFB1xYg=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "b253292d9c0a5ead9bc98c4e9a26c6312e27d69f",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1698882062,
"narHash": "sha256-HkhafUayIqxXyHH1X8d9RDl1M2CkFgZLjKD3MzabiEo=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "8c9fa2545007b49a5db5f650ae91f227672c3877",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"hercules-ci-effects": {
"inputs": {
"flake-parts": [
"schizofox",
"nixpak",
"flake-parts"
],
"nixpkgs": [
"schizofox",
"nixpak",
"nixpkgs"
]
},
"locked": {
"lastModified": 1704029560,
"narHash": "sha256-a4Iu7x1OP+uSYpqadOu8VCPY+MPF3+f6KIi+MAxlgyw=",
"owner": "hercules-ci",
"repo": "hercules-ci-effects",
"rev": "d5cbf433a6ae9cae05400189a8dbc6412a03ba16",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "hercules-ci-effects",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1712462372,
"narHash": "sha256-WA3bbBWhd3o1wAgyHZNypjb/LG4oq+IWxFq8ey8yNPU=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "a561ad6ab38578c812cc9af3b04f2cc60ebf48c9",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"home-manager_2": {
"inputs": {
"nixpkgs": [
"schizofox",
"nixpkgs"
]
},
"locked": {
"lastModified": 1708591310,
"narHash": "sha256-8mQGVs8JccWTnORgoLOTh9zvf6Np+x2JzhIc+LDcJ9s=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0e0e9669547e45ea6cca2de4044c1a384fd0fe55",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpak": {
"inputs": {
"flake-parts": [
"schizofox",
"flake-parts"
],
"hercules-ci-effects": "hercules-ci-effects",
"nixpkgs": [
"schizofox",
"nixpkgs"
]
},
"locked": {
"lastModified": 1708597894,
"narHash": "sha256-KxpKOBDGPJ76k37vLukYHp/wd7U4DoUVIvy8atHfy/k=",
"owner": "nixpak",
"repo": "nixpak",
"rev": "535dd408c4b19f407bc22e42eb32ccb9256e5865",
"type": "github"
},
"original": {
"owner": "nixpak",
"repo": "nixpak",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1712439257,
"narHash": "sha256-aSpiNepFOMk9932HOax0XwNxbA38GOUVOiXfUVPOrck=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "ff0dbd94265ac470dda06a657d5fe49de93b4599",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1698611440,
"narHash": "sha256-jPjHjrerhYDy3q9+s5EAsuhyhuknNfowY6yt6pjn9pc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0cbe9f69c234a7700596e943bfae7ef27a31b735",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1708475490,
"narHash": "sha256-g1v0TsWBQPX97ziznfJdWhgMyMGtoBFs102xSYO4syU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0e74ca98a74bc7270d28838369593635a5db3260",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1712435091,
"narHash": "sha256-Hyn/2goBwkDGxTF6IBcc1HpRscpLg8ErEy+vmQwEqoc=",
"owner": "nix-community",
"repo": "NUR",
"rev": "d47aa79f2aae0bea15c6a40b7fca5830fcfe1346",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nur": "nur",
"schizofox": "schizofox"
}
},
"schizofox": {
"inputs": {
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"home-manager": "home-manager_2",
"nixpak": "nixpak",
"nixpkgs": "nixpkgs_2",
"searx-randomizer": "searx-randomizer"
},
"locked": {
"lastModified": 1710502118,
"narHash": "sha256-kPzvCwGVuLlPDVRD35dMnudWPpEzRXfU/9DHsG12PaY=",
"owner": "schizofox",
"repo": "schizofox",
"rev": "8dde2033a6f448c48a48d4d0aeb22bf2da840b7d",
"type": "github"
},
"original": {
"owner": "schizofox",
"repo": "schizofox",
"type": "github"
}
},
"searx-randomizer": {
"inputs": {
"crane": "crane",
"flake-parts": "flake-parts_2",
"nixpkgs": [
"schizofox",
"nixpkgs"
]
},
"locked": {
"lastModified": 1704412376,
"narHash": "sha256-Ap/AudJxCYBDWYy0lyqP0/FZYJCibL7jKkoj6hp1WS0=",
"owner": "schizofox",
"repo": "searx-randomizer",
"rev": "c36a473732ba6b4f6024ac1c181631cf4d542b17",
"type": "github"
},
"original": {
"owner": "schizofox",
"repo": "searx-randomizer",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View file

@ -1,60 +0,0 @@
{
description = "My NixOS configuration";
inputs = {
nixpkgs.url= "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
schizofox.url="github:schizofox/schizofox";
home-manager = {
url = "github:nix-community/home-manager/";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ { self, nixpkgs, nur, home-manager, ...}:
let
inherit (self) outputs;
mkSystem = {
hostname,
modules ? [],
user-configs ? [ { name = "vali"; config = ./home/vali/common.nix; }],
system ? "x86_64-linux"
#overlays ? import -/overlays/packages.nix
}:
let
profile-config = { inherit hostname system modules user-configs; };
in
nixpkgs.lib.nixosSystem {
inherit modules;
specialArgs = { inherit inputs outputs profile-config; };
};
mkHome = user: modules: pkgs: home-manager.lib.homeManagerConfiguration {
inherit modules pkgs user;
extraSpecialArgs = { inherit inputs outputs user; };
};
in {
nixpkgs.config.allowUnfree = true;
nixosConfigurations = {
laptop = mkSystem {
hostname = "nixos";
modules = [./hosts/laptop];
user-configs = [{
name = "vali";
config = ./home/vali/laptop.nix;
}];
};
xfce = mkSystem {
hostname = "nixos";
modules = [ ./hosts/xfce ];
user-configs = [{
name = "vali";
config = ./home/vali/xfce.nix;
}];
};
};
homeManagerConfiguration = {
"vali@laptop" = mkHome "vali" [ home/vali/laptop.nix ] nixpkgs.legacyPackages."x86_64-linux";
};
};
}

View file

@ -1,27 +0,0 @@
{ inputs, outputs, pkgs, user, ... }:
{
imports = [
# Would look like this:
# ../../terminal/zsh/home.nix
inputs.schizofox.homeManagerModule
../../modules/web/schizofox.nix
#../../modules/terminal/zsh/home.nix
];
xdg.configHome = "/home/${user}/.config/";
programs.home-manager.enable = true;
home = {
stateVersion = "23.11";
username = "${user}";
homeDirectory = "/home/${user}";
};
# GNOME settings:
dconf.settings = {
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [ "appindicatorsupport@rgcjonas.gmail.com" ];
};
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
}

View file

@ -1,18 +0,0 @@
{ inputs, outputs, pkgs, user, ... }:
{
imports = [
# Would look like this:
# ../../terminal/zsh/home.nix
inputs.schizofox.homeManagerModule
../../modules/web/schizofox.nix
#../../modules/terminal/zsh/home.nix
];
xdg.configHome = "/home/${user}/.config/";
programs.home-manager.enable = true;
home = {
stateVersion = "23.11";
username = "${user}";
homeDirectory = "/home/${user}";
};
}

View file

@ -1,93 +0,0 @@
{ inputs, outputs, profile-config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
imports = [
#profile-config.overlays
inputs.home-manager.nixosModules.home-manager
./packages.nix
];
services.locate = {
enable = true;
interval = "daily";
package = pkgs.plocate;
localuser = null;
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users = builtins.listToAttrs (builtins.map(
u-conf: {
inherit inputs;
name = u-conf.name;
value = import u-conf.config { inherit pkgs inputs outputs; user = u-conf.name; };
}
)profile-config.user-configs);
users.users = builtins.listToAttrs (builtins.map(
u-conf: {
name = u-conf.name;
value = {
initialPassword = "${u-conf.name}";
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" "input"];
};
}
)profile-config.user-configs);
boot.loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
};
time.timeZone = "Europe/Zurich";
i18n.defaultLocale = "en_US.UTF-8";
console.keyMap = "de";
# Remove unnecessary packages
environment.gnome.excludePackages =
(with pkgs; [
gnome-photos
gnome-tour
gedit
]) ++
(with pkgs.gnome; [
epiphany
geary
totem
tali
iagno
hitori
atomix
]);
services.xserver.excludePackages = [ pkgs.xterm ];
documentation.nixos.enable = false;
# Set the keyboard layout to german
services.xserver.xkb.layout= "de";
# Eable CUPS
services.printing.enable = true;
# Sound settings
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
wireplumber.enable = true;
alsa.support32Bit = true;
};
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
};
system.stateVersion = "23.11";
}

View file

@ -1,23 +0,0 @@
{ inputs, outputs, profile-config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vim
neovim
eza
zsh
git
zip
unzip
neofetch
fastfetch
wget
zoxide
python3
gcc
htop
networkmanager
gnomeExtensions.appindicator
uwufetch
];
}

View file

@ -1,13 +0,0 @@
{ inputs, outputs, pks, profile-config, ... }:
{
imports = [
./hardware-configuration.nix
../common
./packages.nix
];
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
security.polkit.enable = true;
}

View file

@ -1,39 +0,0 @@
# 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 = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b29322ae-b475-4241-85d5-16b69d3cbdc0";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-d12a57e8-f071-485c-ab1c-e8f7a7897dfb".device = "/dev/disk/by-uuid/d12a57e8-f071-485c-ab1c-e8f7a7897dfb";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/33F4-58C3";
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.wlp59s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,28 +0,0 @@
{ inputs, outputs, pkgs, profile-config, ... }:
{
environment.systemPackages = with pkgs; [
jetbrains.idea-community
ani-cli
okular
texliveFull
signal-desktop
nextcloud-client
vlc
strawberry
telegram-desktop
thunderbird
betterbird
vesktop
zsh
zoxide
eza
mpv
librewolf
keepassxc
feh
libreoffice
openjdk
gnome.gnome-tweaks
];
}

View file

@ -1,22 +0,0 @@
{ config, pkgs, callPackage, ... }:
{
imports = [
./hardware-configuration.nix
./packages.nix
../common
];
services.xserver = {
enable = true;
desktopManager = {
xterm.enable = false;
xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
};
displayManager.defaultSession = "xfce";
windowManager.i3.enable = true;
};
...
}

View file

@ -1,39 +0,0 @@
# 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 = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b29322ae-b475-4241-85d5-16b69d3cbdc0";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-d12a57e8-f071-485c-ab1c-e8f7a7897dfb".device = "/dev/disk/by-uuid/d12a57e8-f071-485c-ab1c-e8f7a7897dfb";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/33F4-58C3";
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.wlp59s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,27 +0,0 @@
{ inputs, outputs, pkgs, profile-config, ... }:
{
environment.systemPackages = with pkgs; [
jetbrains.idea-community
ani-cli
okular
texliveFull
signal-desktop
nextcloud-client
vlc
strawberry
telegram-desktop
betterbird
vesktop
zsh
zoxide
eza
mpv
librewolf
keepassxc
feh
libreoffice
openjdk
];
}

View file

@ -1,31 +0,0 @@
{ pkgs, config, ... }
{
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutoSuggestions = true;
shellAliases = {
c = "clear";
cc = "cd && clear";
la = "eza -lah";
ls = "eza"
update = "sudo nixos-rebuild switch --flake '/home/vali/.flake/'#laptop";
nv = "nvim";
sunv = "sudo nvim";
};
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [ "git" "thefuck" ];
};
home.packages = with pkgs; [ thefuck ];
programs.zoxide = {
enable = true;
enableZshIntegration = true;
}
}
}

View file

@ -1,72 +0,0 @@
{ pkgs, inputs, ... }: {
#imports = [ inputs.schizofox.homeManagerModule ];
programs.schizofox = {
enable = true;
theme = {
colors = {
background-darker = "181825";
background = "1e1e2e";
foreground = "cdd6f4";
};
font = "Lexend";
extraUserChrome = ''
body {
color: red !important;
}
.urlbarView {
display: none !important;
}
'';
};
search = {
defaultSearchEngine = "Brave";
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"];
searxUrl = "https://searx.be";
searxQuery = "https://searx.be/search?q={searchTerms}&categories=general";
addEngines = [
{
Name = "Etherscan";
Description = "Checking balances";
Alias = "!eth";
Method = "GET";
URLTemplate = "https://etherscan.io/search?f=0&q={searchTerms}";
}
];
};
security = {
sanitizeOnShutdown = false;
sandbox = true;
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
};
misc = {
drmFix = true;
disableWebgl = false;
#startPageURL = "file://${builtins.readFile ./startpage.html}";
};
extensions = {
simplefox.enable = true;
darkreader.enable = true;
extraExtensions = {
"webextension@metamask.io".install_url = "https://addons.mozilla.org/firefox/downloads/latest/ether-metamask/latest.xpi";
};
};
misc.bookmarks = [
#{
# Title = "Example";
# URL = "https://example.com";
# Favicon = "https://example.com/favicon.ico";
# Placement = "toolbar";
# Folder = "FolderName";
#}
];
};
}

View file

@ -21,6 +21,7 @@
btop.enable = true; btop.enable = true;
mpv.enable = true; mpv.enable = true;
i3.enable = true; i3.enable = true;
schizofox.enable = true;
#neovim.enable = true; #neovim.enable = true;
#git = { #git = {
# enable = true; # enable = true;

View file

@ -21,6 +21,7 @@ in {
qbittorrent qbittorrent
ventoy-full ventoy-full
lazygit lazygit
neofetch
zip zip
unzip unzip
gcc gcc

View file

@ -25,16 +25,22 @@ in {
pathsToLink = [ "/share/zsh" ]; pathsToLink = [ "/share/zsh" ];
}; };
home-manager.users.${username} = { home-manager.users.${username} = {
home.packages = with pkgs; [ nix-output-monitor ];
programs.zoxide.enable = true;
programs.zoxide.enableZshIntegration = true;
programs.zsh = { programs.zsh = {
enable = true; enable = true;
shellAliases = { shellAliases = {
c = "clear"; c = "clear";
cc = "cd && clear"; cc = "cd ~ && clear";
mv = "mv -iv"; mv = "mv -iv";
rm = "trash -v"; rm = "trash -v";
l = "eza -a --icons"; l = "eza -a --icons";
la = "eza -lha --icons --git"; la = "eza -lha --icons --git";
cd = "zoxide"; cd = "z";
#TODO fix hardcoding of git repo path and profile name
update = "nixos-rebuild switch --flake \"$HOME/Git/nichts#${username}\" --log-format internal-json |& nom --json";
} // cfg.extraAliases; } // cfg.extraAliases;
initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof"; initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof";
initExtra = mkIf cfg.profiling "zprof"; initExtra = mkIf cfg.profiling "zprof";