Compare commits
3 commits
e2b8dd3192
...
d1e0c69e4c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d1e0c69e4c | ||
![]() |
06886d02dc | ||
![]() |
c3c2c1ad6d |
|
@ -16,6 +16,7 @@
|
||||||
"adbusers"
|
"adbusers"
|
||||||
"kvm"
|
"kvm"
|
||||||
"input"
|
"input"
|
||||||
|
"video"
|
||||||
];
|
];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
autoSubUidGidRange = true;
|
autoSubUidGidRange = true;
|
||||||
|
@ -28,6 +29,7 @@
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
./niri.nix
|
./niri.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
|
./swaylock.nix
|
||||||
./vscode.nix
|
./vscode.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{ pkgs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
devices,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
xwayland-satellite
|
xwayland-satellite
|
||||||
alacritty
|
alacritty
|
||||||
fuzzel
|
|
||||||
swaylock
|
|
||||||
];
|
];
|
||||||
|
|
||||||
qt.style = {
|
qt.style = {
|
||||||
|
@ -25,7 +28,34 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.swayidle.enable = true;
|
programs.fuzzel = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||||
|
icon-theme = "Adwaita";
|
||||||
|
counter = true;
|
||||||
|
font = "sans:size=10";
|
||||||
|
};
|
||||||
|
colors = {
|
||||||
|
border = "0003B3FF";
|
||||||
|
background = "0F0F0FFF";
|
||||||
|
text = "657b83ff";
|
||||||
|
prompt = "586e75ff";
|
||||||
|
placeholder = "93a1a1ff";
|
||||||
|
input = "657b83ff";
|
||||||
|
match = "cb4b16ff";
|
||||||
|
selection = "eee8d5ff";
|
||||||
|
selection-text = "586e75ff";
|
||||||
|
selection-match = "cb4b16ff";
|
||||||
|
counter = "93a1a1ff";
|
||||||
|
};
|
||||||
|
border = {
|
||||||
|
radius = 30;
|
||||||
|
width = 3;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
input.keyboard.xkb.layout = "de";
|
input.keyboard.xkb.layout = "de";
|
||||||
|
@ -52,12 +82,12 @@
|
||||||
|
|
||||||
# Mod-Shift-/, which is usually the same as Mod-?,
|
# Mod-Shift-/, which is usually the same as Mod-?,
|
||||||
# shows a list of important hotkeys.
|
# shows a list of important hotkeys.
|
||||||
"Mod+Shift+Slash".action.show-hotkey-overlay = { };
|
"Mod+Shift+Numbersign".action.show-hotkey-overlay = { };
|
||||||
|
|
||||||
# Suggested binds for running programs: terminal, app launcher, screen locker.
|
# Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
"Mod+T".action.spawn = "alacritty";
|
"Mod+T".action.spawn = "alacritty";
|
||||||
"Mod+D".action.spawn = "fuzzel";
|
"Mod+D".action.spawn = "fuzzel";
|
||||||
"Super+Alt+L".action.spawn = "swaylock";
|
"Super+Alt+L".action.spawn = "${config.programs.swaylock.package}/bin/swaylock";
|
||||||
|
|
||||||
# You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
# You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||||
# Note: the entire command goes as a single argument in the end.
|
# Note: the entire command goes as a single argument in the end.
|
||||||
|
|
40
home/vinzenz/swaylock.nix
Normal file
40
home/vinzenz/swaylock.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# based on https://codeberg.org/kiara/cfg/src/commit/b9c472acd78c9c08dfe8b6a643c5c82cc5828433/home-manager/kiara/swaylock.nix#
|
||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
programs.swaylock = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.swaylock-effects;
|
||||||
|
# https://github.com/jirutka/swaylock-effects/blob/master/swaylock.1.scd
|
||||||
|
settings = {
|
||||||
|
screenshot = true;
|
||||||
|
effect-blur = "9x9";
|
||||||
|
effect-vignette = "0.2:0.2";
|
||||||
|
fade-in = 0.5;
|
||||||
|
font-size = 75;
|
||||||
|
indicator-caps-lock = true;
|
||||||
|
clock = true;
|
||||||
|
indicator-radius = 400;
|
||||||
|
show-failed-attempts = true;
|
||||||
|
ignore-empty-password = true;
|
||||||
|
grace = 2;
|
||||||
|
color = "000000";
|
||||||
|
indicator-thickness = 20;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.swayidle = {
|
||||||
|
enable = true;
|
||||||
|
timeouts = [
|
||||||
|
{
|
||||||
|
timeout = 60;
|
||||||
|
command = "${config.programs.swaylock.package}/bin/swaylock";
|
||||||
|
}
|
||||||
|
#{
|
||||||
|
# timeout = 90;
|
||||||
|
# command = "${pkgs.systemd}/bin/systemctl suspend";
|
||||||
|
#}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,14 +1,19 @@
|
||||||
{ pkgs, device, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
device,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
waybar
|
waybar
|
||||||
playerctl
|
playerctl
|
||||||
|
cava
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.cava.enable = true;
|
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
|
@ -106,6 +111,8 @@
|
||||||
backlight = {
|
backlight = {
|
||||||
device = "intel_backlight";
|
device = "intel_backlight";
|
||||||
format = "{percent}% ";
|
format = "{percent}% ";
|
||||||
|
on-scroll-down = "light -U 1";
|
||||||
|
on-scroll-up = "light -A 1";
|
||||||
};
|
};
|
||||||
cpu = {
|
cpu = {
|
||||||
interval = 1;
|
interval = 1;
|
||||||
|
|
|
@ -27,6 +27,15 @@
|
||||||
# ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIALWKm+d6KL6Vl3grPOcGouiNTkvdhXuWJmcrdEBY2nw ronja-ssh-host-key''
|
# ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIALWKm+d6KL6Vl3grPOcGouiNTkvdhXuWJmcrdEBY2nw ronja-ssh-host-key''
|
||||||
#];
|
#];
|
||||||
|
|
||||||
programs.adb.enable = true;
|
programs = {
|
||||||
|
adb.enable = true;
|
||||||
|
light = {
|
||||||
|
enable = true;
|
||||||
|
brightnessKeys = {
|
||||||
|
enable = true;
|
||||||
|
step = 5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
tldr
|
tldr
|
||||||
neofetch
|
neofetch
|
||||||
|
|
||||||
|
nix-output-monitor
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue