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
|
||||
}:
|
||||
|
||||
|
|
|
|||
20
home.nix
20
home.nix
|
|
@ -1,9 +1,6 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
nixpkgs = import <nixpkgs> {};
|
||||
nixos-unstable = import <nixos-unstable> {};
|
||||
nixos = import <nixos> {};
|
||||
nix-rice = fetchTarball {
|
||||
url = "https://github.com/bertof/nix-rice/archive/refs/tags/v0.1.2.tar.gz";
|
||||
sha256 = "15f97nwwvk828vnx6kk325zzjn4q37hrpp9aiqiz2qhfs06mr147";
|
||||
|
|
@ -100,8 +97,8 @@ in
|
|||
keepassxc
|
||||
krita
|
||||
libreoffice-fresh
|
||||
lutris
|
||||
megasync
|
||||
lutris-free
|
||||
megacmd
|
||||
mpv
|
||||
neofetch
|
||||
nerdfonts
|
||||
|
|
@ -117,6 +114,7 @@ in
|
|||
skypeforlinux
|
||||
slack
|
||||
spotify
|
||||
tdesktop
|
||||
teams
|
||||
transmission-gtk
|
||||
virt-manager
|
||||
|
|
@ -149,16 +147,9 @@ in
|
|||
];
|
||||
}
|
||||
)
|
||||
] ++ (
|
||||
with nixos; [
|
||||
tdesktop
|
||||
|
||||
]
|
||||
);
|
||||
];
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
imports = [
|
||||
./modules/configurations.nix
|
||||
|
||||
|
|
@ -187,6 +178,7 @@ in
|
|||
./modules/libinput-gestures.nix
|
||||
./modules/lorri.nix
|
||||
./modules/man.nix
|
||||
./modules/mangohud.nix
|
||||
# ./modules/nix-index.nix
|
||||
./modules/noti.nix
|
||||
./modules/obs-studio.nix
|
||||
|
|
@ -203,7 +195,7 @@ in
|
|||
./modules/terminator.nix
|
||||
./modules/tmux.nix
|
||||
./modules/update_background.nix
|
||||
# ./modules/xidelhook.nix
|
||||
./modules/xidlehook.nix
|
||||
# ./modules/zathura.nix
|
||||
./modules/zoxide.nix
|
||||
./modules/zsh.nix
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
services.xserver.xkbOptions = "eurosign:e;";
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
# services.printing.enable = true;
|
||||
|
||||
# Enable sound.
|
||||
# PULSE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue