mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
Compare commits
4 commits
3c6d4195b3
...
367e650979
Author | SHA1 | Date | |
---|---|---|---|
367e650979 | |||
0f6a0efcae | |||
5e899c86ab | |||
f759911783 |
8 changed files with 99 additions and 22 deletions
|
@ -52,6 +52,7 @@
|
|||
./modules/nixos/audio
|
||||
./modules/nixos/networking
|
||||
./modules/nixos/fonts
|
||||
./modules/nixos/greeter
|
||||
|
||||
catppuccin.nixosModules.catppuccin
|
||||
lix-module.nixosModules.default
|
||||
|
@ -81,6 +82,7 @@
|
|||
./modules/nixos/audio
|
||||
./modules/nixos/networking
|
||||
./modules/nixos/fonts
|
||||
./modules/nixos/greeter
|
||||
|
||||
apple-silicon.nixosModules.apple-silicon-support
|
||||
catppuccin.nixosModules.catppuccin
|
||||
|
|
|
@ -71,16 +71,6 @@
|
|||
libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ];
|
||||
};
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
theme = "catppuccin-mocha";
|
||||
package = pkgs.kdePackages.sddm;
|
||||
};
|
||||
|
||||
# services.desktopManager.plasma6.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
xkb.layout = "us";
|
||||
|
@ -153,7 +143,6 @@
|
|||
# gnupg
|
||||
# openssh
|
||||
# python3
|
||||
(pkgs.catppuccin-sddm.override { flavor = "mocha"; })
|
||||
# steam-run
|
||||
|
||||
# # deps for neovim compilation
|
||||
|
|
|
@ -70,14 +70,6 @@
|
|||
libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ];
|
||||
};
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
theme = "catppuccin-mocha";
|
||||
package = pkgs.kdePackages.sddm;
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
|
@ -166,7 +158,6 @@
|
|||
gnupg
|
||||
openssh
|
||||
python3
|
||||
(pkgs.catppuccin-sddm.override { flavor = "mocha"; })
|
||||
steam-run
|
||||
|
||||
# deps for neovim compilation
|
||||
|
|
23
modules/nixos/greeter/default.nix
Normal file
23
modules/nixos/greeter/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{pkgs, ...}:
|
||||
{
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland --remember --greeting 'Welcome to liminalOS. Access is restricted to authorized personnel only.'";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.greetd.serviceConfig = {
|
||||
Type = "idle";
|
||||
StandardInput = "tty";
|
||||
StandardOutput = "tty";
|
||||
StandardError = "journal"; # Without this errors will spam on screen
|
||||
# Without these bootlogs will spam on screen
|
||||
TTYReset = true;
|
||||
TTYVHangup = true;
|
||||
TTYVTDisallocate = true;
|
||||
};
|
||||
}
|
|
@ -65,7 +65,9 @@
|
|||
|
||||
''$mod, P, exec, grim -g "$(slurp)" - | swappy -f -'' # Screenshot
|
||||
|
||||
"$mod, Backspace, exec, wlogout" # Screenshot
|
||||
"$mod, Backspace, exec, wlogout" # show logout menu
|
||||
|
||||
"$mod, L, exec, hyprlock"
|
||||
];
|
||||
bindm = [
|
||||
"$mod, mouse:272, movewindow"
|
||||
|
@ -179,6 +181,7 @@
|
|||
"workspaces, 1, 5, wind"
|
||||
];
|
||||
};
|
||||
|
||||
general = {
|
||||
gaps_in = "3";
|
||||
gaps_out = "8";
|
||||
|
@ -191,6 +194,12 @@
|
|||
resize_on_border = "true";
|
||||
sensitivity = "0.5";
|
||||
};
|
||||
|
||||
misc = {
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
};
|
||||
|
||||
decoration = {
|
||||
rounding = "10";
|
||||
drop_shadow = "false";
|
||||
|
@ -207,4 +216,67 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
grace = 1;
|
||||
};
|
||||
background = {
|
||||
monitor = "";
|
||||
path = "screenshot";
|
||||
blur_passes = 3;
|
||||
blur_size = 7;
|
||||
noise = 1.17e-2;
|
||||
contrast = 0.8916;
|
||||
brightness = 0.8172;
|
||||
vibrancy = 0.1696;
|
||||
vibrancy_darkness = 0.0;
|
||||
};
|
||||
input-field = {
|
||||
monitor = "";
|
||||
size = "200, 50";
|
||||
outline_thickness = 3;
|
||||
dots_size = 0.33;
|
||||
dots_spacing = 0.15;
|
||||
dots_center = false;
|
||||
dots_rounding = -1;
|
||||
outer_color = "rgb(151515)";
|
||||
inner_color = "rgb(200, 200, 200)";
|
||||
font_color = "rgb(10, 10, 10)";
|
||||
fade_on_empty = true;
|
||||
fade_timeout = 1000;
|
||||
placeholder_text = "<i>Input Password...</i>";
|
||||
hide_input = false;
|
||||
rounding = -1;
|
||||
check_color = "rgb(204, 136, 34)";
|
||||
fail_color = "rgb(204, 34, 34)";
|
||||
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
|
||||
fail_timeout = 2000;
|
||||
fail_transition = 300;
|
||||
capslock_color = -1;
|
||||
numlock_color = -1;
|
||||
bothlock_color = -1;
|
||||
invert_numlock = false;
|
||||
swap_font_color = false;
|
||||
|
||||
position = "0, -20";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
lock_cmd =
|
||||
"pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
||||
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
||||
after_sleep_cmd =
|
||||
"hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -27,8 +27,8 @@ with pkgs; [
|
|||
slurp
|
||||
swappy
|
||||
pavucontrol
|
||||
swww
|
||||
waypaper
|
||||
swaybg
|
||||
|
||||
# desktop apps
|
||||
dolphin
|
||||
|
|
BIN
wallpapers/nixos/nixos-everforest.png
Normal file
BIN
wallpapers/nixos/nixos-everforest.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 384 KiB |
Binary file not shown.
Before Width: | Height: | Size: 83 KiB |
Loading…
Reference in a new issue