Some changes including nushell
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
home = "/home/${userName}";
|
||||
initialPassword = "password";
|
||||
extraGroups = ["wheel" "networkmanager" "docker" "video" "syncthing"];
|
||||
shell = pkgs.zsh;
|
||||
shell = pkgs.nushell;
|
||||
};
|
||||
|
||||
defaultUser = "daniel";
|
||||
@@ -57,6 +57,7 @@ in {
|
||||
htop
|
||||
helix
|
||||
nnn
|
||||
nushell
|
||||
ripgrep
|
||||
wget
|
||||
zsh
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
./hardware-configuration.nix
|
||||
../common
|
||||
../common/graphical
|
||||
|
||||
(import ../../modules).dingbox
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
|
||||
@@ -7,4 +7,10 @@
|
||||
./synapse
|
||||
];
|
||||
};
|
||||
|
||||
dingbox = {
|
||||
imports = [
|
||||
./postgres
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
23
modules/postgres/default.nix
Normal file
23
modules/postgres/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
username = "daniel";
|
||||
in {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
local all all trust
|
||||
host all all 127.0.0.1/32 trust
|
||||
host all all ::1/128 trust
|
||||
'';
|
||||
|
||||
initialScript = pkgs.writeText "oubliette-initscript" ''
|
||||
CREATE ROLE oubliette WITH LOGIN PASSWORD 'oubliette' CREATEDB;
|
||||
CREATE DATABASE oubliette_dev;
|
||||
GRANT ALL PRIVILEGES ON DATABASE oubliette TO oubliette;
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -173,14 +173,14 @@ in {
|
||||
"${mod}+Control+i" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||
"${mod}+Control+h" = "exec --no-startup-id i3utils workspace new -b";
|
||||
|
||||
"${hyper}+u" = "exec --no-startup-id $HOME/bin/scripts/godown";
|
||||
"${hyper}+i" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||
"${hyper}+m" = "exec --no-startup-id $HOME/bin/scripts/godown";
|
||||
"${hyper}+comma" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||
|
||||
"${mod}+Shift+k" = "exec --no-startup-id i3utils window move prev";
|
||||
"${mod}+Shift+j" = "exec --no-startup-id i3utils window move next";
|
||||
|
||||
"${hyper}+comma" = "exec --no-startup-id i3utils window move prev";
|
||||
"${hyper}+m" = "exec --no-startup-id i3utils window move next";
|
||||
"${hyper}+i" = "exec --no-startup-id i3utils window move prev";
|
||||
"${hyper}+u" = "exec --no-startup-id i3utils window move next";
|
||||
|
||||
"${mod}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center";
|
||||
"${hyper}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center";
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
elixir_ls
|
||||
entr
|
||||
erlang
|
||||
go_1_18
|
||||
go
|
||||
gopls
|
||||
oh-my-zsh
|
||||
(
|
||||
@@ -53,6 +53,7 @@
|
||||
feh
|
||||
iosevka
|
||||
idea
|
||||
jellyfin-mpv-shim
|
||||
mpv
|
||||
obsidian
|
||||
pamixer
|
||||
@@ -143,6 +144,10 @@ in {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
nushell = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
starship.enable = true;
|
||||
|
||||
vscode.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user