Add my user to nix.allowed-users, config changes

This commit is contained in:
2024-12-09 18:40:25 +01:00
parent 976261b96d
commit f2edd4b571
5 changed files with 21 additions and 76 deletions
+1
View File
@@ -111,6 +111,7 @@
substituters = ["https://hyprland.cachix.org"]; substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
trusted-users = [ "root" "@wheel" ]; trusted-users = [ "root" "@wheel" ];
allowed-users = [ "root" "@wheel" ];
}; };
nix.gc = { nix.gc = {
+1 -4
View File
@@ -118,10 +118,6 @@
xdg.enable = true; xdg.enable = true;
xdg.configFile = { xdg.configFile = {
"contour" = {
recursive = true;
source = ../../modules/non-nix_configs/contour;
};
"emacs" = { "emacs" = {
recursive = true; recursive = true;
source = ../../modules/non-nix_configs/emacs; source = ../../modules/non-nix_configs/emacs;
@@ -174,6 +170,7 @@
ls = "ls --color=auto"; ls = "ls --color=auto";
ll = "ls -l"; ll = "ls -l";
la = "ls -lA"; la = "ls -lA";
nixrebuild = "nixos-rebuild build --flake ~/personal/nixos#default && sudo nixos-rebuild switch --flake ~/personal/nixos#default";
nixbuild = "sudo nixos-rebuild switch --flake"; nixbuild = "sudo nixos-rebuild switch --flake";
nixtest = "sudo nixos-rebuild test --flake"; nixtest = "sudo nixos-rebuild test --flake";
new = "source $HOME/.bashrc"; new = "source $HOME/.bashrc";
+13 -39
View File
@@ -1,61 +1,35 @@
# The syntax is "key = value". The whitespace around the equals doesn't matter. # The syntax is "key = value". The whitespace around the equals doesn't matter.
background= 000000
foreground= ffffff
# Blank lines are ignored!
keybind = ctrl+shift+w=close_surface keybind = ctrl+shift+w=close_surface
keybind = ctrl+t=new_tab keybind = ctrl+t=new_tab
keybind = ctrl+tab=next_tab keybind = ctrl+tab=next_tab
keybind = ctrl+shift+tab=previous_tab keybind = ctrl+shift+tab=previous_tab
keybind = ctrl+shift+n=new_window keybind = ctrl+shift+n=new_window
keybind = ctrl+shift+o=ignore
# window stuff # Window Stuff
background-opacity=0.8 background-opacity=0.9
confirm-close-surface = false confirm-close-surface = false
window-theme = dark window-theme = dark
window-decoration = false window-decoration = false
# linux specific # Linux Specific
gtk-wide-tabs = true gtk-wide-tabs = true
# macos specific # MacOS Specific
#macos-non-native-fullscreen = true #macos-non-native-fullscreen = true
# font # Font
font-size = 14 font-size = 14
# cursor and mouse # Cursor And Mouse
cursor-style = block cursor-style = block
cursor-color = #ffffff cursor-color = #ffffff
mouse-hide-while-typing = true mouse-hide-while-typing = true
theme = Bright Lights # Theme
# theme = Grape
# Colors can be changed by setting the 16 colors of `palette`, which each color # theme = Bright Lights
# being defined as regular and bold. theme = tokyonight
# # theme = Purple Rain
# black # theme = Mariana
# palette = 0=#0c0c0c
# palette = 8=#767676
# # red
# palette = 1=#c50f1f
# palette = 9=#e74856
# # green
# palette = 2=#13a10e
# palette = 10=#16c60c
# # yellow
# palette = 3=#c19c00
# palette = 11=#f9f1a5
# # blue
# palette = 4=#0037da
# palette = 12=#3b78ff
# # purple
# palette = 5=#881798
# palette = 13=#b4009e
# # aqua
# palette = 6=#3a96dd
# palette = 14=#61d6d6
# # white
# palette = 7=#cccccc
# palette = 15=#f2f2f2
@@ -30,6 +30,7 @@ lsp_zero.extend_lspconfig({
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
require('mason').setup({}) require('mason').setup({})
require('mason-lspconfig').setup({ require('mason-lspconfig').setup({
ensure_installed = { ensure_installed = {
'lua_ls', 'lua_ls',
@@ -61,37 +62,7 @@ require('mason-lspconfig').setup({
}) })
end, end,
jdtls = function() jdtls = function()
lspconfig.jdtls.setup({ lspconfig.jdtls.setup{}
cmd = {
"java",
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
"-Dosgi.bundles.defaultStartLevel=4",
"-Declipse.product=org.eclipse.jdt.ls.core.product",
"-Dlog.protocol=true",
"-Dlog.level=ALL",
"-Xms1g",
"--add-modules=ALL-SYSTEM",
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang=ALL-UNNAMED",
--
},
single_file_support = true,
settings = {
java = {
signatureHelp = {enabled = true},
import = {enabled = true},
rename = {enabled = true}
}
},
flags = {
debounce_text_changes = 150,
},
init_options = {
bundles = {},
},
})
end, end,
zls = function() zls = function()
lspconfig.zls.setup({}) lspconfig.zls.setup({})
@@ -21,6 +21,8 @@ return require('packer').startup(function(use)
'nvim-neotest/nvim-nio' -- dep of dap-ui 'nvim-neotest/nvim-nio' -- dep of dap-ui
} }
} }
use 'mfussenegger/nvim-jdtls' -- Java LSP Support
use 'tpope/vim-fugitive' -- git integration use 'tpope/vim-fugitive' -- git integration
--LSP CONFIG --LSP CONFIG
-- --