Switch to unstable + xidlehook
This commit is contained in:
parent
b3688ae574
commit
82530df76e
12 changed files with 53 additions and 59 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs ? import <nixpkgs> { inherit system; }
|
{ pkgs ? import <nixos-unstable> { inherit system; }
|
||||||
, system ? builtins.currentSystem
|
, system ? builtins.currentSystem
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
|
||||||
20
home.nix
20
home.nix
|
|
@ -1,9 +1,6 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
nixpkgs = import <nixpkgs> {};
|
|
||||||
nixos-unstable = import <nixos-unstable> {};
|
|
||||||
nixos = import <nixos> {};
|
|
||||||
nix-rice = fetchTarball {
|
nix-rice = fetchTarball {
|
||||||
url = "https://github.com/bertof/nix-rice/archive/refs/tags/v0.1.2.tar.gz";
|
url = "https://github.com/bertof/nix-rice/archive/refs/tags/v0.1.2.tar.gz";
|
||||||
sha256 = "15f97nwwvk828vnx6kk325zzjn4q37hrpp9aiqiz2qhfs06mr147";
|
sha256 = "15f97nwwvk828vnx6kk325zzjn4q37hrpp9aiqiz2qhfs06mr147";
|
||||||
|
|
@ -100,8 +97,8 @@ in
|
||||||
keepassxc
|
keepassxc
|
||||||
krita
|
krita
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
lutris
|
lutris-free
|
||||||
megasync
|
megacmd
|
||||||
mpv
|
mpv
|
||||||
neofetch
|
neofetch
|
||||||
nerdfonts
|
nerdfonts
|
||||||
|
|
@ -117,6 +114,7 @@ in
|
||||||
skypeforlinux
|
skypeforlinux
|
||||||
slack
|
slack
|
||||||
spotify
|
spotify
|
||||||
|
tdesktop
|
||||||
teams
|
teams
|
||||||
transmission-gtk
|
transmission-gtk
|
||||||
virt-manager
|
virt-manager
|
||||||
|
|
@ -149,16 +147,9 @@ in
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
] ++ (
|
];
|
||||||
with nixos; [
|
|
||||||
tdesktop
|
|
||||||
|
|
||||||
]
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/configurations.nix
|
./modules/configurations.nix
|
||||||
|
|
||||||
|
|
@ -187,6 +178,7 @@ in
|
||||||
./modules/libinput-gestures.nix
|
./modules/libinput-gestures.nix
|
||||||
./modules/lorri.nix
|
./modules/lorri.nix
|
||||||
./modules/man.nix
|
./modules/man.nix
|
||||||
|
./modules/mangohud.nix
|
||||||
# ./modules/nix-index.nix
|
# ./modules/nix-index.nix
|
||||||
./modules/noti.nix
|
./modules/noti.nix
|
||||||
./modules/obs-studio.nix
|
./modules/obs-studio.nix
|
||||||
|
|
@ -203,7 +195,7 @@ in
|
||||||
./modules/terminator.nix
|
./modules/terminator.nix
|
||||||
./modules/tmux.nix
|
./modules/tmux.nix
|
||||||
./modules/update_background.nix
|
./modules/update_background.nix
|
||||||
# ./modules/xidelhook.nix
|
./modules/xidlehook.nix
|
||||||
# ./modules/zathura.nix
|
# ./modules/zathura.nix
|
||||||
./modules/zoxide.nix
|
./modules/zoxide.nix
|
||||||
./modules/zsh.nix
|
./modules/zsh.nix
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
unstable = import <nixpkgs> {};
|
|
||||||
tomlGenerate = (pkgs.formats.toml {}).generate "bottom-toml";
|
tomlGenerate = (pkgs.formats.toml {}).generate "bottom-toml";
|
||||||
in {
|
in {
|
||||||
home.packages = with unstable; [ bottom ];
|
home.packages = with pkgs; [ bottom ];
|
||||||
xdg.configFile."bottom/bottom.toml".source = tomlGenerate {
|
xdg.configFile."bottom/bottom.toml".source = tomlGenerate {
|
||||||
"flags" = {
|
"flags" = {
|
||||||
"left_legend" = true;
|
"left_legend" = true;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
nixpkgs = import <nixpkgs> {};
|
|
||||||
kakCmd = "kak";
|
kakCmd = "kak";
|
||||||
|
|
||||||
rustPlugins = with pkgs; [
|
rustPlugins = with pkgs; [
|
||||||
|
|
@ -125,9 +124,6 @@ in
|
||||||
kakounePlugins.kak-lsp
|
kakounePlugins.kak-lsp
|
||||||
kakounePlugins.powerline-kak
|
kakounePlugins.powerline-kak
|
||||||
kakounePlugins.prelude-kak
|
kakounePlugins.prelude-kak
|
||||||
]
|
|
||||||
) ++ (
|
|
||||||
with nixpkgs; [
|
|
||||||
kakounePlugins.connect-kak
|
kakounePlugins.connect-kak
|
||||||
]
|
]
|
||||||
) ++ rustPlugins ++ cppPlugins ++ pythonPlugins ++ latexPlugins ++ nixPlugins ++ spellingPlugins ++ dataFormats;
|
) ++ 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, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
nixpkgs = import nixpkgs {};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
programs.obs-studio = {
|
programs.obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = nixpkgs.obs-studio;
|
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
# obs-linuxbrowser
|
# obs-linuxbrowser
|
||||||
# obs-gstreamer
|
# obs-gstreamer
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
ardour
|
# ardour
|
||||||
|
|
||||||
carla
|
carla
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ in
|
||||||
boops
|
boops
|
||||||
geonkick
|
geonkick
|
||||||
lsp-plugins
|
lsp-plugins
|
||||||
noise-repellent
|
# noise-repellent
|
||||||
speech-denoiser
|
speech-denoiser
|
||||||
stochas
|
stochas
|
||||||
surge
|
surge
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.screen-locker = {
|
services.screen-locker = {
|
||||||
enable = true;
|
enable = false;
|
||||||
lockCmd = "${pkgs.lockscreen}";
|
lockCmd = "${pkgs.lockscreen}";
|
||||||
inactiveInterval = 10; # miutes
|
inactiveInterval = 10; # miutes
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# WEB
|
# WEB
|
||||||
postman
|
postman
|
||||||
burpsuite
|
# burpsuite
|
||||||
httpie
|
httpie
|
||||||
|
|
||||||
# REVERSING
|
# 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
services.xserver.xkbOptions = "eurosign:e;";
|
services.xserver.xkbOptions = "eurosign:e;";
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
# services.printing.enable = true;
|
||||||
|
|
||||||
# Enable sound.
|
# Enable sound.
|
||||||
# PULSE
|
# PULSE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue