summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2024-10-12 17:15:08 +0000
committerMike Vink <ivi@vinkies.net>2024-10-12 17:15:08 +0000
commitf26c55d5bea46e0b4c0bed3ef3a1258b1b9e82dc (patch)
tree4a0f2284ae05771568efe2dbc323233c10f444bd /machines
parent7134976e1bd1ab8f6f0a85e9efe23b85f0d54250 (diff)
update
Diffstat (limited to 'machines')
-rw-r--r--machines/vm-aarch64.nix44
-rw-r--r--machines/work.nix122
2 files changed, 154 insertions, 12 deletions
diff --git a/machines/vm-aarch64.nix b/machines/vm-aarch64.nix
index ed71515..c680ec1 100644
--- a/machines/vm-aarch64.nix
+++ b/machines/vm-aarch64.nix
@@ -6,12 +6,49 @@
system.stateVersion = "24.05";
virtualisation.vmware.guest.enable = true;
virtualisation.docker.enable = true;
+ virtualisation.docker.rootless = {
+ enable = true;
+ setSocketVariable = true;
+ };
+ users.groups.docker.members = [
+ "nixbld1"
+ "nixbld10"
+ "nixbld11"
+ "nixbld12"
+ "nixbld13"
+ "nixbld14"
+ "nixbld15"
+ "nixbld16"
+ "nixbld17"
+ "nixbld18"
+ "nixbld19"
+ "nixbld2"
+ "nixbld20"
+ "nixbld21"
+ "nixbld22"
+ "nixbld23"
+ "nixbld24"
+ "nixbld25"
+ "nixbld26"
+ "nixbld27"
+ "nixbld28"
+ "nixbld29"
+ "nixbld3"
+ "nixbld30"
+ "nixbld31"
+ "nixbld32"
+ "nixbld4"
+ "nixbld5"
+ "nixbld6"
+ "nixbld7"
+ "nixbld8"
+ "nixbld9"
+ ];
networking.hostName = "vm-aarch64";
programs.nix-ld.enable = true;
hm.xsession.initExtra = ''
${pkgs.xorg.xset}/bin/xset r rate 230 30
- [ -z "$(lsusb | grep microdox)" ] && ${pkgs.xorg.setxkbmap}/bin/setxkbmap -option "ctrl:swapcaps"
${pkgs.open-vm-tools}/bin/vmware-user-suid-wrapper
wal -R
dwm
@@ -28,6 +65,10 @@
krew
kubelogin
just
+ (ffmpeg.override {
+ withXcb = true;
+ })
+ mpv
];
services.pcscd.enable = true;
@@ -108,4 +149,5 @@
# networking.interfaces.ens160.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
+ nix.settings.trusted-users = [ my.username ];
}
diff --git a/machines/work.nix b/machines/work.nix
index 9761e5c..5b65772 100644
--- a/machines/work.nix
+++ b/machines/work.nix
@@ -24,7 +24,7 @@
isNormalUser = mkSinkUndeclaredOptions {};
};
config = {
- home = "/Users/${my.username}";
+ home = "/Users/${ivi.username}";
};
}));
};
@@ -33,20 +33,20 @@
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages =
- [ # pkgs.qemu
- # pkgs.kitty
+ [ pkgs.qemu
+ pkgs.kitty
pkgs.openssh
- # pkgs.python311
- # pkgs.mpv
+ pkgs.python311
+ pkgs.mpv
pkgs.kubelogin
pkgs.zsh
pkgs.bashInteractive
- # pkgs.awscli2
+ pkgs.awscli2
pkgs.skhd
- # pkgs.act
+ pkgs.act
pkgs.yubikey-manager
- # pkgs.gomplate
- # pkgs.just
+ pkgs.gomplate
+ pkgs.just
];
hm = {
home = {
@@ -60,6 +60,106 @@
target = ".gnupg/gpg-agent.conf";
};
};
+ programs.kitty = {
+ enable = true;
+ shellIntegration = {
+ enableZshIntegration = true;
+ };
+ extraConfig = ''
+ allow_remote_control yes
+ cursor_shape block
+ font_family JetBrainsMono Nerd Font Mono
+ text_composition_strategy platform
+ cursor_blink_interval 0
+ draw_minimal_borders yes
+ hide_window_decorations no
+ confirm_os_window_close 0
+ macos_option_as_alt yes
+ linux_display_server x11
+
+ clear_all_shortcuts yes
+ kitty_mod alt
+ mouse_map right press ungrabbed mouse_select_command_output
+ map kitty_mod+v mouse_select_command_output
+ scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
+
+ map kitty_mod+shift+k change_font_size all +2.0
+ map kitty_mod+shift+j change_font_size all -2.0
+
+ map kitty_mod+k scroll_to_prompt -1
+ map kitty_mod+j scroll_to_prompt 1
+ map kitty_mod+l show_last_visited_command_output
+ map kitty_mod+shift+l show_scrollback
+
+ map kitty_mod+w>p show_last_visited_command_output
+ map kitty_mod+w>shift+p show_first_command_output_on_screen
+
+ map kitty_mod+w>_ toggle_layout stack
+ map kitty_mod+w>= goto_layout fat
+ map kitty_mod+w>g goto_layout grid
+
+ map kitty_mod+w>c close_window
+ map kitty_mod+w>j neighboring_window bottom
+ map kitty_mod+w>k neighboring_window top
+ map kitty_mod+w>h neighboring_window left
+ map kitty_mod+w>l neighboring_window right
+ map kitty_mod+w>e open_url_with_hints
+ map kitty_mod+w>space move_window_to_top
+ map kitty_mod+w>shift+k move_window_forward
+ map kitty_mod+w>shift+j move_window_backward
+
+ map kitty_mod+enter new_window
+ map kitty_mod+r load_config_file
+ map cmd+c copy_to_clipboard
+ map cmd+v paste_from_clipboard
+ map cmd+q quit
+
+ ## name: Kanagawa
+ ## license: MIT
+ ## author: Tommaso Laurenzi
+ ## upstream: https://github.com/rebelot/kanagawa.nvim/
+
+
+ background #1F1F28
+ foreground #DCD7BA
+ selection_background #2D4F67
+ selection_foreground #C8C093
+ url_color #72A7BC
+ cursor #C8C093
+
+ # Tabs
+ active_tab_background #1F1F28
+ active_tab_foreground #C8C093
+ inactive_tab_background #1F1F28
+ inactive_tab_foreground #727169
+ #tab_bar_background #15161E
+
+ # normal
+ color0 #16161D
+ color1 #C34043
+ color2 #76946A
+ color3 #C0A36E
+ color4 #7E9CD8
+ color5 #957FB8
+ color6 #6A9589
+ color7 #C8C093
+
+ # bright
+ color8 #727169
+ color9 #E82424
+ color10 #98BB6C
+ color11 #E6C384
+ color12 #7FB4CA
+ color13 #938AA9
+ color14 #7AA89F
+ color15 #DCD7BA
+
+
+ # extended colors
+ color16 #FFA066
+ color17 #FF5D62
+ '';
+ };
};
networking.hostName = "work";
@@ -206,7 +306,7 @@
''}
'';
};
- services.sketchybar.enable = false;
+ services.sketchybar.enable = true;
services.yabai = {
enable = false;
package = pkgs.yabai;
@@ -274,7 +374,7 @@
# The platform the configuration will be used on.
nixpkgs.hostPlatform = "aarch64-darwin";
- users.users.${my.username} = {
+ users.users.${ivi.username} = {
shell = pkgs.zsh;
};
environment.shells = [pkgs.bashInteractive pkgs.zsh];