Compare commits
No commits in common. "f33d724cfaf4db9908efa80a2ce31d9caafc654e" and "7bebb4c1763f82257f72074877fee2920565b613" have entirely different histories.
f33d724cfa
...
7bebb4c176
@ -3,8 +3,7 @@
|
|||||||
# Enable OpenGL
|
# Enable OpenGL
|
||||||
# Load nvidia driver for Xorg and Wayland
|
# Load nvidia driver for Xorg and Wayland
|
||||||
environment.pathsToLink = [ "/libexec" ];
|
environment.pathsToLink = [ "/libexec" ];
|
||||||
users.users.mbeno.extraGroups = [ "adbusers" ];
|
|
||||||
programs.adb.enable = true;
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
@ -42,10 +42,7 @@
|
|||||||
pass
|
pass
|
||||||
xdg-desktop-portal
|
xdg-desktop-portal
|
||||||
pkg-config
|
pkg-config
|
||||||
xclip
|
|
||||||
nvd
|
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
google-chrome
|
|
||||||
zoom-us
|
zoom-us
|
||||||
neovim
|
neovim
|
||||||
git
|
git
|
||||||
|
@ -5,41 +5,6 @@
|
|||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
services = {
|
services = {
|
||||||
prometheus = {
|
|
||||||
scrapeConfigs = [
|
|
||||||
{
|
|
||||||
job_name = "chrysalis";
|
|
||||||
static_configs = [{
|
|
||||||
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
exporters = {
|
|
||||||
node = {
|
|
||||||
enable = true;
|
|
||||||
enabledCollectors = [ "systemd" "processes" ];
|
|
||||||
port = 9002;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
port = 9001;
|
|
||||||
};
|
|
||||||
|
|
||||||
grafana = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
server = {
|
|
||||||
# Listening Address
|
|
||||||
http_addr = "127.0.0.1";
|
|
||||||
# and Port
|
|
||||||
http_port = 3000;
|
|
||||||
# Grafana needs to know on which domain and URL it's running
|
|
||||||
serve_from_sub_path = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
displayManager =
|
displayManager =
|
||||||
{
|
{
|
||||||
defaultSession = "none+i3";
|
defaultSession = "none+i3";
|
||||||
@ -50,9 +15,8 @@
|
|||||||
logind.extraConfig = "IdleAction=ignore";
|
logind.extraConfig = "IdleAction=ignore";
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xkb.layout = "us,no";
|
xkb.layout = "us";
|
||||||
xkb.variant = "qwerty";
|
xkb.variant = "";
|
||||||
xkb.options = "grp:win_space_toggle";
|
|
||||||
desktopManager = {
|
desktopManager = {
|
||||||
xterm.enable = false;
|
xterm.enable = false;
|
||||||
};
|
};
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
./programs/obs-studio
|
./programs/obs-studio
|
||||||
./programs/vscode
|
./programs/vscode
|
||||||
./programs/games
|
./programs/games
|
||||||
|
./programs/questpatcher
|
||||||
./scripts
|
./scripts
|
||||||
./zsh
|
./zsh
|
||||||
./packages
|
./packages
|
||||||
|
@ -4,14 +4,7 @@
|
|||||||
inputs.nix-citizen.packages.${system}.star-citizen
|
inputs.nix-citizen.packages.${system}.star-citizen
|
||||||
age
|
age
|
||||||
discord
|
discord
|
||||||
pdfpc
|
|
||||||
qpwgraph
|
|
||||||
mixxx
|
|
||||||
imagemagick
|
|
||||||
maim
|
|
||||||
sidequest
|
sidequest
|
||||||
opera
|
|
||||||
android-studio
|
|
||||||
libpng
|
libpng
|
||||||
p7zip
|
p7zip
|
||||||
lshw
|
lshw
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ user, pkgs, config, ... }: {
|
{ user, pkgs, ... }: {
|
||||||
home.packages = with pkgs; [ fd ];
|
home.packages = with pkgs; [ fd ];
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -7,17 +7,7 @@
|
|||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
nrebuild = "sudo nixos-rebuild switch --flake /home/${user}/git/nixos && nvd diff $(ls -d1v /nix/var/nix/profiles/system-*-link|tail -n 2) && source ~/.zshrc";
|
nrebuild = "sudo nixos-rebuild switch --flake /home/${user}/git/nixos";
|
||||||
nlog = ''
|
|
||||||
revpath="/nix/var/nix/profiles";
|
|
||||||
lastrev=$(ls -d1v $revpath/system-*-link|cut -d "-" -f2 | tail -n1);
|
|
||||||
for revit in {$lastrev..0};
|
|
||||||
do
|
|
||||||
ls -lt $revpath/system-$revit-link $revpath/system-$(( $revit - 1 ))-link | cut -d" " -f6,7,8 | awk '{key=$0; getline; print key " -> " $0;}'
|
|
||||||
nvd diff $revpath/system-$revit-link $revpath/system-$(( $revit - 1 ))-link;
|
|
||||||
read;
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
dresden = "/home/mbeno/.ssh/dresden.sh";
|
dresden = "/home/mbeno/.ssh/dresden.sh";
|
||||||
d = "dresden";
|
d = "dresden";
|
||||||
};
|
};
|
||||||
@ -25,8 +15,6 @@
|
|||||||
initExtra = ''
|
initExtra = ''
|
||||||
bindkey -v
|
bindkey -v
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
bindkey '^[[A' history-substring-search-up
|
|
||||||
bindkey '^[[B' history-substring-search-down
|
|
||||||
|
|
||||||
# Prompt stuff
|
# Prompt stuff
|
||||||
autoload -Uz promptinit
|
autoload -Uz promptinit
|
||||||
@ -37,16 +25,9 @@
|
|||||||
zplug = {
|
zplug = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
{ name = "plugins/git"; tags = [ "from:oh-my-zsh" ]; }
|
({ name = "plugins/git"; tags = [ "from:oh-my-zsh" ]; })
|
||||||
{ name = "modules/prompt"; tags = [ "from:prezto" ]; }
|
({ name = "modules/prompt"; tags = [ "from:prezto" ]; })
|
||||||
{ name = "zsh-users/zsh-autosuggestions"; }
|
|
||||||
{
|
|
||||||
name =
|
|
||||||
"zsh-users/zsh-history-substring-search";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
history.size = 1000000;
|
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user