add lockscreen - without color

This commit is contained in:
2025-05-04 01:00:59 +02:00
parent 4c54b587bc
commit a75991ba52
12 changed files with 54 additions and 240 deletions

View File

@@ -1,13 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ { system.userActivationScripts = {
# Flutter
programs = { adb.enable = true; };
# SSH
programs.ssh.startAgent = true;
system.userActivationScripts = {
stdio = { stdio = {
text = '' text = ''
rm -f ~/Android/Sdk/platform-tools/adb rm -f ~/Android/Sdk/platform-tools/adb
@@ -52,7 +45,6 @@
# Activate Flakes. # Activate Flakes.
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
services = { services = {
# Set XServer Options. # Set XServer Options.
displayManager = { displayManager = {
@@ -98,6 +90,8 @@
# Setting the Basic Packages. # Setting the Basic Packages.
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(libsForQt5.callPackage ./home/themes/catppuccin-sddm.nix { }) (libsForQt5.callPackage ./home/themes/catppuccin-sddm.nix { })
xsecurelock
xss-lock
# flutter # flutter
android-studio android-studio
clang clang
@@ -124,8 +118,8 @@
acpilight # For setting Backlight. acpilight # For setting Backlight.
dbus dbus
pulseaudioFull # pulseaudioFull
pulseaudio-ctl # pulseaudio-ctl
libnotify libnotify
@@ -137,10 +131,6 @@
lxqt.lxqt-policykit # provides a default authentication client for policykit lxqt.lxqt-policykit # provides a default authentication client for policykit
]; ];
# Adding Features to Dolphin.
services.gvfs.enable = true;
services.udisks2.enable = true;
environment.sessionVariables = { environment.sessionVariables = {
XDG_CACHE_HOME = "$HOME/.cache"; XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config"; XDG_CONFIG_HOME = "$HOME/.config";
@@ -148,21 +138,6 @@
XDG_STATE_HOME = "$HOME/.local/state"; XDG_STATE_HOME = "$HOME/.local/state";
}; };
# Setting the permissions for acpilight.
services.udev = {
enable = true;
extraRules = ''
SUBSYSTEM=="backlight", ACTION=="add", \
RUN+="${pkgs.coreutils-full}/bin/chgrp video /sys/class/backlight/%k/brightness", \
RUN+="${pkgs.coreutils-full}/bin/chmod g+w /sys/class/backlight/%k/brightness"
'';
};
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [ "electron-32.3.3" ];
};
# Virtualbox # Virtualbox
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ]; boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
boot.kernelModules = ["kvm-amd"]; boot.kernelModules = ["kvm-amd"];
@@ -174,17 +149,38 @@
virtualisation.virtualbox.host.enableKvm = true; virtualisation.virtualbox.host.enableKvm = true;
virtualisation.virtualbox.host.addNetworkInterface = false; virtualisation.virtualbox.host.addNetworkInterface = false;
# Enable zsh for setting it as shell for users. programs = {
programs.zsh.enable = true; # Flutter
adb.enable = true;
ssh.startAgent = true;
zsh.enable = true;
};
# Enabling the Keyring. # Enabling the Keyring.
services.gnome.gnome-keyring.enable = true;
security.pam.services.lightdm.enableGnomeKeyring = true; security.pam.services.lightdm.enableGnomeKeyring = true;
services = {
gnome.gnome-keyring.enable = true;
# Disable powerbutton => for use with eww # Disable powerbutton => for use with eww
services.logind.extraConfig = ''HandlePowerKey=ignore''; logind.extraConfig = ''HandlePowerKey=ignore'';
# Setting the permissions for acpilight.
udev = {
enable = true;
extraRules = ''
SUBSYSTEM=="backlight", ACTION=="add", \
RUN+="${pkgs.coreutils-full}/bin/chgrp video /sys/class/backlight/%k/brightness", \
RUN+="${pkgs.coreutils-full}/bin/chmod g+w /sys/class/backlight/%k/brightness"
'';
};
# Adding Features to Dolphin.
gvfs.enable = true;
udisks2.enable = true;
};
# Set stateVersion. Leave it as set. # Set stateVersion. Leave it as set.
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [ "electron-32.3.3" ];
};
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View File

@@ -9,7 +9,7 @@
(label (label
:text " ") :text " ")
(button (button
:onclick "close eww power; loginctl lock-session" :onclick "close eww power; ./scripts/blur-lock.sh"
:class "powermenu-button" :class "powermenu-button"
(label (label
:text "")) :text ""))
@@ -23,7 +23,7 @@
(label (label
:text "") :text "")
(button (button
:onclick "close eww power; loginctl terminate-user $USER" :onclick "close eww power; ./scripts/logout.sh"
:class "powermenu-button" :class "powermenu-button"
(label (label
:text "")))) :text ""))))

