first commit
This commit is contained in:
16
home/programs/alacritty/default.nix
Normal file
16
home/programs/alacritty/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
env = {
|
||||
"TERM" = "xterm-256color";
|
||||
};
|
||||
|
||||
font = {
|
||||
size = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
BIN
home/programs/background_temp.jpeg
Normal file
BIN
home/programs/background_temp.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 MiB |
10
home/programs/default.nix
Normal file
10
home/programs/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
./zathura.nix
|
||||
./wallpaper.nix
|
||||
./zsh
|
||||
./alacritty
|
||||
./xmonad
|
||||
];
|
||||
}
|
||||
9
home/programs/git.nix
Normal file
9
home/programs/git.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "4Lost";
|
||||
userEmail = "elias.schroeter@e.email";
|
||||
};
|
||||
}
|
||||
11
home/programs/wallpaper.nix
Normal file
11
home/programs/wallpaper.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.feh = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
xsession.initExtra = ''
|
||||
${pkgs.feh}/bin/feh --bg-fill --no-fehbg "background_temp.jpeg"
|
||||
'';
|
||||
}
|
||||
16
home/programs/xmonad/default.nix
Normal file
16
home/programs/xmonad/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
xsession = {
|
||||
enable = true;
|
||||
windowManager = {
|
||||
xmonad = {
|
||||
enable = true;
|
||||
enableContribAndExtras = true;
|
||||
config = ./src/xmonad.hs;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = [ pkgs.xmobar ];
|
||||
}
|
||||
31
home/programs/xmonad/src/.gitignore
vendored
Normal file
31
home/programs/xmonad/src/.gitignore
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/haskell
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=haskell
|
||||
|
||||
### Haskell ###
|
||||
dist
|
||||
dist-*
|
||||
cabal-dev
|
||||
*.o
|
||||
*.hi
|
||||
*.hie
|
||||
*.chi
|
||||
*.chs.h
|
||||
*.dyn_o
|
||||
*.dyn_hi
|
||||
.hpc
|
||||
.hsenv
|
||||
.cabal-sandbox/
|
||||
cabal.sandbox.config
|
||||
*.prof
|
||||
*.aux
|
||||
*.hp
|
||||
*.eventlog
|
||||
.stack-work/
|
||||
cabal.project.local
|
||||
cabal.project.local~
|
||||
.HTF/
|
||||
.ghc.environment.*
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/haskell
|
||||
|
||||
|
||||
5
home/programs/xmonad/src/xmonad.hs
Normal file
5
home/programs/xmonad/src/xmonad.hs
Normal file
@@ -0,0 +1,5 @@
|
||||
import XMonad
|
||||
|
||||
main = xmonad def
|
||||
{ terminal = "alacritty" }
|
||||
|
||||
13
home/programs/zathura.nix
Normal file
13
home/programs/zathura.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
synctex-editor-command = ''
|
||||
nvim --headless -c "VimtexInverseSearch %l '%f'"
|
||||
'';
|
||||
synctex = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
32
home/programs/zsh/default.nix
Normal file
32
home/programs/zsh/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
python3
|
||||
zsh-nix-shell
|
||||
nix-zsh-completions
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
update = "sudo nixos-rebuild switch";
|
||||
};
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
enableVteIntegration = true;
|
||||
history = {
|
||||
expireDuplicatesFirst = true;
|
||||
size = 100000000000;
|
||||
path = "${config.xdg.dataHome}/zsh/zsh/history";
|
||||
};
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
initExtra = ''
|
||||
PROMPT='%F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# '
|
||||
RPROMPT='[%F{yellow}%?%f]'
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user