mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
xautolock: fick locker script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
sshPort = 22022;
|
||||
sshKey = {
|
||||
@@ -17,6 +17,8 @@ in {
|
||||
passwordAuthentication = false;
|
||||
};
|
||||
|
||||
users.motd = "Welcome to ${config.networking.hostName}!";
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
sshKey.homeros
|
||||
sshKey.scardanelli
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
xlockModes = lib.concatStringsSep "\\n" [
|
||||
"braid"
|
||||
# "braid"
|
||||
"galaxy"
|
||||
"lightning"
|
||||
"matrix"
|
||||
# "matrix"
|
||||
"pyro2"
|
||||
"space"
|
||||
"star"
|
||||
];
|
||||
my-xlock = pkgs.unstable.writers.writeDash "xlock" ''
|
||||
my-xlock = pkgs.unstable.writers.writeDashBin "xlock" ''
|
||||
MODE=$(printf "${xlockModes}" | shuf -n 1)
|
||||
|
||||
${pkgs.xlockmore}/bin/xlock \
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
'';
|
||||
promptInit = ''
|
||||
promptInit = with config.niveum; ''
|
||||
autoload -Uz vcs_info
|
||||
zstyle ':vcs_info:*' enable git
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
@@ -76,9 +76,9 @@
|
||||
vcs_info
|
||||
RPROMPT="$vcs_info_msg_0_"
|
||||
if [[ -n $IN_NIX_SHELL ]]; then
|
||||
PROMPT='%B%~%b %(?.%F{green}.%F{red})λ%f '
|
||||
PROMPT='%B%~%b %(?.%F{${promptColours.success}}.%F{${promptColours.failure}})λ%f '
|
||||
else
|
||||
PROMPT='%B%~%b %(?.%F{green}.%F{red})%#%f '
|
||||
PROMPT='%B%~%b %(?.%F{${promptColours.success}}.%F{${promptColours.failure}})%#%f '
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,15 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
networkInterfaces.wireless = mkOption { type = types.str; };
|
||||
|
||||
promptColours =
|
||||
let colours16 = types.enum [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
||||
in {
|
||||
success = mkOption { type = colours16; default = "green"; };
|
||||
failure = mkOption { type = colours16; default = "red"; };
|
||||
};
|
||||
|
||||
fonts = {
|
||||
terminal = mkOption { type = my-types.font; };
|
||||
ui = mkOption { type = my-types.font; };
|
||||
|
||||
Reference in New Issue
Block a user