View File

@@ -0,0 +1 @@
xsecurelock

View File

@@ -0,0 +1 @@
pkill -KILL xmonad

View File

@@ -1,24 +1,26 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
deferred-clipboard-nvim = pkgs.vimUtils.buildVimPlugin {
name = "deferred-clipboard-nvim";
src = pkgs.fetchFromGitHub {
owner = "EtiamNullam";
repo = "deferred-clipboard.nvim";
rev = "f58d9a20fe5d5891c61773814a1f3051ce43c006";
hash = "sha256-HTk70Fb4n/F4nVkfxSKRsgrXnoFwMpSV276WvDt5uY0=";
};
};
mkLuaConfig = file: args: mkLuaConfig = file: args:
builtins.readFile "${pkgs.substituteAll (args // { src = file; })}"; builtins.readFile "${pkgs.substituteAll (args // { src = file; })}";
in { in {
home.sessionVariables = { EDITOR = "nvim"; }; home.sessionVariables = { EDITOR = "nvim"; };
home.packages = with pkgs; [
nerd-fonts.jetbrains-mono
texliveFull
clang-tools
];
programs.neovim = { programs.neovim = {
enable = true; enable = true;
vimAlias = true; vimAlias = true;
vimdiffAlias = true; vimdiffAlias = true;
withNodeJs = true; withNodeJs = true;
withPython3 = true; withPython3 = true;
plugins = (with pkgs.vimPlugins; [ plugins = (with pkgs.vimPlugins; [
bufferline-nvim bufferline-nvim
catppuccin-nvim catppuccin-nvim
@@ -59,6 +61,7 @@ in {
telescope-nvim telescope-nvim
vimtex vimtex
which-key-nvim which-key-nvim
]) ++ [ ]) ++ [
(pkgs.vimPlugins.nvim-treesitter.withPlugins (pkgs.vimPlugins.nvim-treesitter.withPlugins
(plugins: pkgs.tree-sitter.allGrammars)) (plugins: pkgs.tree-sitter.allGrammars))
@@ -103,6 +106,9 @@ in {
shfmt shfmt
# Scheme # Scheme
chez chez
nerd-fonts.jetbrains-mono
texliveFull
clang-tools
]; ];
extraLuaConfig = mkLuaConfig ./init.lua { extraLuaConfig = mkLuaConfig ./init.lua {

View File

@@ -1,126 +0,0 @@
{ pkgs, config, ... }:
let
mkLuaConfig = file: args:
builtins.readFile "${pkgs.substituteAll (args // { src = file; })}";
in {
home.sessionVariables = { EDITOR = "nvim"; };
home.packages = with pkgs; [
nerd-fonts.jetbrains-mono
texliveFull
clang-tools
<<<<<<< HEAD
=======
vimPlugins.catppuccin-nvim
>>>>>>> test
];
programs.neovim = {
enable = true;
vimAlias = true;
vimdiffAlias = true;
withNodeJs = true;
withPython3 = true;
plugins = (with pkgs.vimPlugins; [
bufferline-nvim
catppuccin-nvim
cmp-buffer
cmp-conjure
cmp-nvim-lua
cmp-nvim-lsp
cmp-path
cmp_luasnip
conform-nvim
conjure
dropbar-nvim
friendly-snippets
lazy-nvim
lean-nvim
leap-nvim
lspkind-nvim
lualine-lsp-progress
lualine-nvim
luasnip
markdown-preview-nvim
neoconf-nvim
neodev-nvim
neoscroll-nvim
nvim-autopairs
nvim-cmp
nvim-lspconfig
nvim-surround
nvim-tree-lua
nvim-treesitter-textobjects
nvim-ts-context-commentstring
nvim-web-devicons
oil-nvim
plenary-nvim
rainbow-delimiters-nvim
telescope-fzf-native-nvim
telescope-nvim
vimtex
which-key-nvim
]) ++ [
(pkgs.vimPlugins.nvim-treesitter.withPlugins
(plugins: pkgs.tree-sitter.allGrammars))
];
extraPackages = with pkgs; [
ripgrep
fd
codespell
prettierd
# Lua
lua-language-server
stylua
# Haskell
haskell-language-server
ghc
stack
cabal-install
haskellPackages.fourmolu
# Lean
lean
# Python
ruff
pyright
isort
python311Packages.autopep8
# LaTeX
texlab
xdotool
pplatex
neovim-remote
# Nix
nixd
<<<<<<< HEAD
nixfmt-classic
=======
nixfmt-rfc-style
>>>>>>> test
# Rust
rust-analyzer
# Bash
nodePackages.bash-language-server
shellcheck
shellharden
# sh
shfmt
# Scheme
chez
];
extraLuaConfig = mkLuaConfig ./init.lua {
path = "${pkgs.vimUtils.packDir
config.programs.neovim.finalPackage.passthru.packpathDirs}";
};
};
xdg.configFile."nvim/lua" = {
recursive = true;
source = ./lua;
};
}

View File

@@ -14,6 +14,7 @@ require("lazy").setup({
path = "@path@/pack/myNeovimPackages/start", path = "@path@/pack/myNeovimPackages/start",
patterns = { patterns = {
"folke", "folke",
"catppuccin",
"geodimm", "geodimm",
"Julian", "Julian",
"hrsh7th", "hrsh7th",

View File

@@ -1,5 +1,6 @@
local opt = vim.opt local opt = vim.opt
opt.clipboard = "unnamedplus"
opt.cursorline = true -- Enable highlighting of the current line opt.cursorline = true -- Enable highlighting of the current line
opt.expandtab = true -- Use spaces instead of tabs opt.expandtab = true -- Use spaces instead of tabs
opt.list = true -- Show some invisible characters (tabs... opt.list = true -- Show some invisible characters (tabs...

View File

@@ -1,8 +1,7 @@
return { return {
{ {
"catppuccin/nvim", "catppuccin/nvim",
lazy = false, name = "catppuccin-nvim",
name = "catppuccin",
priority = 1000, priority = 1000,
config = function() config = function()
require("catppuccin").setup() require("catppuccin").setup()

View File

@@ -1,66 +0,0 @@
return {
{
"stevearc/conform.nvim",
event = { "BufWritePre" },
cmd = "ConformInfo",
keys = {
{
"<leader>cF",
function()
require("conform").format({ formatters = { "injected" } })
end,
mode = { "n", "v" },
desc = "Format Injected Langs",
},
},
config = function()
require("conform").setup({
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_fallback = true,
},
formatters_by_ft = {
lua = { "stylua" },
python = { "isort", "autopep8" },
haskell = { "fourmolu" },
bash = { "shellcheck", "shellharden" },
sh = { "shfmt" },
markdown = { "prettierd" },
json = { "prettierd" },
yaml = { "prettierd" },
<<<<<<< HEAD
nix = { "nixfmt-classic" },
=======
nix = { "nixfmt-rfc-style" },
>>>>>>> test
tex = { "latexindent" },
c = { "clang_format" },
cpp = { "clang_format" },
["*"] = { "codespell" },
["_"] = { "trim_whitespace" },
},
formatters = {
stylua = {
inherit = true,
prepend_args = { "--indent-type", "Spaces", "--indent-width", "2" },
},
codespell = {
inherit = true,
prepend_args = { "-L", "launch" },
},
latexindent = {
inherit = true,
prepend_args = { "-y=\"defaultIndent:' '\"" },
},
clang_format = {
prepend_args = {
"--style=file:./.clang-format",
"--fallback-style=LLVM",
},
},
},
})
end,
},
}

View File

@@ -16,6 +16,7 @@ return {
end, end,
dependencies = { dependencies = {
"HiPhish/rainbow-delimiters", "HiPhish/rainbow-delimiters",
name = "rainbow-delimiters.nvim",
config = function() config = function()
-- This module contains a number of default definitions -- This module contains a number of default definitions
local rainbow_delimiters = require("rainbow-delimiters") local rainbow_delimiters = require("rainbow-delimiters")

View File

@@ -4,6 +4,7 @@ return {
dependencies = { dependencies = {
{ {
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
name = "comment.nvim",
lazy = false, lazy = false,
config = function() config = function()
require("Comment").setup({ require("Comment").setup({
@@ -17,4 +18,3 @@ return {
}, },
}, },
} }