Switch to unstable + xidlehook
This commit is contained in:
parent
b3688ae574
commit
82530df76e
12 changed files with 53 additions and 59 deletions
|
|
@ -1,9 +1,8 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let
|
||||
unstable = import <nixpkgs> {};
|
||||
tomlGenerate = (pkgs.formats.toml {}).generate "bottom-toml";
|
||||
in {
|
||||
home.packages = with unstable; [ bottom ];
|
||||
home.packages = with pkgs; [ bottom ];
|
||||
xdg.configFile."bottom/bottom.toml".source = tomlGenerate {
|
||||
"flags" = {
|
||||
"left_legend" = true;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
nixpkgs = import <nixpkgs> {};
|
||||
kakCmd = "kak";
|
||||
|
||||
rustPlugins = with pkgs; [
|
||||
|
|
@ -125,9 +124,6 @@ in
|
|||
kakounePlugins.kak-lsp
|
||||
kakounePlugins.powerline-kak
|
||||
kakounePlugins.prelude-kak
|
||||
]
|
||||
) ++ (
|
||||
with nixpkgs; [
|
||||
kakounePlugins.connect-kak
|
||||
]
|
||||
) ++ rustPlugins ++ cppPlugins ++ pythonPlugins ++ latexPlugins ++ nixPlugins ++ spellingPlugins ++ dataFormats;
|
||||
|
|
|
|||
7
modules/mangohud.nix
Normal file
7
modules/mangohud.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.mangohud = {
|
||||
enable = true;
|
||||
enableSessionWide = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,11 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
nixpkgs = import nixpkgs {};
|
||||
in
|
||||
{
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
# package = nixpkgs.obs-studio;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
# obs-linuxbrowser
|
||||
# obs-gstreamer
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ let
|
|||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
ardour
|
||||
# ardour
|
||||
|
||||
carla
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ in
|
|||
boops
|
||||
geonkick
|
||||
lsp-plugins
|
||||
noise-repellent
|
||||
# noise-repellent
|
||||
speech-denoiser
|
||||
stochas
|
||||
surge
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.screen-locker = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
lockCmd = "${pkgs.lockscreen}";
|
||||
inactiveInterval = 10; # miutes
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
home.packages = with pkgs; [
|
||||
# WEB
|
||||
postman
|
||||
burpsuite
|
||||
# burpsuite
|
||||
httpie
|
||||
|
||||
# REVERSING
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
program = "${pkgs.xidlehook}/bin/xidlehook";
|
||||
lockCmd = escapeShellArg '' ${pkgs.i3lock-color}/bin/i3lock-color -B 10 --greeter-text="Welcome back $USER" --greeter-color="#ffffff" --date-color="#ffffff" --time-color="#ffffff" '';
|
||||
script = concatStringsSep " " [
|
||||
''${program}''
|
||||
''--not-when-fullscreen''
|
||||
''--not-when-audio''
|
||||
''--timer 300 ${lockCmd} ""''
|
||||
];
|
||||
in
|
||||
{
|
||||
systemd.user.services.xidlehook = {
|
||||
Unit = {
|
||||
Description = "xidlehook service";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
ConditionEnvironment = [ "DISPLAY" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${script}";
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
}
|
||||
33
modules/xidlehook.nix
Normal file
33
modules/xidlehook.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
xscreensaverCmd = "${pkgs.xscreensaver}/bin/xscreensaver-command -activate";
|
||||
lockCmd = "${pkgs.lockscreen}";
|
||||
in
|
||||
{
|
||||
services.xidlehook = {
|
||||
enable = true;
|
||||
# not-when-audio = false;
|
||||
not-when-fullscreen = true;
|
||||
timers = [
|
||||
{
|
||||
command = lockCmd;
|
||||
delay = 120;
|
||||
}
|
||||
{
|
||||
command = xscreensaverCmd;
|
||||
delay = 300;
|
||||
}
|
||||
];
|
||||
};
|
||||
services.xscreensaver = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mode = "blank";
|
||||
fadeTicks = 20;
|
||||
lock = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue