cursed state...

This commit is contained in:
Forestcat 2024-01-19 00:22:28 +01:00
parent 176f665484
commit ea54dbe99c
2 changed files with 49 additions and 5 deletions

View file

@ -70,6 +70,8 @@
shellAliases = { shellAliases = {
ll = "ls -l"; ll = "ls -l";
cheetah = "curl -d 'Lena: Done ' https://ntfy.forestcat.org/cheetah"; cheetah = "curl -d 'Lena: Done ' https://ntfy.forestcat.org/cheetah";
reboot = "systemctl reboot";
rebuild = "sudo nixos-rebuild switch --flake ~/nix-configs/#myNixos --show-trace";
}; };
}; };

View file

@ -50,9 +50,23 @@
xkbVariant = ""; xkbVariant = "";
}; };
programs.xss-lock.enable = true;
# programs.xss-lock.lockerCommand= "${pkgs.i3lock}/bin/i3lock";
programs.xss-lock.lockerCommand= "${pkgs.i3lock-color}/bin/i3lock-color --insidever-color='#00000000' --ringver-color='#00564dE6' --insidewrong-color='#ffffff22' --ringwrong-color='#880000bb' --inside-color='#00000000' --ring-color='#00897bE6' --line-color='#00000000' --separator-color='#00897bE6' --verif-color='#00897bE6' --wrong-color='#00897bE6' --layout-color='#00897bE6' --keyhl-color='#880000bb' --bshl-color='#880000bb' --screen 1 --blur 8 --indicator";
# Configure console keymap # Configure console keymap
console.keyMap = "de"; console.keyMap = "de";
# TODO: setup automounting of nextcloud
# services.davfs2.enable = true;
# fileSystems."/home/forestcat/nextcloud" = {
# device = "https://cloud.hamburg.ccc.de/remote.php/dav/files/forestcat/";
# mountPoint = "/home/forestcat/nextcloud";
# fsType = "davfs";
# options = ["user" "rw" "auto"];
# };
# Enabling xbindkeys service for special media keys # Enabling xbindkeys service for special media keys
systemd.user.services.xbindkeys.enable = true; systemd.user.services.xbindkeys.enable = true;
@ -66,7 +80,7 @@
users.users.forestcat = { users.users.forestcat = {
isNormalUser = true; isNormalUser = true;
description = "forestcat"; description = "forestcat";
extraGroups = ["networkmanager" "wheel" "audio"]; extraGroups = ["networkmanager" "wheel" "audio" "davfs2"];
packages = with pkgs; []; packages = with pkgs; [];
}; };
users.defaultUserShell = pkgs.nushellFull; users.defaultUserShell = pkgs.nushellFull;
@ -75,8 +89,15 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
#adding font awesome #adding font awesome
fonts.packages = [ fonts.packages = with pkgs; [
pkgs.font-awesome font-awesome
font-awesome_5
nerdfonts
nerdfix
material-symbols
terminus-nerdfont
inconsolata-nerdfont
fira-code-nerdfont
]; ];
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
@ -84,7 +105,11 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# System Packages go here # System Packages go here
pkgs.brave pkgs.brave
pkgs.font-awesome pkgs.xss-lock
pkgs.davfs2
pkgs.htop
pkgs.picom-jonaburg
pkgs.spotify
pkgs.xdotool pkgs.xdotool
pkgs.vscode pkgs.vscode
pkgs.scrot pkgs.scrot
@ -94,9 +119,10 @@
pkgs.signal-desktop pkgs.signal-desktop
pkgs.tree pkgs.tree
pkgs.rofi pkgs.rofi
pkgs.i3blocks # pkgs.i3blocks
pkgs.polybarFull pkgs.polybarFull
pkgs.i3 pkgs.i3
pkgs.i3lock-color
pkgs.prismlauncher pkgs.prismlauncher
pkgs.alejandra pkgs.alejandra
pkgs.keepassxc pkgs.keepassxc
@ -147,6 +173,22 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;
systemd.services."suspend@".unitConfig = {
Before = [ "sleep.target" ];
Description = "suspend actions";
};
systemd.services."suspend@".serviceConfig = {
User = "%I";
Type = "forking";
environment = "DISPLAY=:0";
ExecStartPre = "-/usr/bin/pkill -u %u unison ; /usr/local/bin/music.sh stop";
ExecStart = "/home/forestcat/.config/i3/scripts/lock2.sh";
ExecStartPost = "/usr/bin/sleep 1";
};
systemd.services."suspend@".wantedBy = [ "sleep.target" ];
systemd.services."suspend@forestcat".enable = true;
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];