Compare commits
2 Commits
01bc1610bf
...
0bcfa86e5b
Author | SHA1 | Date | |
---|---|---|---|
0bcfa86e5b | |||
4758954aea |
@ -3,6 +3,7 @@
|
||||
./host/bluetooth.nix
|
||||
./host/bootloader.nix
|
||||
./host/console.nix
|
||||
./host/db.nix
|
||||
./host/env.nix
|
||||
./host/gamemode.nix
|
||||
./host/gpg.nix
|
||||
@ -18,6 +19,7 @@
|
||||
services = {
|
||||
udisks2.enable = true;
|
||||
fstrim.enable = true;
|
||||
upower.enable = true;
|
||||
};
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
||||
|
10
modules/host/db.nix
Normal file
10
modules/host/db.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ lib, ... }:{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ "mydatabase" ];
|
||||
authentication = lib.mkOverride 10 ''
|
||||
#type database DBuser auth-method
|
||||
local all all trust
|
||||
'';
|
||||
};
|
||||
}
|
@ -91,7 +91,7 @@ window.Bar {
|
||||
|
||||
.AudioSlider icon { margin-left: 8px; }
|
||||
|
||||
.Workspaces, .Layout, .Media, .SysTray, .AudioSlider, .Time {
|
||||
.Workspaces, .Wifi, .Layout, .Media, .SysTray, .AudioSlider, .Battery, .Time {
|
||||
@extend %item;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { bind } from "astal"
|
||||
import Network from "gi://AstalNetwork"
|
||||
import { execAsync } from "astal/process"
|
||||
|
||||
export default function Wifi() {
|
||||
const network = Network.get_default()
|
||||
@ -7,11 +8,19 @@ export default function Wifi() {
|
||||
|
||||
return <box visible={wifi.as(Boolean)}>
|
||||
{wifi.as(wifi => wifi && (
|
||||
<box>
|
||||
<button
|
||||
className="Wifi"
|
||||
onClicked={() => {execAsync("kitty nmtui")}}>
|
||||
<icon
|
||||
tooltipText={bind(wifi, "ssid").as(String)}
|
||||
className="Wifi"
|
||||
icon={bind(wifi, "iconName")}
|
||||
/>
|
||||
<label
|
||||
label={bind(wifi, "ssid")}
|
||||
/>
|
||||
</button>
|
||||
</box>
|
||||
))}
|
||||
</box>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user