This commit is contained in:
Daniel Ziltener 2024-08-21 18:18:08 +02:00
parent f769a25a96
commit 2942556cbc
Signed by: zilti
GPG key ID: B38976E82C9DAE42
3 changed files with 32 additions and 17 deletions

View file

@ -34,9 +34,13 @@ setup-fido:
setup-desktop:
bw config server https://vaultwarden.lyrion.ch
echo "Bitwarden Login"
bw login | grep items | awk '{print $$6}' > ~/.vw-session-key
install:
touch ~/.vw-session-key
touch ~/.config/hypr/monitors.conf
nix-collect-garbage --delete-old
env NIXPKGS_ALLOW_BROKEN=1 nixos-rebuild switch --flake .#ziltis-desktop --impure --show-trace
sudo env NIXPKGS_ALLOW_BROKEN=1 nixos-rebuild switch --flake .#ziltis-desktop --impure --show-trace
# end

View file

@ -54,24 +54,34 @@
# Enable the X11 windowing system.
# services.xserver.enable = true;
services.xserver = {
enable = true;
xkb.layout = "de";
xkb.options = "eurosign;e,caps:escape";
};
# services.xserver = {
# enable = true;
# xkb.layout = "de";
# xkb.options = "eurosign;e,caps:escape";
# };
services.displayManager = {
sddm = {
enable = true;
wayland.enable = true;
settings = {
Autologin = {
User = "zilti";
Session = "hyprland";
};
services.greetd = {
enable = true;
settings = {
default_session = {
command = "Hyprland";
user = "zilti";
};
};
vt = 7;
};
# services.displayManager = {
# sddm = {
# enable = true;
# wayland.enable = true;
# settings = {
# Autologin = {
# User = "zilti";
# Session = "Hyprland";
# };
# };
# };
# };
services.libinput.enable = true;

View file

@ -92,6 +92,7 @@ args@{ config, pkgs, split-monitor-workspaces, flatpaks, ... }:
CHICKEN_INSTALL_PREFIX = "/home/zilti/.local";
RTC_USE_PIPEWIRE = "true";
XCURSOR_SIZE = 48;
BW_SESSION = (builtins.readFile "${config.home.homeDirectory}/.vw-session-key");
};
accounts = {
@ -236,8 +237,8 @@ args@{ config, pkgs, split-monitor-workspaces, flatpaks, ... }:
shopt -s extglob
shopt -s globstar
shopt -s checkjobs
eval "$(${pkgs.liquidprompt}/bin/liquidprompt)"
eval "$(${pkgs.liquidprompt}/share/liquidprompt/themes/alternate_vcs/alternate_vcs.theme)"
eval "$(cat ${pkgs.liquidprompt}/bin/liquidprompt)"
eval "$(cat ${pkgs.liquidprompt}/share/liquidprompt/themes/alternate_vcs/alternate_vcs.theme)"
'';
};