Compare commits

...

7 Commits

6 changed files with 90 additions and 18 deletions

View File

@ -1,5 +1,8 @@
{pkgs, ...}: {pkgs, lib, ...}:
{ {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"ookla-speedtest"
];
home.packages = with pkgs; [ home.packages = with pkgs; [
(python3.withPackages(ps: with ps; [ (python3.withPackages(ps: with ps; [
# ansible # ansible
@ -37,13 +40,15 @@
minio-client minio-client
liboping # fix it liboping # fix it
mtr mtr
ookla-speedtest
colordiff colordiff
direnv direnv
pure-prompt pure-prompt
#vimPlugins.nvim-lspconfig #vimPlugins.nvim-lspconfig
#vimPlugins.nerdtree #vimPlugins.nerdtree
go gcc libcap go gcc libcap
go-langserver gopls
cargo
yarn yarn
pwgen pwgen
pass-wayland pass-wayland
@ -58,7 +63,7 @@
kubernetes-helm kubernetes-helm
helmfile helmfile
k9s k9s
nixopsUnstable # nixopsUnstable
]; ];
programs.zsh = { programs.zsh = {
@ -67,6 +72,20 @@
# broken: enableSyntaxHighlighting = true; # broken: enableSyntaxHighlighting = true;
# grml and pure enabled .... # grml and pure enabled ....
}; };
programs.starship = {
enable = true;
settings = {
directory = {
truncation_length = 0;
};
};
};
programs.atuin = {
enable = true;
settings = {
search_mode = "fulltext";
};
};
programs.direnv.enable = true; programs.direnv.enable = true;
programs.gitui.enable = true; programs.gitui.enable = true;

View File

@ -7,9 +7,55 @@
MOZ_WEBRENDER = 1; MOZ_WEBRENDER = 1;
}; };
dconf.settings = {
"org/gnome/mutter" = {
# display: partly scale (like 150% or 125%) # display: partly scale (like 150% or 125%)
dconf.settings."org/gnome/mutter" = { "experimental-features" = [ "scale-monitor-framebuffer" ];
"experimental-features" = ["scale-monitor-framebuffer"]; };
# key bindings
"org/gnome/shell/keybindings" = {
"switch-to-application-1" = [];
"switch-to-application-2" = [];
"switch-to-application-3" = [];
"switch-to-application-4" = [];
"switch-to-application-5" = [];
"switch-to-application-6" = [];
"switch-to-application-7" = [];
"switch-to-application-8" = [];
"switch-to-application-9" = [];
};
"org/gnome/desktop/wm/keybindings" = {
"toggle-maximized" = [ "<Super>z" ];
"maximize" = [];
"unmaximize" = [ "<Alt>F5" ];
"close" = [ "<Super>c" "<Alt>F4" ];
"switch-input-source" = [ "<Super>i" "XF86Keyboard" ];
"switch-input-source-backward" = [ "<Shift><Super>i" "<Shift>XF86Keyboard" ];
"switch-to-workspace-1" = [ "<Super>1" ];
"switch-to-workspace-2" = [ "<Super>2" ];
"switch-to-workspace-3" = [ "<Super>3" ];
"switch-to-workspace-4" = [ "<Super>4" ];
"switch-to-workspace-5" = [ "<Super>5" ];
"switch-to-workspace-6" = [ "<Super>6" ];
"switch-to-workspace-7" = [ "<Super>7" ];
"switch-to-workspace-8" = [ "<Super>8" ];
"switch-to-workspace-9" = [ "<Super>9" ];
"switch-to-workspace-10" = [ "<Super>0" ];
"move-to-workspace-1" = [ "<Shift><Super>1" ];
"move-to-workspace-2" = [ "<Shift><Super>2" ];
"move-to-workspace-3" = [ "<Shift><Super>3" ];
"move-to-workspace-4" = [ "<Shift><Super>4" ];
"move-to-workspace-5" = [ "<Shift><Super>5" ];
"move-to-workspace-6" = [ "<Shift><Super>6" ];
"move-to-workspace-7" = [ "<Shift><Super>7" ];
"move-to-workspace-8" = [ "<Shift><Super>8" ];
"move-to-workspace-9" = [ "<Shift><Super>9" ];
"move-to-workspace-10" = [ "<Shift><Super>0" ];
};
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [

View File

@ -9,9 +9,14 @@
"github".url = "https://github.com"; "github".url = "https://github.com";
}; };
settings = { settings = {
"extensions.pocket.enabled" = false;
#----
"browser.tabs.unloadOnLowMemory" = false; "browser.tabs.unloadOnLowMemory" = false;
# to enable userChrome # to enable userChrome
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
#----
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
}; };
userChrome = '' userChrome = ''
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

View File

@ -48,7 +48,6 @@
iperf3 iperf3
bmon bmon
figlet figlet
grml-zsh-config
tmux tmux
neovim neovim
xh xh
@ -64,20 +63,21 @@
programs.neovim = { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
viAlias = true;
vimAlias = true;
}; };
# zsh # zsh
programs.starship.enable = true;
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
programs.zsh = { programs.zsh = {
enable = true; enable = true;
autosuggestions.enable = true; autosuggestions.enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
interactiveShellInit = '' # interactiveShellInit = ''
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc # promptInit = ''
''; # source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
promptInit = ""; # '';
# promptInit = "";
shellAliases = { shellAliases = {
ip = "ip --color"; ip = "ip --color";
watch = "watch -c"; watch = "watch -c";

View File

@ -19,7 +19,7 @@
matchConfig = { matchConfig = {
Name = "wlan0"; Name = "wlan0";
SSID = [ SSID = [
"HotoHo-v6" "urbanForest-v6"
]; ];
}; };
networkConfig = { networkConfig = {

View File

@ -48,11 +48,13 @@
# openFirewall = true; - by enable # openFirewall = true; - by enable
}; };
services.udev.extraRules = lib.mkMerge [ services.udev.extraRules = lib.mkMerge [
# autosuspend USB devices # meine maus geht immer aus
''ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"'' # # autosuspend USB devices
# autosuspend PCI devices # ''ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="auto"''
''ACTION=="add", SUBSYSTEM=="pci", TEST=="power/control", ATTR{power/control}="auto"'' # # autosuspend PCI devices
# ''ACTION=="add", SUBSYSTEM=="pci", TEST=="power/control", ATTR{power/control}="auto"''
# disable Ethernet Wake-on-LAN # disable Ethernet Wake-on-LAN
''ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="${pkgs.ethtool}/sbin/ethtool -s $name wol d"'' ''ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="${pkgs.ethtool}/sbin/ethtool -s $name wol d"''
]; ];