first commit

This commit is contained in:
2024-02-29 12:04:20 +01:00
commit b8f1a62bdd
15 changed files with 685 additions and 0 deletions

56
home/default.nix Normal file
View File

@@ -0,0 +1,56 @@
{ config, pkgs, ... }:
{
imports = [
./programs
];
home = {
username = "elias";
homeDirectory = "/home/elias";
packages = with pkgs; [
# archives
unzip
zip
# misc
tree
which
# system tools
lm_sensors
# extras
betterbird
bitwarden
# dropbox
firefox
signal-desktop
telegram-desktop
xfce.thunar
# zathura
xfce.xfconf
];
# environment.shells = [ pkgs.zsh ];
# environment.variables.EDITOR = "nvim";
# environment.pathsToLink = [ "/share/zsh" ];
stateVersion = "23.11";
};
programs = {
home-manager.enable = true;
# thunar.enable = true;
# xfconf.enable = true;
# thunar.plugins = with pkgs.xfce; [
# thunar-archive-plugin
# thunar-volman
# ];
};
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [ "electron-25.9.0" ];
};
# services.gvfs.enable = true;
# services.tumbler.enable = true;
}

View File

@@ -0,0 +1,16 @@
{ ... }:
{
programs.alacritty = {
enable = true;
settings = {
env = {
"TERM" = "xterm-256color";
};
font = {
size = 10;
};
};
};
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 MiB

10
home/programs/default.nix Normal file
View File

@@ -0,0 +1,10 @@
{
imports = [
./git.nix
./zathura.nix
./wallpaper.nix
./zsh
./alacritty
./xmonad
];
}

9
home/programs/git.nix Normal file
View File

@@ -0,0 +1,9 @@
{ ... }:
{
programs.git = {
enable = true;
userName = "4Lost";
userEmail = "elias.schroeter@e.email";
};
}

View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
programs.feh = {
enable = true;
};
xsession.initExtra = ''
${pkgs.feh}/bin/feh --bg-fill --no-fehbg "background_temp.jpeg"
'';
}

View 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
View 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

View File

@@ -0,0 +1,5 @@
import XMonad
main = xmonad def
{ terminal = "alacritty" }

13
home/programs/zathura.nix Normal file
View File

@@ -0,0 +1,13 @@
{ ... }:
{
programs.zathura = {
enable = true;
options = {
synctex-editor-command = ''
nvim --headless -c "VimtexInverseSearch %l '%f'"
'';
synctex = true;
};
};
}

View 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]'
'';
};
}