Last active
February 15, 2023 18:02
-
-
Save boj/0edce172823d643417f12fe85373d3a9 to your computer and use it in GitHub Desktop.
VMWare NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .config/termite/config | |
[options] | |
font = Liberation Mono 10 | |
[colors] | |
foreground = #FFFFFF | |
background = #000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .config/fish/config.fish | |
set -x LC_ALL en_US.UTF-8 | |
set -x LANG en_US.UTF-8 | |
uncl | |
xset r rate 200 30 | |
if not pgrep -x gpg-agent > /dev/null | |
gpg-agent --homedir /home/bojo/.gnupg --daemon --enable-ssh-support | |
else | |
gpg-connect-agent updatestartuptty /bye > /dev/null | |
end | |
set -u SSH_AGENT_PID | |
set -x GPG_TTY (tty) | |
set -x GPG_AGENT_INFO $HOME/.gnupg/S.gpg-agent | |
set -x SSH_AUTH_SOCK $HOME/.gnupg/S.gpg-agent.ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /etc/nixos/configuration.nix | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ | |
./hardware-configuration.nix | |
]; | |
boot.loader.grub.enable = true; | |
boot.loader.grub.version = 2; | |
boot.loader.grub.device = "/dev/sda"; | |
networking.hostName = "ahoyana"; | |
i18n = { | |
consoleFont = "Lat2-Terminus16"; | |
consoleKeyMap = "jp106"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
time.timeZone = "Asia/Tokyo"; | |
environment.systemPackages = with pkgs; [ | |
# system | |
gcc | |
gnumake | |
usbutils | |
# virtualization | |
open-vm-tools | |
# editor | |
emacs | |
vim | |
# editor | |
emacs | |
vim | |
# development | |
ansible2 | |
git | |
kubernetes | |
stack | |
terraform | |
# pgp | |
gnupg | |
libu2f-host | |
opensc | |
pcsctools | |
pinentry_ncurses | |
yubikey-personalization | |
# terminal | |
fish | |
termite | |
tmux | |
# misc | |
aspell | |
aspellDicts.en | |
curl | |
dmenu | |
htop | |
unclutter | |
wget | |
]; | |
services = { | |
pcscd.enable = true; | |
vmwareGuest.enable = true; | |
# openssh.enable = true; | |
xserver = { | |
enable = true; | |
layout = "jp"; | |
windowManager.xmonad.enable = true; | |
windowManager.default = "xmonad"; | |
windowManager.xmonad.enableContribAndExtras = true; | |
desktopManager.xterm.enable = false; | |
desktopManager.default = "none"; | |
displayManager = { | |
auto = { | |
enable = true; | |
user = "bojo"; | |
}; | |
}; | |
}; | |
}; | |
fonts = { | |
enableFontDir = true; | |
enableGhostscriptFonts = true; | |
fonts = with pkgs; [ | |
hack-font | |
source-code-pro | |
unifont | |
]; | |
}; | |
virtualisation = { | |
docker.enable = true; | |
}; | |
users.extraUsers.bojo = { | |
isNormalUser = true; | |
extraGroups = ["wheel" "input" "audio" "video" "docker"]; | |
uid = 1000; | |
}; | |
system.stateVersion = "16.03"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .gnupg/gpg-agent.conf | |
pinentry-program /nix/store/yy175j90bils8674gi9j5r3kwgvg9964-system-path/bin/pinentry | |
enable-ssh-support | |
default-cache-ttl 600 | |
max-cache-ttl 7200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .gnupg/gpg.conf | |
require-cross-certification | |
use-agent | |
keyserver hkps://hkps.pool.sks-keyservers.net | |
personal-cipher-preferences AES256 AES192 AES CAST5 | |
personal-digest-preferences SHA512 SHA384 SHA256 SHA224 | |
cert-digest-algo SHA512 | |
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .xmonad/xmonad.hs | |
import XMonad | |
import XMonad.Layout.Spacing | |
myTerminal = "termite -e fish" | |
myLayoutHook = spacing 2 $ Tall 1 (3 / 100) (1/2) | |
myNormalBorderColor = "#3BB9FF" | |
myFocusedBorderColor = "#FFA62F" | |
main = xmonad defaultConfig | |
{ terminal = myTerminal | |
, layoutHook = myLayoutHook | |
, normalBorderColor = myNormalBorderColor | |
, focusedBorderColor = myFocusedBorderColor | |
, focusFollowsMouse = False | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment