This commit is contained in:
2024-03-05 14:36:32 +01:00
parent 9367fed109
commit 4a37c5afd7
6 changed files with 35 additions and 19 deletions

View File

@@ -31,10 +31,6 @@
# Activate Flakes.
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
services = {
# Set XServer Options.
xserver = {
@@ -79,15 +75,37 @@
alacritty
dmenu
acpilight # For setting Backlight.
gnome.nautilus
lxqt.lxqt-policykit # provides a default authentication client for policykit
];
# permissions for acpilight
services.udev = {
enable = true;
extraRules = ''
SUBSYSTEM=="backlight", ACTION=="add", \
RUN+="${pkgs.coreutils-full}/bin/chgrp video /sys/class/backlight/%k/brightness", \
RUN+="${pkgs.coreutils-full}/bin/chmod g+w /sys/class/backlight/%k/brightness"
'';
};
nixpkgs.config.allowUnfree = true;
# Enable zsh for setting it as shell for users.
programs.zsh.enable = true;
# Audio
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Set stateVersion. Leave it as set.
system.stateVersion = "23.11";
}

View File

@@ -17,15 +17,12 @@
# system tools
lm_sensors
arandr
pavucontrol
obsidian
lean4
# noch ned conf
#betterbird
#bitwarden
# dropbox
firefox
#signal-desktop
#telegram-desktop
# zathura
];
# environment.shells = [ pkgs.zsh ];

View File

@@ -5,5 +5,9 @@
enable = true;
userName = "4Lost";
userEmail = "elias.schroeter@e.email";
signing = {
key = "0x99D2EF975FE523CC";
signByDefault = true;
};
};
}

View File

@@ -3,8 +3,8 @@ return {
"epwalsh/obsidian.nvim",
lazy = true,
event = {
"BufReadPre home/elias/dropbox/",
"BufNewFile home/elias/dropbox/",
"BufReadPre /home/elias/Dropbox/IJB/IJB-Notes/*",
"BufNewFile /home/elias/Dropbox/IJB/IJB-Notes/*",
},
dependencies = {
"nvim-lua/plenary.nvim",
@@ -17,8 +17,8 @@ return {
require("obsidian").setup({
workspaces = {
{
name = "COe",
path = "/run/user/1000/gvfs/smb-share:server=192.168.0.100,share=administration/NetzwerkTeam/wiki",
name = "IJB-Notes",
path = "/home/elias/Dropbox/IJB/IJB-Notes",
},
},
})

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ oranchelo-icon-theme nerdfonts pass xclip ];
home.packages = with pkgs; [ oranchelo-icon-theme nerdfonts xclip ];
xsession.initExtra = "setxkbmap de"; # rofi pass needs this to be set
@@ -29,8 +29,6 @@
EDITOR='rofi-sensible-terminal -e vim'
clibpoard_backend=xclip
clip=clipboard
password_length=32
default_user="$\{ROFI_PASS_DEFAULT_USER-$(whoami)\}"
'';
};
};

View File

@@ -14,7 +14,6 @@ main = xmonad . ewmhFullscreen . ewmh . xmobarProp $ def
}
`additionalKeysP`
[ ("M-p", spawn "rofi -show \"drun\"")
, ("M-S-p", spawn "rofi-pass")
, ("M-b", spawn "firefox")
, ("<XF86MonBrightnessUp>", spawn "xbacklight -inc 10")
, ("<XF86MonBrightnessDown>", spawn "xbacklight -dec 10")