Some changes including nushell
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
home = "/home/${userName}";
|
home = "/home/${userName}";
|
||||||
initialPassword = "password";
|
initialPassword = "password";
|
||||||
extraGroups = ["wheel" "networkmanager" "docker" "video" "syncthing"];
|
extraGroups = ["wheel" "networkmanager" "docker" "video" "syncthing"];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.nushell;
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultUser = "daniel";
|
defaultUser = "daniel";
|
||||||
@@ -57,6 +57,7 @@ in {
|
|||||||
htop
|
htop
|
||||||
helix
|
helix
|
||||||
nnn
|
nnn
|
||||||
|
nushell
|
||||||
ripgrep
|
ripgrep
|
||||||
wget
|
wget
|
||||||
zsh
|
zsh
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../common
|
../common
|
||||||
../common/graphical
|
../common/graphical
|
||||||
|
|
||||||
|
(import ../../modules).dingbox
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|||||||
@@ -7,4 +7,10 @@
|
|||||||
./synapse
|
./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+i" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||||
"${mod}+Control+h" = "exec --no-startup-id i3utils workspace new -b";
|
"${mod}+Control+h" = "exec --no-startup-id i3utils workspace new -b";
|
||||||
|
|
||||||
"${hyper}+u" = "exec --no-startup-id $HOME/bin/scripts/godown";
|
"${hyper}+m" = "exec --no-startup-id $HOME/bin/scripts/godown";
|
||||||
"${hyper}+i" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
"${hyper}+comma" = "exec --no-startup-id $HOME/bin/scripts/goup";
|
||||||
|
|
||||||
"${mod}+Shift+k" = "exec --no-startup-id i3utils window move prev";
|
"${mod}+Shift+k" = "exec --no-startup-id i3utils window move prev";
|
||||||
"${mod}+Shift+j" = "exec --no-startup-id i3utils window move next";
|
"${mod}+Shift+j" = "exec --no-startup-id i3utils window move next";
|
||||||
|
|
||||||
"${hyper}+comma" = "exec --no-startup-id i3utils window move prev";
|
"${hyper}+i" = "exec --no-startup-id i3utils window move prev";
|
||||||
"${hyper}+m" = "exec --no-startup-id i3utils window move next";
|
"${hyper}+u" = "exec --no-startup-id i3utils window move next";
|
||||||
|
|
||||||
"${mod}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center";
|
"${mod}+p" = "scratchpad show, resize set 80 ppt 80ppt, move position center";
|
||||||
"${hyper}+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
|
elixir_ls
|
||||||
entr
|
entr
|
||||||
erlang
|
erlang
|
||||||
go_1_18
|
go
|
||||||
gopls
|
gopls
|
||||||
oh-my-zsh
|
oh-my-zsh
|
||||||
(
|
(
|
||||||
@@ -53,6 +53,7 @@
|
|||||||
feh
|
feh
|
||||||
iosevka
|
iosevka
|
||||||
idea
|
idea
|
||||||
|
jellyfin-mpv-shim
|
||||||
mpv
|
mpv
|
||||||
obsidian
|
obsidian
|
||||||
pamixer
|
pamixer
|
||||||
@@ -143,6 +144,10 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nushell = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
|
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user