1
0
Fork 0

Update 2020-01-27

This commit is contained in:
Nguyễn Gia Phong 2020-01-27 18:30:17 +07:00
parent 825cbfc87e
commit db2a042fba
4 changed files with 26 additions and 18 deletions

2
debian/.bashrc vendored
View File

@ -102,7 +102,7 @@ alias backup='rsync -avh --delete /home/ /data/Home/'
eval $(thefuck --alias)
function ipfs-cors {
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://0.0.0.0:5001", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://127.0.0.1:8080", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
systemctl restart --user ipfs
}

View File

@ -1,3 +1,3 @@
gtk-font-name="Latin Modern Sans 12"
gtk-key-theme-name="Emacs"
gtk-modules=appmenu-gtk-module
gtk-modules=appmenu-gtk-module

View File

@ -14,11 +14,13 @@
boot.loader.systemd-boot.enable = true;
networking.hostName = "nix"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Enables wireless support via wpa_supplicant.
# networking.wireless.enable = true;
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
# The global useDHCP flag is deprecated,
# therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future,
# so this generated config replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp1s0.useDHCP = true;
networking.interfaces.wlp2s0.useDHCP = true;
@ -32,35 +34,41 @@
# Select internationalisation properties.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ table table-others ];
ibus.engines = with pkgs.ibus-engines; [ table table-others
typing-booster ];
};
};
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# Set your time zone.
time.timeZone = "Asia/Ho_Chi_Minh";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; with kdeApplications; [
ack htop mc stow
alacritty emacs git nix-prefetch-github
ack htop mc stow zip
alacritty emacs git nix-prefetch-scripts pkg-config
alure2 libogg libsndfile libvorbis openal opusfile
aria2 curl firefox ipfs thunderbird w3m wget
ark ktorrent libreoffice okular spectacle
audaciousQt5 ffmpeg-full mpv
audaciousQt5 ffmpeg-full mpv zbar
azimuth duckmarines freedink gweled liquidwar lugaru tbe xonotic
blender frei0r glfw gmic-qt-krita kdenlive krita simplescreenrecorder
cmake gcc gdb man-pages posix_man_pages
dict dictdDBs.eng2fra dictdDBs.fra2eng dictdDBs.wiktionary dictdDBs.wordnet
efibootmgr refind
gcc gdb man-pages posix_man_pages
go guile jdk12 lua octave sbcl
go guile jdk12 lua octave rakudo rlwrap sbcl
lmodern texlive.combined.scheme-full
(python38.withPackages(ps: with ps;
[ pip setuptools twine virtualenvwrapper wheel
numpy moderngl pillow pygame ]))
(python38.withPackages(ps: with ps; [
flake8 pip setuptools tox twine wheel
cython numpy moderngl pillow pygame ]))
];
# Some programs need SUID wrappers, can be configured further or are

View File

@ -348,7 +348,7 @@ map ! console shell%space
map @ console -p6 shell %%s
map # console shell -p%space
map s console shell%space
map r chain draw_possible_programs; console open_with%%space
map r chain draw_possible_programs; console open_with%space
map f console find%space
map cd console cd%space