Added postgresql
Added a postgresql to system, also tryed to install Java with dependencies of JavaFX but it doesn`t work.
This commit is contained in:
1 parent
0f90620190
commit
63e0442b85
7 files changed
+50
-27
No files matched your search
@@ -135,6 +135,7 @@
|
|||||||
"swww init"
|
"swww init"
|
||||||
"python3 ${lib.getExe wallpaper_changer}"
|
"python3 ${lib.getExe wallpaper_changer}"
|
||||||
"waybar"
|
"waybar"
|
||||||
|
"${lib.getExe' pkgs.udiskie "udiskie"}"
|
||||||
"wl-paste --type text --watch cliphist store"
|
"wl-paste --type text --watch cliphist store"
|
||||||
"wl-paste --type image --watch cliphist store"
|
"wl-paste --type image --watch cliphist store"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -5,6 +5,12 @@ let yazi-plugins = pkgs.fetchFromGitHub {
|
|||||||
rev = "c5785059611624e20a37ba573620f30acc28a26a";
|
rev = "c5785059611624e20a37ba573620f30acc28a26a";
|
||||||
hash = "sha256-wlSBtabIsEUJhuHmXwgpSnwZp9WaVQFBg6s1XXjubrE=";
|
hash = "sha256-wlSBtabIsEUJhuHmXwgpSnwZp9WaVQFBg6s1XXjubrE=";
|
||||||
};
|
};
|
||||||
|
starship = pkgs.fetchFromGitHub {
|
||||||
|
owner = "Rolv-Apneseth";
|
||||||
|
repo = "starship.yazi";
|
||||||
|
rev = "d1cd0a38aa6a2c2e86e62a466f43e415f781031e";
|
||||||
|
sha256 = "sha256-XiEsykudwYmwSNDO41b5layP1DqVa89e6Emv9Qf0mz0=";
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -36,12 +42,7 @@ in {
|
|||||||
chmod = "${yazi-plugins}/chmod.yazi";
|
chmod = "${yazi-plugins}/chmod.yazi";
|
||||||
full-border = "${yazi-plugins}/full-border.yazi";
|
full-border = "${yazi-plugins}/full-border.yazi";
|
||||||
max-preview = "${yazi-plugins}/max-preview.yazi";
|
max-preview = "${yazi-plugins}/max-preview.yazi";
|
||||||
starship = pkgs.fetchFromGitHub {
|
starship = starship;
|
||||||
owner = "Rolv-Apneseth";
|
|
||||||
repo = "starship.yazi";
|
|
||||||
rev = "77a65f5a367f833ad5e6687261494044006de9c3";
|
|
||||||
sha256 = "sha256-sAB0958lLNqqwkpucRsUqLHFV/PJYoJL2lHFtfHDZF8=";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
initLua = ''
|
initLua = ''
|
||||||
@@ -61,6 +62,10 @@ in {
|
|||||||
run = "plugin chmod";
|
run = "plugin chmod";
|
||||||
desc = "Chmod on selected files";
|
desc = "Chmod on selected files";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
on = [ "<C-n>" ];
|
||||||
|
run = ''shell '${lib.getExe pkgs.xdragon} -x -i -T "$@"' --confirm'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
screenshot_f="grimblast save screen ~/screenshot_$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png";
|
screenshot_f="grimblast save screen ~/screenshot_$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png";
|
||||||
screenshot="grimblast save area ~/screenshot_$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png";
|
screenshot="grimblast save area ~/screenshot_$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png";
|
||||||
screenshot_c = "grimblast copy area";
|
screenshot_c = "grimblast copy area";
|
||||||
|
loginPostgresql = "sudo -u postgres psql";
|
||||||
};
|
};
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./models/bluetooth.nix
|
./models/bluetooth.nix
|
||||||
./models/gamemode.nix
|
./models/gamemode.nix
|
||||||
|
./models/postgresql.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
#home.packages = [ pkgs.callPackage ./pockets/thingsboard.nix {} ];
|
#home.packages = [ pkgs.callPackage ./pockets/thingsboard.nix {} ];
|
||||||
@@ -114,6 +115,7 @@
|
|||||||
|
|
||||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||||
|
services.udisks2.enable = true;
|
||||||
|
|
||||||
# Install firefox.
|
# Install firefox.
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{config, pkgs, ... }:{
|
||||||
|
config.services.postgresql = {
|
||||||
|
enable = true;
|
||||||
|
ensureDatabases = [ "mydatabase" ];
|
||||||
|
authentication = pkgs.lib.mkOverride 10 ''
|
||||||
|
#type database DBuser auth-method
|
||||||
|
local all all trust
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -14,8 +14,10 @@
|
|||||||
wget
|
wget
|
||||||
home-manager
|
home-manager
|
||||||
pkgs.opera
|
pkgs.opera
|
||||||
|
|
||||||
|
#git
|
||||||
pkgs.git
|
pkgs.git
|
||||||
|
lazygit
|
||||||
#terminals
|
#terminals
|
||||||
kitty
|
kitty
|
||||||
alacritty
|
alacritty
|
||||||
@@ -24,38 +26,20 @@
|
|||||||
pkgs.google-chrome
|
pkgs.google-chrome
|
||||||
pkgs.yazi
|
pkgs.yazi
|
||||||
pkgs.libsForQt5.kolourpaint
|
pkgs.libsForQt5.kolourpaint
|
||||||
nerdfonts
|
|
||||||
pkgs.waybar
|
pkgs.waybar
|
||||||
grimblast
|
grimblast
|
||||||
tree
|
tree
|
||||||
slurp
|
slurp
|
||||||
brightnessctl
|
|
||||||
neofetch
|
neofetch
|
||||||
mako
|
mako
|
||||||
file
|
file
|
||||||
btop
|
btop
|
||||||
nix-index
|
nix-index
|
||||||
unzip
|
unzip
|
||||||
scrot
|
|
||||||
ffmpeg
|
|
||||||
light
|
light
|
||||||
zram-generator
|
|
||||||
zip
|
zip
|
||||||
ntfs3g
|
|
||||||
yt-dlp
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
openssl
|
openssl
|
||||||
httpie
|
|
||||||
ncdu
|
|
||||||
hexyl
|
|
||||||
jq
|
|
||||||
tldr
|
|
||||||
bat
|
|
||||||
xdg-utils
|
|
||||||
helix
|
|
||||||
playerctl
|
|
||||||
duf
|
|
||||||
v2raya
|
|
||||||
|
|
||||||
swww
|
swww
|
||||||
gnumake
|
gnumake
|
||||||
@@ -64,17 +48,26 @@
|
|||||||
(python3.withPackages (ps: with ps; [ requests bpython ]))
|
(python3.withPackages (ps: with ps; [ requests bpython ]))
|
||||||
python311Packages.pip
|
python311Packages.pip
|
||||||
|
|
||||||
|
#text editor
|
||||||
|
helix
|
||||||
|
|
||||||
# IDES
|
# IDES
|
||||||
jetbrains.idea-community
|
jetbrains.idea-community
|
||||||
|
|
||||||
# Languages
|
# Code
|
||||||
vscode
|
vscode
|
||||||
nodejs
|
nodejs
|
||||||
gcc
|
gcc
|
||||||
cmake
|
cmake
|
||||||
jdk
|
|
||||||
|
#java
|
||||||
|
openjfx
|
||||||
|
openjdk
|
||||||
maven
|
maven
|
||||||
|
|
||||||
|
#DB
|
||||||
|
postgresql
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
bluez
|
bluez
|
||||||
bluez-tools
|
bluez-tools
|
||||||
@@ -93,6 +86,9 @@
|
|||||||
#learning
|
#learning
|
||||||
zoom-us
|
zoom-us
|
||||||
obsidian
|
obsidian
|
||||||
|
|
||||||
|
#Usb mouting and acsess
|
||||||
|
udisks
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
И так это небольшая подсказка для тебя о том как пользоваться udisks:
|
||||||
|
Прежде всего перед монтированием диска тебе нужно понять какой раздел диска монтировать:
|
||||||
|
Для этого есть комманда: lsblk
|
||||||
|
Дальше думаю не тупой диск отличишь, прикол в том что он отмечен через sd??. вместо первого вопроса какая то буква, а вместо второго цифра
|
||||||
|
Далее команды: udisksctl mount -b /dev/sd?? --mount-point /home/USB-Disc - вмонтирует в соответсвующую папку.
|
||||||
|
udisksctl unmount -b /dev/sd?? --mount-point /home/USB-Disc - отмонтирует из папки
|
||||||
|
udisksctl power-off -b /dev/sda1 - отключит диск
|
||||||
|
Диск обязательно надо отключать!!!
|
||||||
Reference in new issue
Block a user