about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/.Xdefaults32
-rw-r--r--nixos/.bashrc67
l---------nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer1
l---------nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer1
-rw-r--r--nixos/.config/systemd/user/default.target.wants/redshift.service0
-rw-r--r--nixos/.config/systemd/user/mbsync-legacy.service12
-rw-r--r--nixos/.config/systemd/user/mbsync-legacy.timer11
-rw-r--r--nixos/.config/systemd/user/mbsync-primary.service12
-rw-r--r--nixos/.config/systemd/user/mbsync-primary.timer11
-rw-r--r--nixos/.profile23
-rw-r--r--nixos/.xinitrc11
11 files changed, 181 insertions, 0 deletions
diff --git a/nixos/.Xdefaults b/nixos/.Xdefaults
new file mode 100644
index 0000000..1a3cfc1
--- /dev/null
+++ b/nixos/.Xdefaults
@@ -0,0 +1,32 @@
+*.cursorColor:  #fce8c3
+*.pointerColor: #fce8c3
+*.foreground:   #fce8c3
+*.background:   #1c1b19
+*.color0:       #1c1b19
+*.color1:       #ef2f27
+*.color2:       #519f50
+*.color3:       #fbb829
+*.color4:       #2c78bf
+*.color5:       #e02c6d
+*.color6:       #0aaeb3
+*.color7:       #d0bfa1
+*.color8:       #918175
+*.color9:       #f75341
+*.color10:      #98bc37
+*.color11:      #fed06e
+*.color12:      #68A8E4
+*.color13:      #ff5c8f
+*.color14:      #53fde9
+*.color15:      #fce8c3
+
+URxvt.loginShell:   true
+URxvt.scrollBar:    false
+URxvt.saveLines:    65535
+URxvt.cursorBlink:  false
+URxvt.visualBell:   true
+URxvt.jumpScroll:   true
+
+URxvt.font: xft:Latin Modern Mono:size=15:autohint=true
+URxvt.termName: rxvt-unicode-256color
+URxvt.perl-ext-common: default,font-size
+URxvt.font-size.step: 1
diff --git a/nixos/.bashrc b/nixos/.bashrc
new file mode 100644
index 0000000..c05cab9
--- /dev/null
+++ b/nixos/.bashrc
@@ -0,0 +1,67 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+# don't put duplicate lines or lines starting with space in the history.
+# See bash(1) for more options
+HISTCONTROL=ignoreboth
+
+# append to the history file, don't overwrite it
+shopt -s histappend
+
+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
+HISTSIZE=32767
+HISTFILESIZE=65536
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# If set, the pattern "**" used in a pathname expansion context will
+# match all files and zero or more directories and subdirectories.
+shopt -s globstar
+
+# make less more friendly for non-text input files, see lesspipe(1)
+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# some more ls aliases
+alias ll='exa -l'
+alias la='exa -a'
+
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+alias l='$(fc -ln -1) | less -r'
+alias r=ranger
+alias gcc='gcc -Wall -Wextra -pedantic -O2 -lm'
+alias g++='g++ -Wall -Wextra -pedantic -O2 -lm'
+alias x='cd $HOME && startx && cd -'
+alias backup='rsync -avh --delete /home/ /data/Home/'
+
+function ipfs-cors {
+  ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://127.0.0.1:8000", "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
+}
+
+# enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc).
+if ! shopt -oq posix; then
+  if [ -f /usr/share/bash-completion/bash_completion ]; then
+    . /usr/share/bash-completion/bash_completion
+  elif [ -f /etc/bash_completion ]; then
+    . /etc/bash_completion
+  fi
+fi
+
+stty -ixon
+# emacs input
+set -o emacs
+
+export EDITOR=vim
+export PAGER='less -r'
diff --git a/nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer b/nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer
new file mode 120000
index 0000000..d6a74a0
--- /dev/null
+++ b/nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer
@@ -0,0 +1 @@
+/home/sea/.config/systemd/user/mbsync-legacy.timer
\ No newline at end of file
diff --git a/nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer b/nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer
new file mode 120000
index 0000000..fdf6883
--- /dev/null
+++ b/nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer
@@ -0,0 +1 @@
+/home/sea/.config/systemd/user/mbsync-primary.timer
\ No newline at end of file
diff --git a/nixos/.config/systemd/user/default.target.wants/redshift.service b/nixos/.config/systemd/user/default.target.wants/redshift.service
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/nixos/.config/systemd/user/default.target.wants/redshift.service
diff --git a/nixos/.config/systemd/user/mbsync-legacy.service b/nixos/.config/systemd/user/mbsync-legacy.service
new file mode 100644
index 0000000..e0954de
--- /dev/null
+++ b/nixos/.config/systemd/user/mbsync-legacy.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Synchronize IMAP and MailDir for legacy account
+Documentation=man:mbsync(1)
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/mbsync legacy
+Type=oneshot
+
+[Install]
+WantedBy=default.target
diff --git a/nixos/.config/systemd/user/mbsync-legacy.timer b/nixos/.config/systemd/user/mbsync-legacy.timer
new file mode 100644
index 0000000..3ea535a
--- /dev/null
+++ b/nixos/.config/systemd/user/mbsync-legacy.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Timer for legacy accound mbsync
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Timer]
+OnBootSec=1m
+OnUnitInactiveSec=1m
+
+[Install]
+WantedBy=default.target
diff --git a/nixos/.config/systemd/user/mbsync-primary.service b/nixos/.config/systemd/user/mbsync-primary.service
new file mode 100644
index 0000000..8ce0e6f
--- /dev/null
+++ b/nixos/.config/systemd/user/mbsync-primary.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Synchronize IMAP and MailDir for primary account
+Documentation=man:mbsync(1)
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/mbsync primary
+Type=oneshot
+
+[Install]
+WantedBy=default.target
diff --git a/nixos/.config/systemd/user/mbsync-primary.timer b/nixos/.config/systemd/user/mbsync-primary.timer
new file mode 100644
index 0000000..a0f4151
--- /dev/null
+++ b/nixos/.config/systemd/user/mbsync-primary.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Timer for primary accound mbsync
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Timer]
+OnBootSec=1m
+OnUnitInactiveSec=1m
+
+[Install]
+WantedBy=default.target
diff --git a/nixos/.profile b/nixos/.profile
new file mode 100644
index 0000000..9de9eb7
--- /dev/null
+++ b/nixos/.profile
@@ -0,0 +1,23 @@
+# ~/.profile: executed by the command interpreter for login shells.
+# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
+# exists.
+# see /usr/share/doc/bash/examples/startup-files for examples.
+# the files are located in the bash-doc package.
+
+# the default umask is set in /etc/profile; for setting the umask
+# for ssh logins, install and configure the libpam-umask package.
+#umask 022
+
+export PATH="$HOME/.local/bin:$PATH"
+export MANPATH="$HOME/.local/share/man:$MANPATH"
+export XMODIFIERS=@im=ibus
+export QT_IM_MODULE=ibus
+export QT_QPA_PLATFORMTHEME=qt5ct
+
+# if running bash
+if [ -n "$BASH_VERSION" ]; then
+    # include .bashrc if it exists
+    if [ -f "$HOME/.bashrc" ]; then
+        . "$HOME/.bashrc"
+    fi
+fi
diff --git a/nixos/.xinitrc b/nixos/.xinitrc
new file mode 100644
index 0000000..bb3847e
--- /dev/null
+++ b/nixos/.xinitrc
@@ -0,0 +1,11 @@
+#!/bin/sh
+mate-power-manager &
+ibus-daemon -drx
+nm-applet &
+keynav &
+audacious &
+autocutsel -fork
+autocutsel -selection PRIMARY -fork
+#diodon &
+autorandr --change
+exec awesome