Compare commits
17 Commits
86272d668d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d09cfeea1 | |||
| 892ae40180 | |||
| 4a1cd4804d | |||
| 31fa6033b0 | |||
| b88445e529 | |||
| e3597c147a | |||
| e1e1b316cf | |||
| 184e939bb6 | |||
| 103c8e803a | |||
| 160ae56e03 | |||
| d178e340b4 | |||
| e2ec5cae11 | |||
| d9261385de | |||
| b0c84b9b27 | |||
| d036eb2512 | |||
| 83f48b3403 | |||
| 9d56a9bd10 |
18
flake.lock
generated
18
flake.lock
generated
@@ -655,11 +655,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-us": {
|
"nixpkgs-us": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757068644,
|
"lastModified": 1762363567,
|
||||||
"narHash": "sha256-NOrUtIhTkIIumj1E/Rsv1J37Yi3xGStISEo8tZm3KW4=",
|
"narHash": "sha256-YRqMDEtSMbitIMj+JLpheSz0pwEr0Rmy5mC7myl17xs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8eb28adfa3dc4de28e792e3bf49fcf9007ca8ac9",
|
"rev": "ae814fd3904b621d8ab97418f1d0f2eb0d3716f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -740,17 +740,17 @@
|
|||||||
"nixvim": "nixvim_2"
|
"nixvim": "nixvim_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756234794,
|
"lastModified": 1760575893,
|
||||||
"narHash": "sha256-objBSkdkrn6BpQ1mH1tkvXmipfJ+mONHuydefPhdNSs=",
|
"narHash": "sha256-u6eyhxtlxgG29uI2VCSt5Ir6/BW9hkhglCTfbJ14Hgg=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "50ffcb48e2bc7e18fd7123c876158b913300b177",
|
"rev": "bcc5185ef433a77b18f5aa585ee79d97f9a8e69c",
|
||||||
"revCount": 35,
|
"revCount": 36,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/Moirai"
|
"url": "ssh://gitea@gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/Moirai"
|
"url": "ssh://gitea@gitea.esotericbytes.com/Blunkall-Technologies/Moirai"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixvim_2": {
|
"nixvim_2": {
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
|
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
|
||||||
#nixvim.url = "git+https://gitea.blunkall.us/Blunkall-Technologies/Moirai";
|
#nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
|
||||||
nixvim.url = "git+ssh://gitea@gitea.blunkall.us/Blunkall-Technologies/Moirai";
|
nixvim.url = "git+ssh://gitea@gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.homeconfig.quickshell.enable = with lib; mkOption {
|
|
||||||
type = with types; bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.homeconfig.quickshell.enable {
|
|
||||||
|
|
||||||
programs.quickshell = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
|
Item {
|
||||||
|
implicitWidth: t.contentWidth + 10
|
||||||
|
implicitHeight: 30
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
anchors.fill: parent
|
||||||
|
Text {
|
||||||
|
id: t
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
text: {
|
||||||
|
if(hws.toplevels.values.length > 0) {
|
||||||
|
return Hyprland.activeToplevel.title
|
||||||
|
} else {
|
||||||
|
return " Desktop"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
property HyprlandWorkspace hws: Hyprland.focusedWorkspace
|
||||||
|
|
||||||
|
onHwsChanged: {
|
||||||
|
Hyprland.refreshToplevels()
|
||||||
|
Hyprland.refreshWorkspaces()
|
||||||
|
}
|
||||||
|
|
||||||
|
font.pointSize: 11
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
170
home-manager/users/nathan/dotfiles/quickshell/modules/Bar.qml
Normal file
170
home-manager/users/nathan/dotfiles/quickshell/modules/Bar.qml
Normal file
@@ -0,0 +1,170 @@
|
|||||||
|
import Quickshell // for PanelWindow
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import Quickshell.Wayland
|
||||||
|
|
||||||
|
PanelWindow {
|
||||||
|
anchors {
|
||||||
|
top: true
|
||||||
|
//left: true
|
||||||
|
//right: true
|
||||||
|
//bottom: true
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
id: bar
|
||||||
|
|
||||||
|
exclusionMode: ExclusionMode.Ignore
|
||||||
|
WlrLayershell.layer: WlrLayer.Background
|
||||||
|
|
||||||
|
color: "#a0706050"
|
||||||
|
|
||||||
|
|
||||||
|
implicitHeight: 40
|
||||||
|
implicitWidth: 1900
|
||||||
|
|
||||||
|
/*RowLayout {
|
||||||
|
width: bar.width
|
||||||
|
}*/
|
||||||
|
RowLayout {
|
||||||
|
//Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
id: left
|
||||||
|
x: 0
|
||||||
|
y: parent.y + (parent.height - height) / 2
|
||||||
|
//width: center.x
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Launcher {
|
||||||
|
id: l
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
Layout.preferredWidth: width
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
Workspaces {
|
||||||
|
id: ws
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
/*ActiveWindow {
|
||||||
|
id: aw
|
||||||
|
Layout.margins: 5
|
||||||
|
|
||||||
|
Layout.maximumWidth: Math.min(implicitWidth, center.x - (parent.x + x + Layout.margins))
|
||||||
|
}*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
//Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||||
|
id: center
|
||||||
|
x: (parent.width - cl.width) / 2 + parent.x - centerLeft.width
|
||||||
|
//y: parent.y + (parent.height - height) / 2
|
||||||
|
y: parent.y + (parent.height - height) / 2
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
id: centerLeft
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Volume {
|
||||||
|
id: v
|
||||||
|
window: bar
|
||||||
|
popupOffset: center.x
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
Battery {
|
||||||
|
id: bat
|
||||||
|
window: bar
|
||||||
|
popupOffset: center.x
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
Hyprsunset {
|
||||||
|
id: hs
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Clock {
|
||||||
|
id: cl
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
IdleInhibitor {
|
||||||
|
id: ii
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
Wifi {
|
||||||
|
id: wifi
|
||||||
|
window: bar
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
Bluetooth {
|
||||||
|
id: bt
|
||||||
|
window: bar
|
||||||
|
popupOffset: center.x + center.width
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
//Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
id: right
|
||||||
|
//implicitWidth: bar.width - (spacer.x + spacer.width)
|
||||||
|
x: bar.width - implicitWidth
|
||||||
|
y: parent.y + (parent.height - height) / 2
|
||||||
|
//Layout.maximumWidth: bar.width - (center.x + center.width)
|
||||||
|
//Layout.preferredWidth: 10
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Media {
|
||||||
|
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
id: media
|
||||||
|
|
||||||
|
implicitWidth: Math.min(textWidth, bar.width - (righter.width) - (center.x + center.width) - 10)
|
||||||
|
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
id: righter
|
||||||
|
spacing: 0
|
||||||
|
Tray {
|
||||||
|
id: tray
|
||||||
|
window: bar
|
||||||
|
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
Layout.margins: 5
|
||||||
|
popupOffset: right.x + righter.x + x
|
||||||
|
}
|
||||||
|
|
||||||
|
Notifications {
|
||||||
|
id: notif
|
||||||
|
window: bar
|
||||||
|
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
Power {
|
||||||
|
id: power
|
||||||
|
window: bar
|
||||||
|
popupOffset: bar.width
|
||||||
|
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
import Quickshell // for PanelWindow
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Services.UPower
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
width: 100; height: 30
|
||||||
|
color: "red"
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: " " + Math.floor(UPower.displayDevice.percentage * 100) + "%"
|
||||||
|
font.pointSize: 12
|
||||||
|
implicitHeight: parent.height
|
||||||
|
//icon.color: "red"
|
||||||
|
//icon.source: "/nix/store/c4dcn4vl0v5njv4d587sazrad1xgyd9h-rose-pine-icon-theme-unstable-2022-09-01/share/icons/rose-pine/symbolic/devices/battery-symbolic.svg"
|
||||||
|
onClicked: {
|
||||||
|
menu.visible = true
|
||||||
|
grab.active = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
required property var window
|
||||||
|
required property real popupOffset
|
||||||
|
id: root
|
||||||
|
|
||||||
|
PopupWindow {
|
||||||
|
|
||||||
|
id: menu
|
||||||
|
|
||||||
|
anchor.window: window
|
||||||
|
anchor.rect.x: popupOffset
|
||||||
|
anchor.rect.y: 50
|
||||||
|
implicitWidth: 250
|
||||||
|
implicitHeight: 150
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
|
||||||
|
implicitHeight: parent.height - 20
|
||||||
|
implicitWidth: parent.width
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.topMargin: 5
|
||||||
|
x: (parent.width - width) / 2
|
||||||
|
implicitWidth: parent.width - 10
|
||||||
|
implicitHeight: parent.height / 5 - parent.spacing
|
||||||
|
|
||||||
|
text: 'shutdown'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HyprlandFocusGrab {
|
||||||
|
id: grab
|
||||||
|
windows: [ menu ]
|
||||||
|
onCleared: menu.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,141 @@
|
|||||||
|
import Quickshell // for PanelWindow
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Bluetooth
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
|
||||||
|
|
||||||
|
radius: 5
|
||||||
|
implicitWidth: 30; implicitHeight: 30
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: ""
|
||||||
|
font.pointSize: 16
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
menu.visible = true
|
||||||
|
grab.active = true
|
||||||
|
}
|
||||||
|
implicitHeight: parent.height
|
||||||
|
}
|
||||||
|
|
||||||
|
required property PanelWindow window
|
||||||
|
required property real popupOffset
|
||||||
|
id: root
|
||||||
|
|
||||||
|
PopupWindow {
|
||||||
|
|
||||||
|
id: menu
|
||||||
|
|
||||||
|
anchor.window: window
|
||||||
|
anchor.rect.x: popupOffset - width
|
||||||
|
anchor.rect.y: 50
|
||||||
|
implicitWidth: 250
|
||||||
|
implicitHeight: 150
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
|
||||||
|
implicitHeight: parent.height - 20
|
||||||
|
implicitWidth: parent.width
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
implicitWidth: parent.width - 2 * Layout.margins
|
||||||
|
implicitHeight: 30
|
||||||
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||||
|
Layout.margins: 5
|
||||||
|
color: "#ff3333aa"
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
Text {
|
||||||
|
text: 'Bluetooth'
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
Layout.margins: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
Switch {
|
||||||
|
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
//Layout.margins: 5
|
||||||
|
checked: Bluetooth.defaultAdapter.enabled
|
||||||
|
onClicked: Bluetooth.defaultAdapter.enabled = checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ScrollView {
|
||||||
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||||
|
Layout.margins: 5
|
||||||
|
|
||||||
|
implicitWidth: parent.width - 4 * Layout.margins
|
||||||
|
implicitHeight: menu.height / 2
|
||||||
|
|
||||||
|
id: scroll
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
|
||||||
|
id: rep
|
||||||
|
|
||||||
|
model: Bluetooth.devices.values
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
color: "#ff3333aa"
|
||||||
|
|
||||||
|
implicitWidth: menu.width - 3 * scroll.x
|
||||||
|
implicitHeight: 40
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||||
|
Layout.margins: 5
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
Text {
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
Layout.margins: 5
|
||||||
|
|
||||||
|
text: rep.model[index].name
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
Layout.rightMargin: 5
|
||||||
|
text: 'Connect'
|
||||||
|
|
||||||
|
onClicked: rep.model[index].connected = !rep.model[index].connected
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HyprlandFocusGrab {
|
||||||
|
id: grab
|
||||||
|
windows: [ menu ]
|
||||||
|
onCleared: menu.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
|
Item {
|
||||||
|
implicitWidth: t.contentWidth + 10
|
||||||
|
implicitHeight: 30
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
anchors.fill: parent
|
||||||
|
Text {
|
||||||
|
id: t
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
text: Qt.formatDateTime(clock.date, "dddd HH:mm:ss MM/dd/yyyy")
|
||||||
|
font.pointSize: 11
|
||||||
|
|
||||||
|
SystemClock {
|
||||||
|
id: clock
|
||||||
|
precision: SystemClock.Seconds
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import Quickshell // for PanelWindow
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
implicitWidth: 30; height: 30
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: " "
|
||||||
|
font.pointSize: 16
|
||||||
|
Process {
|
||||||
|
id: idlent
|
||||||
|
running: false
|
||||||
|
command: ["hyprsunset", "-t", "4000"]
|
||||||
|
|
||||||
|
onExited: {
|
||||||
|
running = button.text == " " ? false : true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
idlent.running = button.text == " " ? true : false
|
||||||
|
button.text = button.text == " " ? " " : " "
|
||||||
|
}
|
||||||
|
implicitHeight: parent.height
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
import Quickshell // for PanelWindow
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
|
||||||
|
property real interval: 100
|
||||||
|
id: root
|
||||||
|
|
||||||
|
radius: 5
|
||||||
|
implicitWidth: 30; height: 30
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: " "
|
||||||
|
font.pointSize: 16
|
||||||
|
Process {
|
||||||
|
id: idlent
|
||||||
|
running: false
|
||||||
|
command: ["systemd-inhibit", "--what=idle", "sleep", root.interval.toString()]
|
||||||
|
|
||||||
|
onExited: {
|
||||||
|
running = button.text == " " ? false : true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
idlent.running = button.text == " " ? true : false
|
||||||
|
button.text = button.text == " " ? " " : " "
|
||||||
|
}
|
||||||
|
implicitHeight: parent.height
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import Quickshell // for PanelWindow
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
width: 30; height: 30
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: " "
|
||||||
|
font.pointSize: 16
|
||||||
|
Process {
|
||||||
|
id: launcher
|
||||||
|
running: false
|
||||||
|
command: ["rofi", "-show", "drun"]
|
||||||
|
}
|
||||||
|
onClicked: launcher.running = true
|
||||||
|
implicitHeight: parent.height
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Services.Mpris
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: media
|
||||||
|
height: 30
|
||||||
|
|
||||||
|
readonly property real textWidth: info.contentWidth + 10
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
anchors.fill: parent
|
||||||
|
Text {
|
||||||
|
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
||||||
|
id: info
|
||||||
|
|
||||||
|
text: {
|
||||||
|
let s = ''
|
||||||
|
let players = []
|
||||||
|
|
||||||
|
Mpris.players.values.forEach((p) => {
|
||||||
|
if(p.isPlaying) players.push(p)
|
||||||
|
})
|
||||||
|
|
||||||
|
if(players[0]?.trackTitle) {
|
||||||
|
s += players[0].trackTitle
|
||||||
|
}
|
||||||
|
if(players[0]?.trackAlbum) {
|
||||||
|
s += ' - ' + players[0].trackAlbum
|
||||||
|
}
|
||||||
|
if(players[0]?.trackArtist) {
|
||||||
|
s += ' - ' + players[0].trackArtist
|
||||||
|
}
|
||||||
|
|
||||||
|
media.visible = players.length > 0
|
||||||
|
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
font.pointSize: 11
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,183 @@
|
|||||||
|
import Quickshell
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Services.Notifications
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
|
||||||
|
Item {
|
||||||
|
width: 50
|
||||||
|
height: 30
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
id: barbutton
|
||||||
|
radius: 5
|
||||||
|
anchors.fill: parent
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: ""
|
||||||
|
//text: server.trackedNotifications.values.length == 0 ? "" : ' ' + server.trackedNotifications.values.length
|
||||||
|
//icon.source: ''
|
||||||
|
font.pointSize: 16
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
|
||||||
|
|
||||||
|
menu.visible = true
|
||||||
|
grab.active = true
|
||||||
|
}
|
||||||
|
implicitHeight: parent.height
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
NotificationServer {
|
||||||
|
id: server
|
||||||
|
persistenceSupported: true
|
||||||
|
imageSupported: true
|
||||||
|
actionsSupported: true
|
||||||
|
bodyImagesSupported: true
|
||||||
|
bodySupported: true
|
||||||
|
bodyHyperlinksSupported: true
|
||||||
|
inlineReplySupported: true
|
||||||
|
actionIconsSupported: true
|
||||||
|
|
||||||
|
onNotification: (n) => {
|
||||||
|
n.tracked = true
|
||||||
|
console.log(n?.body)
|
||||||
|
button.text = ' ' + (server.trackedNotifications.values.length + 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
required property PanelWindow window
|
||||||
|
id: root
|
||||||
|
|
||||||
|
PopupWindow {
|
||||||
|
|
||||||
|
id: menu
|
||||||
|
|
||||||
|
anchor.window: window
|
||||||
|
anchor.rect.x: window.width - width
|
||||||
|
anchor.rect.y: 50
|
||||||
|
implicitWidth: 400
|
||||||
|
implicitHeight: 1080 - anchor.rect.y
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
|
||||||
|
color: "#ff706050"
|
||||||
|
|
||||||
|
implicitHeight: parent.height - 20
|
||||||
|
implicitWidth: parent.width
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: lay
|
||||||
|
|
||||||
|
spacing: 10
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
Layout.margins: 5
|
||||||
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignTop
|
||||||
|
implicitWidth: menu.width - 2 * Layout.margins
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
width: parent.width
|
||||||
|
Text {
|
||||||
|
Layout.margins: 5
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
text: 'Notifications'
|
||||||
|
}
|
||||||
|
Button {
|
||||||
|
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||||
|
Layout.margins: 5
|
||||||
|
implicitWidth: 20
|
||||||
|
implicitHeight: 20
|
||||||
|
|
||||||
|
text: 'x'
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
while(server.trackedNotifications.values.length > 0) {
|
||||||
|
server.trackedNotifications.values[0].dismiss()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Repeater {
|
||||||
|
id: rep
|
||||||
|
|
||||||
|
model: server.trackedNotifications.values
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||||
|
Layout.margins: 5
|
||||||
|
radius: 10
|
||||||
|
implicitWidth: parent.width - 2 * Layout.margins
|
||||||
|
implicitHeight: 100
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
Image {
|
||||||
|
//anchors.fill: parent
|
||||||
|
source: {
|
||||||
|
let icon = rep.model[index].image
|
||||||
|
if (icon.includes("?path=")) {
|
||||||
|
const [name, path] = icon.split("?path=");
|
||||||
|
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
|
||||||
|
}
|
||||||
|
return icon
|
||||||
|
}
|
||||||
|
|
||||||
|
Layout.maximumWidth: 100
|
||||||
|
Layout.maximumHeight: 100
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
Layout.topMargin: 10
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
||||||
|
Text {
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
||||||
|
text: rep.model[index].summary
|
||||||
|
Layout.leftMargin: 10
|
||||||
|
font.pointSize: 14
|
||||||
|
}
|
||||||
|
Text {
|
||||||
|
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
|
||||||
|
text: rep.model[index].body
|
||||||
|
Layout.leftMargin: 10
|
||||||
|
font.pointSize: 12
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
|
|
||||||
|
onClicked: mouse => {
|
||||||
|
if(mouse.button == Qt.LeftButton) {
|
||||||
|
button.text = rep.count - 1 <= 0 ? "" : ' ' + (rep.count - 1)
|
||||||
|
rep.model[index].dismiss()
|
||||||
|
//button.text = server.trackedNotifications.values.length == 0 ? "" : ' ' + server.trackedNotifications.values.length
|
||||||
|
} else if(mouse.button == Qt.RightButton) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HyprlandFocusGrab {
|
||||||
|
id: grab
|
||||||
|
windows: [ menu ]
|
||||||
|
onCleared: menu.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
import Quickshell
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
Item {
|
||||||
|
width: 30
|
||||||
|
height: 30
|
||||||
|
|
||||||
|
id: root
|
||||||
|
|
||||||
|
required property PanelWindow window
|
||||||
|
required property real popupOffset
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
width: 30; height: 30
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: " "
|
||||||
|
font.pointSize: 16
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
menu.visible = true
|
||||||
|
grab.active = true
|
||||||
|
}
|
||||||
|
implicitHeight: parent.height
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
PopupWindow {
|
||||||
|
|
||||||
|
id: menu
|
||||||
|
|
||||||
|
anchor.window: window
|
||||||
|
anchor.rect.x: popupOffset
|
||||||
|
anchor.rect.y: 50
|
||||||
|
implicitWidth: 150
|
||||||
|
implicitHeight: 250
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
|
||||||
|
implicitHeight: parent.height - 20
|
||||||
|
implicitWidth: parent.width
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.topMargin: 5
|
||||||
|
x: (parent.width - width) / 2
|
||||||
|
implicitWidth: parent.width - 10
|
||||||
|
implicitHeight: parent.height / 5 - parent.spacing
|
||||||
|
|
||||||
|
text: 'shutdown'
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
x: (parent.width - width) / 2
|
||||||
|
implicitWidth: parent.width - 10
|
||||||
|
implicitHeight: parent.height / 5 - parent.spacing
|
||||||
|
text: 'reboot'
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
x: (parent.width - width) / 2
|
||||||
|
implicitWidth: parent.width - 10
|
||||||
|
implicitHeight: parent.height / 5 - parent.spacing
|
||||||
|
text: 'logout'
|
||||||
|
}
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.bottomMargin: 10
|
||||||
|
x: (parent.width - width) / 2
|
||||||
|
implicitWidth: parent.width - 10
|
||||||
|
implicitHeight: parent.height / 5 - parent.spacing
|
||||||
|
text: 'sleep'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HyprlandFocusGrab {
|
||||||
|
id: grab
|
||||||
|
windows: [ menu ]
|
||||||
|
onCleared: menu.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Services.SystemTray
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
Item {
|
||||||
|
implicitWidth: 10 + rep.count * (2 * lay.spacing + 20)
|
||||||
|
height: 30
|
||||||
|
visible: SystemTray.items.values.length != 0
|
||||||
|
|
||||||
|
id: root
|
||||||
|
required property var window
|
||||||
|
required property real popupOffset
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
anchors.fill: parent
|
||||||
|
RowLayout {
|
||||||
|
id: lay
|
||||||
|
spacing: 4
|
||||||
|
Repeater {
|
||||||
|
id: rep
|
||||||
|
|
||||||
|
model: SystemTray.items
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||||
|
radius: 10
|
||||||
|
implicitWidth: 20
|
||||||
|
implicitHeight: 20
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
Image {
|
||||||
|
anchors.fill: parent
|
||||||
|
source: {
|
||||||
|
let icon = SystemTray.items.values[index].icon
|
||||||
|
if (icon.includes("?path=")) {
|
||||||
|
const [name, path] = icon.split("?path=");
|
||||||
|
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
|
||||||
|
}
|
||||||
|
return icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
|
|
||||||
|
onClicked: (mouse) => {
|
||||||
|
if(mouse.button == Qt.LeftButton) {
|
||||||
|
SystemTray.items.values[index].activate()
|
||||||
|
} else if(mouse.button == Qt.RightButton) {
|
||||||
|
SystemTray.items.values[index].display(root.window, popupOffset, 40)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
import Quickshell // for PanelWindow
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Services.Pipewire
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
width: 100; height: 30
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: " " + Math.floor(Pipewire.defaultAudioSink?.audio?.volume * 100) + "%"
|
||||||
|
font.pointSize: 12
|
||||||
|
implicitHeight: parent.height
|
||||||
|
|
||||||
|
PwObjectTracker {
|
||||||
|
objects: [ Pipewire.defaultAudioSink ]
|
||||||
|
}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
menu.visible = true
|
||||||
|
grab.active = true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
required property var window
|
||||||
|
required property real popupOffset
|
||||||
|
id: root
|
||||||
|
|
||||||
|
PopupWindow {
|
||||||
|
|
||||||
|
id: menu
|
||||||
|
|
||||||
|
anchor.window: window
|
||||||
|
anchor.rect.x: popupOffset
|
||||||
|
anchor.rect.y: 50
|
||||||
|
implicitWidth: 250
|
||||||
|
implicitHeight: 150
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
|
||||||
|
implicitHeight: parent.height - 20
|
||||||
|
implicitWidth: parent.width
|
||||||
|
|
||||||
|
ScrollView {
|
||||||
|
ColumnLayout {
|
||||||
|
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: 'Output Devices'
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: 'Input Devices'
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
/*Repeater {
|
||||||
|
id: in
|
||||||
|
|
||||||
|
model: {
|
||||||
|
set = []
|
||||||
|
Pipewire.nodes.values.forEach(n => { !n.isSink && !n.isStream ? set.push(n) : return })
|
||||||
|
return set
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: in.model[index].nickname
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
HyprlandFocusGrab {
|
||||||
|
id: grab
|
||||||
|
windows: [ menu ]
|
||||||
|
onCleared: menu.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
import Quickshell
|
||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
Item {
|
||||||
|
implicitWidth: 30
|
||||||
|
implicitHeight: 30
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
anchors.fill: parent
|
||||||
|
Button {
|
||||||
|
id: button
|
||||||
|
text: " "
|
||||||
|
font.pointSize: 16
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
menu.visible = true
|
||||||
|
grab.active = true
|
||||||
|
}
|
||||||
|
implicitHeight: parent.height
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
property var window: null
|
||||||
|
id: root
|
||||||
|
|
||||||
|
PopupWindow {
|
||||||
|
|
||||||
|
id: menu
|
||||||
|
|
||||||
|
anchor.window: window
|
||||||
|
anchor.rect.x: root.parent.x + root.parent.width - width
|
||||||
|
anchor.rect.y: 50
|
||||||
|
implicitWidth: 250
|
||||||
|
implicitHeight: 150
|
||||||
|
visible: false
|
||||||
|
|
||||||
|
color: "transparent"
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
|
||||||
|
implicitHeight: parent.height - 20
|
||||||
|
implicitWidth: parent.width
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Button {
|
||||||
|
Layout.topMargin: 5
|
||||||
|
x: (parent.width - width) / 2
|
||||||
|
implicitWidth: parent.width - 10
|
||||||
|
implicitHeight: parent.height / 5 - parent.spacing
|
||||||
|
|
||||||
|
text: 'shutdown'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HyprlandFocusGrab {
|
||||||
|
id: grab
|
||||||
|
windows: [ menu ]
|
||||||
|
onCleared: menu.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
import QtQuick // for Text
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
|
Item {
|
||||||
|
implicitWidth: 10 + rep.count * (2 * lay.spacing + 25)
|
||||||
|
implicitHeight: 30
|
||||||
|
|
||||||
|
Component.onCompleted: Hyprland.refreshWorkspaces()
|
||||||
|
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
radius: 5
|
||||||
|
anchors.fill: parent
|
||||||
|
RowLayout {
|
||||||
|
id: lay
|
||||||
|
Repeater {
|
||||||
|
id: rep
|
||||||
|
|
||||||
|
property var ws: {
|
||||||
|
let arr = [];
|
||||||
|
Hyprland.workspaces.values.forEach((w) => { if(w.id > 0) arr.push(w) })
|
||||||
|
return arr;
|
||||||
|
}
|
||||||
|
|
||||||
|
model: ws
|
||||||
|
ClippingWrapperRectangle {
|
||||||
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||||
|
radius: 10
|
||||||
|
implicitWidth: 25
|
||||||
|
Button {
|
||||||
|
background: Rectangle {
|
||||||
|
color: Hyprland.focusedWorkspace.id == rep.model[index].id ? "#ffff00ff" : "#ff7744dd"
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
|
text: rep.model[index].id
|
||||||
|
onClicked: rep.model[index].activate()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
14
home-manager/users/nathan/dotfiles/quickshell/shell.qml
Normal file
14
home-manager/users/nathan/dotfiles/quickshell/shell.qml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
||||||
|
//@ pragma Env QSG_RENDER_LOOP=threaded
|
||||||
|
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
|
||||||
|
|
||||||
|
//@ pragma UseQApplication
|
||||||
|
|
||||||
|
import Quickshell // for ShellRoot
|
||||||
|
import qs.modules
|
||||||
|
|
||||||
|
ShellRoot {
|
||||||
|
Bar {
|
||||||
|
id: bar
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
xfce.thunar
|
xfce.thunar
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
blueberry
|
blueberry
|
||||||
lxqt.lxqt-policykit
|
pkgs-us.quickshell
|
||||||
] else []) ++ (if !config.homeconfig.minimal then [
|
] else []) ++ (if !config.homeconfig.minimal then [
|
||||||
cava
|
cava
|
||||||
android-tools
|
android-tools
|
||||||
|
|||||||
@@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
|
||||||
graphics.enable = true;
|
|
||||||
|
|
||||||
nvidia = {
|
nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = false;
|
open = false;
|
||||||
@@ -42,11 +40,11 @@
|
|||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver = {
|
xserver = {
|
||||||
#enable = true;
|
enable = false;
|
||||||
videoDrivers = ["nvidia"];
|
videoDrivers = ["nvidia"];
|
||||||
};
|
};
|
||||||
displayManager = {
|
displayManager = {
|
||||||
enable = true;
|
enable = false;
|
||||||
defaultSession = "hyprland";
|
defaultSession = "hyprland";
|
||||||
autoLogin = {
|
autoLogin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -54,6 +52,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
pulseaudio.enable = false;
|
pulseaudio.enable = false;
|
||||||
|
|
||||||
|
hardware.openrgb = {
|
||||||
|
enable = true;
|
||||||
|
motherboard = "amd";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
systemd.extraConfig = "DefaultLimitNOFILE=2048";
|
||||||
@@ -118,7 +121,7 @@
|
|||||||
sysconfig = {
|
sysconfig = {
|
||||||
remoteBuildHost = true;
|
remoteBuildHost = true;
|
||||||
host = "homebox";
|
host = "homebox";
|
||||||
graphical = true;
|
graphical = false;
|
||||||
users = {
|
users = {
|
||||||
nathan = {
|
nathan = {
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
@@ -133,22 +136,23 @@
|
|||||||
{
|
{
|
||||||
homeconfig = {
|
homeconfig = {
|
||||||
minimal = false;
|
minimal = false;
|
||||||
hyprland.enable = true;
|
hyprland.enable = false;
|
||||||
hyprlock.enable = true;
|
hyprlock.enable = false;
|
||||||
wal.enable = true;
|
wal.enable = true;
|
||||||
mpd.enable = true;
|
mpd.enable = true;
|
||||||
hyprpanel.enable = true;
|
hyprpanel.enable = false;
|
||||||
calcurse.enable = true;
|
calcurse.enable = true;
|
||||||
rofi.enable = true;
|
rofi.enable = false;
|
||||||
firefox.enable = true;
|
firefox.enable = false;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hypridle.enable = lib.mkForce false;
|
services.hypridle.enable = lib.mkForce false;
|
||||||
|
|
||||||
home.packages = [
|
home.packages = with pkgs; [
|
||||||
pkgs.wayvnc
|
wayvnc
|
||||||
|
openrgb
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@@ -165,15 +169,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
hyprland.enable = true;
|
hyprland.enable = false;
|
||||||
hyprpanel.enable = true;
|
hyprpanel.enable = false;
|
||||||
steam.enable = false;
|
steam.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualization = {
|
virtualization = {
|
||||||
traefik.enable = true;
|
traefik.enable = true;
|
||||||
jellyfin.enable = true;
|
jellyfin.enable = true;
|
||||||
"blunkall.us".enable = true;
|
"esotericbytes.com".enable = true;
|
||||||
nextcloud.enable = true;
|
nextcloud.enable = true;
|
||||||
ntfy.enable = false;
|
ntfy.enable = false;
|
||||||
gitea.enable = true;
|
gitea.enable = true;
|
||||||
@@ -192,7 +196,7 @@
|
|||||||
rustdesk.enable = false; #broken
|
rustdesk.enable = false; #broken
|
||||||
#pihole.enable = false; #broken
|
#pihole.enable = false; #broken
|
||||||
code-server.enable = false;
|
code-server.enable = false;
|
||||||
novnc.enable = true;
|
novnc.enable = false;
|
||||||
minecraft.enable = true;
|
minecraft.enable = true;
|
||||||
|
|
||||||
sandbox.enable = false;
|
sandbox.enable = false;
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
home-manager.users.nathan.wayland.windowManager.hyprland.extraConfig = lib.mkIf (config.specialisation != {}) ''
|
home-manager.users.nathan.wayland.windowManager.hyprland.extraConfig = lib.mkIf (config.specialisation != {}) ''
|
||||||
monitor=eDP-1,1920x1080@60,0x0,1
|
monitor=eDP-1,1920x1080@60,0x0,1
|
||||||
|
monitor=eDP-1, addreserved, 40,0,0,0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
@@ -106,7 +107,6 @@
|
|||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
quickshell.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
config = lib.mkIf config.sysconfig.virtualization.gitea.enable {
|
config = lib.mkIf config.sysconfig.virtualization.gitea.enable {
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hosts."192.168.100.20" = [ "gitea.blunkall.us" ];
|
hosts."192.168.100.20" = [ "gitea.esotericbytes.com" ];
|
||||||
|
|
||||||
nat.internalInterfaces = [ "ve-gitea" ];
|
nat.internalInterfaces = [ "ve-gitea" ];
|
||||||
};
|
};
|
||||||
@@ -77,9 +77,9 @@
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "gitea.blunkall.us";
|
DOMAIN = "gitea.esotericbytes.com";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
ROOT_URL = "https://gitea.blunkall.us/";
|
ROOT_URL = "https://gitea.esotericbytes.com/";
|
||||||
};
|
};
|
||||||
service = {
|
service = {
|
||||||
DISABLE_REGISTRATION = false;
|
DISABLE_REGISTRATION = false;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
database.passwordFile = "/etc/keycloak/dbpass";
|
database.passwordFile = "/etc/keycloak/dbpass";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
hostname = "auth.blunkall.us";
|
hostname = "auth.esotericbytes.com";
|
||||||
|
|
||||||
http-enabled = true;
|
http-enabled = true;
|
||||||
|
|
||||||
|
|||||||
@@ -28,14 +28,21 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
environment = {
|
||||||
|
N8N_DIAGNOSTICS_ENABLED = "false";
|
||||||
|
N8N_VERSION_NOTIFICATIONS_ENABLED = "false";
|
||||||
|
N8N_TEMPLATES_ENABLED = "false";
|
||||||
|
|
||||||
settings = {
|
EXTERNAL_FRONTEND_HOOKS_URLS = "";
|
||||||
|
N8N_DIAGNOSTICS_CONFIG_FRONTEND = "";
|
||||||
|
N8N_DIAGNOSTICS_CONFIG_BACKEND = "";
|
||||||
|
|
||||||
|
N8N_SECURE_COOKIE = "false";
|
||||||
};
|
};
|
||||||
|
|
||||||
#webhookUrl = "https://n8n.blunkall.us/";
|
#webhookUrl = "https://n8n.blunkall.us/";
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
systemd.services.n8n = {
|
systemd.services.n8n = {
|
||||||
environment = {
|
environment = {
|
||||||
N8N_DIAGNOSTICS_ENABLED = "false";
|
N8N_DIAGNOSTICS_ENABLED = "false";
|
||||||
@@ -49,7 +56,7 @@
|
|||||||
N8N_SECURE_COOKIE = "false";
|
N8N_SECURE_COOKIE = "false";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
pkgs-us = import inputs.nixpkgs-us {
|
pkgs-com = import inputs.nixpkgs-us {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
@@ -26,9 +26,9 @@
|
|||||||
enable = config.sysconfig.services.netbird.enable;
|
enable = config.sysconfig.services.netbird.enable;
|
||||||
ui = {
|
ui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#package = pkgs-us.netbird-ui;
|
#package = pkgs-com.netbird-ui;
|
||||||
};
|
};
|
||||||
#package = pkgs-us.netbird;
|
#package = pkgs-com.netbird;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
services.nginx.virtualHosts."vpn.blunkall.us" = {
|
services.nginx.virtualHosts."vpn.esotericbytes.com" = {
|
||||||
listen = [
|
listen = [
|
||||||
{
|
{
|
||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
@@ -82,13 +82,13 @@
|
|||||||
server = {
|
server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNginx = true;
|
enableNginx = true;
|
||||||
domain = "vpn.blunkall.us";
|
domain = "vpn.esotericbytes.com";
|
||||||
|
|
||||||
dashboard = {
|
dashboard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNginx = true;
|
enableNginx = true;
|
||||||
settings = {
|
settings = {
|
||||||
AUTH_AUTHORITY = "https://auth.blunkall.us/realms/General";
|
AUTH_AUTHORITY = "https://auth.esotericbytes.com/realms/General";
|
||||||
AUTH_CLIENT_ID = "netbird";
|
AUTH_CLIENT_ID = "netbird";
|
||||||
AUTH_SUPPORTED_SCOPES = "openid profile email offline_access api";
|
AUTH_SUPPORTED_SCOPES = "openid profile email offline_access api";
|
||||||
AUTH_AUDIENCE = "netbird";
|
AUTH_AUDIENCE = "netbird";
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
NETBIRD_TOKEN_SOURCE = "accessToken";
|
NETBIRD_TOKEN_SOURCE = "accessToken";
|
||||||
};
|
};
|
||||||
|
|
||||||
package = pkgs-us.netbird-dashboard;
|
package = pkgs-com.netbird-dashboard;
|
||||||
};
|
};
|
||||||
management = {
|
management = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -107,19 +107,19 @@
|
|||||||
|
|
||||||
dnsDomain = "vpn";
|
dnsDomain = "vpn";
|
||||||
|
|
||||||
turnDomain = "vpn.blunkall.us";
|
turnDomain = "vpn.esotericbytes.com";
|
||||||
turnPort = 3478;
|
turnPort = 3478;
|
||||||
|
|
||||||
logLevel = "DEBUG";
|
logLevel = "DEBUG";
|
||||||
|
|
||||||
oidcConfigEndpoint = "https://auth.blunkall.us/realms/General/.well-known/openid-configuration";
|
oidcConfigEndpoint = "https://auth.esotericbytes.com/realms/General/.well-known/openid-configuration";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
"TURNConfig" = {
|
"TURNConfig" = {
|
||||||
"Turns" = [
|
"Turns" = [
|
||||||
{
|
{
|
||||||
"Proto" = "udp";
|
"Proto" = "udp";
|
||||||
"URI" = "turn:vpn.blunkall.us:3478";
|
"URI" = "turn:vpn.esotericbytes.com:3478";
|
||||||
"Username" = "netbird";
|
"Username" = "netbird";
|
||||||
"Password"._secret = "/etc/netbird/coturnPass";
|
"Password"._secret = "/etc/netbird/coturnPass";
|
||||||
}
|
}
|
||||||
@@ -132,14 +132,14 @@
|
|||||||
|
|
||||||
"HttpConfig" = {
|
"HttpConfig" = {
|
||||||
"Address" = "0.0.0.0:443";
|
"Address" = "0.0.0.0:443";
|
||||||
"AuthIssuer" = "https://auth.blunkall.us/realms/General";
|
"AuthIssuer" = "https://auth.esotericbytes.com/realms/General";
|
||||||
"AuthAudience" = "netbird";
|
"AuthAudience" = "netbird";
|
||||||
"AuthKeysLocation" = "https://auth.blunkall.us/realms/General/protocol/openid-connect/certs";
|
"AuthKeysLocation" = "https://auth.esotericbytes.com/realms/General/protocol/openid-connect/certs";
|
||||||
"AuthUserIDClaim" = "";
|
"AuthUserIDClaim" = "";
|
||||||
"CertFile" = "";
|
"CertFile" = "";
|
||||||
"CertKey" = "";
|
"CertKey" = "";
|
||||||
"IdpSignKeyRefreshEnabled" = false;
|
"IdpSignKeyRefreshEnabled" = false;
|
||||||
"OIDCConfigEndpoint" = "https://auth.blunkall.us/realms/General/.well-known/openid-configuration";
|
"OIDCConfigEndpoint" = "https://auth.esotericbytes.com/realms/General/.well-known/openid-configuration";
|
||||||
};
|
};
|
||||||
|
|
||||||
"DeviceAuthorizationFlow" = {
|
"DeviceAuthorizationFlow" = {
|
||||||
@@ -150,8 +150,8 @@
|
|||||||
"Domain" = "";
|
"Domain" = "";
|
||||||
"ClientID" = "";
|
"ClientID" = "";
|
||||||
"ClientSecret" = "";
|
"ClientSecret" = "";
|
||||||
"TokenEndpoint" = "https://auth.blunkall.us/realms/General/protocol/openid-connect/token";
|
"TokenEndpoint" = "https://auth.esotericbytes.com/realms/General/protocol/openid-connect/token";
|
||||||
"DeviceAuthEndpoint" = "https://auth.blunkall.us/realms/General/protocol/openid-connect/auth/device";
|
"DeviceAuthEndpoint" = "https://auth.esotericbytes.com/realms/General/protocol/openid-connect/auth/device";
|
||||||
"Scope" = "openid";
|
"Scope" = "openid";
|
||||||
"UseIDToken" = false;
|
"UseIDToken" = false;
|
||||||
"RedirectURLs" = null;
|
"RedirectURLs" = null;
|
||||||
@@ -161,15 +161,15 @@
|
|||||||
"IdpManagerConfig" = {
|
"IdpManagerConfig" = {
|
||||||
"ManagerType" = "keycloak";
|
"ManagerType" = "keycloak";
|
||||||
"ClientConfig" = {
|
"ClientConfig" = {
|
||||||
"Issuer" = "https://auth.blunkall.us/realms/General";
|
"Issuer" = "https://auth.esotericbytes.com/realms/General";
|
||||||
"TokenEndpoint" = "https://auth.blunkall.us/realms/General/protocol/openid-connect/token";
|
"TokenEndpoint" = "https://auth.esotericbytes.com/realms/General/protocol/openid-connect/token";
|
||||||
"ClientID" = "netbird-backend";
|
"ClientID" = "netbird-backend";
|
||||||
"ClientSecret" = "QuqjTOAHKE6N6jJqkB1F1RGo3kqUhEdg";
|
"ClientSecret" = "QuqjTOAHKE6N6jJqkB1F1RGo3kqUhEdg";
|
||||||
"GrantType" = "client_credentials";
|
"GrantType" = "client_credentials";
|
||||||
};
|
};
|
||||||
|
|
||||||
"ExtraConfig" = {
|
"ExtraConfig" = {
|
||||||
"AdminEndpoint" = "https://auth.blunkall.us/admin/realms/General";
|
"AdminEndpoint" = "https://auth.esotericbytes.com/admin/realms/General";
|
||||||
};
|
};
|
||||||
"Auth0ClientCredentials" = null;
|
"Auth0ClientCredentials" = null;
|
||||||
"AzureClientCredentials" = null;
|
"AzureClientCredentials" = null;
|
||||||
@@ -183,8 +183,8 @@
|
|||||||
"ClientID" = "netbird";
|
"ClientID" = "netbird";
|
||||||
"ClientSecret" = "";
|
"ClientSecret" = "";
|
||||||
"Domain" = "";
|
"Domain" = "";
|
||||||
"AuthorizationEndpoint" = "https://auth.blunkall.us/realms/General/protocol/openid-connect/auth";
|
"AuthorizationEndpoint" = "https://auth.esotericbytes.com/realms/General/protocol/openid-connect/auth";
|
||||||
"TokenEndpoint" = "https://auth.blunkall.us/realms/General/protocol/openid-connect/token";
|
"TokenEndpoint" = "https://auth.esotericbytes.com/realms/General/protocol/openid-connect/token";
|
||||||
"Scope" = "openid profile email offline_access api";
|
"Scope" = "openid profile email offline_access api";
|
||||||
"RedirectURLs" = [
|
"RedirectURLs" = [
|
||||||
"http://localhost:53000"
|
"http://localhost:53000"
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
extraAppsEnable = true;
|
extraAppsEnable = true;
|
||||||
settings = {
|
settings = {
|
||||||
overwriteprotocol = "https";
|
overwriteprotocol = "https";
|
||||||
trusted_domains = [ "nextcloud.blunkall.us" ];
|
trusted_domains = [ "nextcloud.esotericbytes.com" ];
|
||||||
trusted_proxies = [ "192.168.100.11" ];
|
trusted_proxies = [ "192.168.100.11" ];
|
||||||
default_phone_region = "US";
|
default_phone_region = "US";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
{ config, lib, ... }: {
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
options.sysconfig.virtualization."blunkall.us".enable = lib.mkOption {
|
options.sysconfig.virtualization."esotericbytes.com".enable = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.virtualization."blunkall.us".enable {
|
config = lib.mkIf config.sysconfig.virtualization."esotericbytes.com".enable {
|
||||||
|
|
||||||
containers.blunkall-us = {
|
containers.esotericbytes-com = {
|
||||||
|
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
"/var/www/data" = {
|
"/var/www/data" = {
|
||||||
hostPath = "/ssd1/blunkall_us/data";
|
hostPath = "/ssd1/esotericbytes-com/data";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -26,12 +26,12 @@
|
|||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"blunkall.us" = {
|
"esotericbytes.com" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
root = "/var/www/data";
|
root = "/var/www/data";
|
||||||
};
|
};
|
||||||
"homebox.vpn/blunkall" = {
|
"homebox.vpn/esotericbytes" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
root = "/var/www/data";
|
root = "/var/www/data";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
config = lib.mkIf config.sysconfig.virtualization.traefik.enable {
|
config = lib.mkIf config.sysconfig.virtualization.traefik.enable {
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hosts."192.168.100.11" = [ "blunkall.us" "*.blunkall.us" "traefik.local" ];
|
hosts."192.168.100.11" = [ "esotericbytes.com" "*.esotericbytes.com" "traefik.local" ];
|
||||||
firewall.allowedTCPPorts = [ 22 80 443];
|
firewall.allowedTCPPorts = [ 22 80 443];
|
||||||
|
|
||||||
nat.internalInterfaces = [ "ve-traefik" ];
|
nat.internalInterfaces = [ "ve-traefik" ];
|
||||||
@@ -74,8 +74,8 @@
|
|||||||
http.tls = {
|
http.tls = {
|
||||||
certResolver = "cloudflare";
|
certResolver = "cloudflare";
|
||||||
domains = {
|
domains = {
|
||||||
main = "blunkall.us";
|
main = "esotericbytes.com";
|
||||||
sans = [ "*.blunkall.us" "blunkall.us" ];
|
sans = [ "*.esotericbytes.com" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -105,88 +105,88 @@
|
|||||||
routers = {
|
routers = {
|
||||||
homepageSecure = {
|
homepageSecure = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`blunkall.us`) || Host(`www.blunkall.us`) || (Host(`homebox.vpn`) && PathPrefix(`/blunkall`))";
|
rule = "Host(`esotericbytes.com`) || Host(`www.esotericbytes.com`)";
|
||||||
service = "homepage";
|
service = "homepage";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};
|
};
|
||||||
/*remote = {
|
/*remote = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`remote.blunkall.us`)";
|
rule = "Host(`remote.esotericbytes.com`)";
|
||||||
service = "novnc";
|
service = "novnc";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
#middlewares = [ "authentik" ];
|
#middlewares = [ "authentik" ];
|
||||||
};*/
|
};*/
|
||||||
/*homeassistant = {
|
/*homeassistant = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`hass.blunkall.us`)";
|
rule = "Host(`hass.esotericbytes.com`)";
|
||||||
service = "homeassistant";
|
service = "homeassistant";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};*/
|
};*/
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`jellyfin.blunkall.us`)";
|
rule = "Host(`jellyfin.esotericbytes.com`)";
|
||||||
service = "jellyfin";
|
service = "jellyfin";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};
|
};
|
||||||
|
|
||||||
auth = {
|
auth = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`auth.blunkall.us`)";
|
rule = "Host(`auth.esotericbytes.com`)";
|
||||||
service = "keycloak";
|
service = "keycloak";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};
|
};
|
||||||
/*gitlab = {
|
/*gitlab = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`gitlab.blunkall.us`)";
|
rule = "Host(`gitlab.esotericbytes.com`)";
|
||||||
service = "gitlab";
|
service = "gitlab";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};*/
|
};*/
|
||||||
gitea = {
|
gitea = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`gitea.blunkall.us`)";
|
rule = "Host(`gitea.esotericbytes.com`)";
|
||||||
service = "gitea";
|
service = "gitea";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};
|
};
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`nextcloud.blunkall.us`)";
|
rule = "Host(`nextcloud.esotericbytes.com`)";
|
||||||
service = "nextcloud";
|
service = "nextcloud";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
middlewares = [
|
middlewares = [
|
||||||
"nextcloud_redirectregex"
|
"nextcloud_redirectregex"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
traefik = {
|
/*traefik = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`192.168.100.11`) || Host(`homebox.vpn`)";
|
rule = "Host(`192.168.100.11`) || Host(`homebox.vpn`)";
|
||||||
service = "api@internal";
|
service = "api@internal";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
#middlewares = [ "authentik" ];
|
#middlewares = [ "authentik" ];
|
||||||
};
|
};*/
|
||||||
/*ntfy = {
|
/*ntfy = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`ntfy.blunkall.us`)";
|
rule = "Host(`ntfy.esotericbytes.com`)";
|
||||||
service = "ntfy";
|
service = "ntfy";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};*/
|
};*/
|
||||||
|
|
||||||
/*pihole = {
|
/*pihole = {
|
||||||
entryPoints = [ "localsecure" ];
|
entryPoints = [ "localsecure" ];
|
||||||
rule = "Host(`pihole.blunkall.us`)";
|
rule = "Host(`pihole.esotericbytes.com`)";
|
||||||
service = "pihole";
|
service = "pihole";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};*/
|
};*/
|
||||||
|
|
||||||
netbird = {
|
netbird = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`vpn.blunkall.us`)";
|
rule = "Host(`vpn.esotericbytes.com`)";
|
||||||
service = "netbird";
|
service = "netbird";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};
|
};
|
||||||
|
|
||||||
/*n8n = {
|
/*n8n = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`n8n.blunkall.us`)";
|
rule = "Host(`n8n.esotericbytes.com`)";
|
||||||
service = "n8n";
|
service = "n8n";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
};*/
|
};*/
|
||||||
@@ -197,8 +197,8 @@
|
|||||||
|
|
||||||
nextcloud_redirectregex.redirectregex = {
|
nextcloud_redirectregex.redirectregex = {
|
||||||
permanent = true;
|
permanent = true;
|
||||||
regex = "https://nextcloud.blunkall.us/.well-known/(?:card|cal)dav";
|
regex = "https://nextcloud.esotericbytes.com/.well-known/(?:card|cal)dav";
|
||||||
replacement = "https://nextcloud.blunkall.us/remote.php/dav";
|
replacement = "https://nextcloud.esotericbytes.com/remote.php/dav";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -98,11 +98,7 @@
|
|||||||
openwakeword = lib.mkIf config.sysconfig.virtualization.wyoming.openwakeword {
|
openwakeword = lib.mkIf config.sysconfig.virtualization.wyoming.openwakeword {
|
||||||
enable = true;
|
enable = true;
|
||||||
uri = "tcp://0.0.0.0:11432";
|
uri = "tcp://0.0.0.0:11432";
|
||||||
preloadModels = [
|
|
||||||
"alexa"
|
|
||||||
"hey_jarvis"
|
|
||||||
"ok_nabu"
|
|
||||||
];
|
|
||||||
threshold = 0.5;
|
threshold = 0.5;
|
||||||
customModelsDirectories = [
|
customModelsDirectories = [
|
||||||
#./wake_words
|
#./wake_words
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
homeconfig = {
|
homeconfig = {
|
||||||
host = config.sysconfig.host;
|
host = config.sysconfig.host;
|
||||||
name = x;
|
name = x;
|
||||||
graphical = config.sysconfig.graphical;
|
graphical = lib.mkDefault config.sysconfig.graphical;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
] ++ (if inputs ? ${x} then [ (inputs.${x} /*{ config = config.home-manager.users.${x}; inherit lib pkgs inputs; }*/) ] else [])
|
] ++ (if inputs ? ${x} then [ (inputs.${x} /*{ config = config.home-manager.users.${x}; inherit lib pkgs inputs; }*/) ] else [])
|
||||||
|
|||||||
Reference in New Issue
Block a user