diff --git a/home-manager/nix-on-droid/default.nix b/home-manager/nix-on-droid/default.nix index 9b6d927..5a10ca1 100644 --- a/home-manager/nix-on-droid/default.nix +++ b/home-manager/nix-on-droid/default.nix @@ -5,7 +5,6 @@ ./services ./packages ./dotfiles - ./impermanence ]; options.homeconfig = { @@ -22,18 +21,11 @@ config = { - home.stateVersion = "23.11"; + home.stateVersion = "24.11"; - home.username = "nathan"; + home.username = "nix-on-droid"; - home.homeDirectory = "/home/nathan"; - - home.pointerCursor = { - gtk.enable = true; - package = pkgs.bibata-cursors; - name = "Bibata-Modern-Classic"; - size = 16; - }; + home.homeDirectory = "/data/data/com.termux.nix/files/home"; gtk = { enable = true; @@ -43,8 +35,6 @@ iconTheme.name = "rose-pine-moon"; }; - services.mpris-proxy.enable = true; - programs.ssh.enable = true; programs.home-manager.enable = config.homeconfig.home-manager.enable; diff --git a/home-manager/nix-on-droid/dotfiles/ags/README.md b/home-manager/nix-on-droid/dotfiles/ags/README.md deleted file mode 100755 index ed56012..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/README.md +++ /dev/null @@ -1,15 +0,0 @@ - -# Starter Config - -if suggestions don't work, first make sure -you have TypeScript LSP working in your editor - -if you do not want typechecking only suggestions - -```json -// tsconfig.json -"checkJs": false -``` - -types are symlinked to: -/home/nathan/.nix-profile/share/com.github.Aylur.ags/types diff --git a/home-manager/nix-on-droid/dotfiles/ags/bluetooth.js b/home-manager/nix-on-droid/dotfiles/ags/bluetooth.js deleted file mode 100755 index 3158673..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/bluetooth.js +++ /dev/null @@ -1,34 +0,0 @@ -const bluetooth = await Service.import("bluetooth") - - -export function ConnectedList() { - return Widget.Box({ - class_name: "btdevices", - setup: self => self.hook(bluetooth, self => { - self.children = bluetooth.connected_devices - .map(({ address, icon_name, name }) => Widget.EventBox({ - child: Widget.Icon(icon_name + '-symbolic'), - tooltip_text: name, - on_primary_click: () => { - bluetooth.getDevice(address).setConnection(false) - }, - })); - - self.visible = bluetooth.connected_devices.length > 0; - }, 'notify::connected-devices'), - }) -} - - -export default function Bluetooth() { - - - - return Widget.EventBox({ - tooltip_text: bluetooth.bind('enabled').as(on => on ? 'Enabled' : 'Disabled'), - child: Widget.Icon({ - icon: bluetooth.bind('enabled').as(on => - `bluetooth-${on ? 'active' : 'disabled'}-symbolic`), - }) - }) -} diff --git a/home-manager/nix-on-droid/dotfiles/ags/brightness.js b/home-manager/nix-on-droid/dotfiles/ags/brightness.js deleted file mode 100755 index e69de29..0000000 diff --git a/home-manager/nix-on-droid/dotfiles/ags/clock.js b/home-manager/nix-on-droid/dotfiles/ags/clock.js deleted file mode 100755 index c2904ca..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/clock.js +++ /dev/null @@ -1,14 +0,0 @@ - - -const date = Variable("", { - poll: [1000, 'date "+%H:%M %b %e."'], -}) - -function Clock() { - return Widget.Label({ - class_name: "clock", - label: date.bind(), - }) -} - -export default Clock \ No newline at end of file diff --git a/home-manager/nix-on-droid/dotfiles/ags/config.js b/home-manager/nix-on-droid/dotfiles/ags/config.js deleted file mode 100755 index 2e754e4..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/config.js +++ /dev/null @@ -1,132 +0,0 @@ - -const hyprland = await Service.import("hyprland") -//const systemtray = await Service.import("systemtray") - -import Clock from './clock.js' -import Launcher from './launcher.js' -import Media from './media.js' -import Notification from './notif.js' -import Power from './power.js' -import Workspaces from './workspaces.js' -import Settings, {SettingsWindow} from './settings.js' -import { ConnectedList } from './bluetooth.js' - -import { NotificationPopups } from './notification.js' - - -// widgets can be only assigned as a child in one container -// so to make a reuseable widget, make it a function -// then you can simply instantiate one by calling it - - - -////////////////////////////////////////////////////////////// -// layout of the bar -function Left() { - return Widget.Box({ - spacing: 8, - margin_bottom: 5, - children: [ - Launcher(), - Workspaces(), - ], - }) -} - -function Center() { - return Widget.Box({ - spacing: 8, - margin_bottom: 5, - children: [ - Media(), - Clock(), - Notification(), - ], - }) -} - -function Right() { - return Widget.Box({ - hpack: "end", - spacing: 8, - margin_bottom: 5, - children: [ - ConnectedList(), - Settings(), - Power(), - ], - }) -} - -/////////////////////////////////////////////////////////// -//windows - -function Bar(monitor = 0) { - return Widget.Window({ - name: `bar-${monitor}`, // name has to be unique - class_name: "bar", - monitor, - anchor: ["top", "left", "right"], - height_request: 32, - vexpand: false, - exclusivity: "exclusive", - child: Widget.CenterBox({ - start_widget: Left(), - center_widget: Center(), - end_widget: Right(), - }), - }) -} - - - -function pickMonitor() { - - let n = 0 - - for(let i = 0; i < hyprland.monitors.length; i++) { - print(hyprland.getMonitor(i).name) - if(hyprland.getMonitor(i).name == 'eDP-1') - n = i - break - } - - return n; -} - -//////////////////////////////////////////////////////////// -//App config - -let m = 0 - -App.config({ - style: "/home/nathan/.cache/wal/colors-ags.css", - windows: [ - Bar(m), - SettingsWindow(m), - NotificationPopups(m) - // you can call it, for each monitor - // Bar(0), - // Bar(1) - ], -}) - -App.toggleWindow(App.windows[1].name) - -// Utils.timeout(100, () => Utils.notify({ -// summary: "Notification Popup Example", -// iconName: "info-symbolic", -// body: "Lorem ipsum dolor sit amet, qui minim labore adipisicing " -// + "minim sint cillum sint consectetur cupidatat.", -// actions: { -// "Cool": () => print("pressed Cool"), -// }, -// })) - -Utils.monitorFile(`/home/nathan/.cache/wal`, () => { - const css = `/home/nathan/.cache/wal/colors-ags.css` - App.resetCss() - App.applyCss(css) -}) - -export { } diff --git a/home-manager/nix-on-droid/dotfiles/ags/media.js b/home-manager/nix-on-droid/dotfiles/ags/media.js deleted file mode 100755 index 48a0771..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/media.js +++ /dev/null @@ -1,141 +0,0 @@ -const mpris = await Service.import("mpris") - - -export default function Media() { - const track = Utils.watch("", mpris, "player-changed", () => { - if (mpris.players[0]) { - const { track_artists, track_title } = mpris.players[0] - return `${track_artists.join(", ")} -${track_title}` - } else { - return "Nothing is playing" - } - }) - - return Widget.EventBox({ - class_name: "media", - on_primary_click: () => mpris.getPlayer("")?.playPause(), - on_scroll_up: () => mpris.getPlayer("")?.next(), - on_scroll_down: () => mpris.getPlayer("")?.previous(), - child: Widget.Icon({icon: 'emblem-music-symbolic'}), - }) -} - -function PlayerImg(player) { - return Widget.Box({ - hpack: "start", - width_request: 80, - height_request: 80, - css: player.bind("track_cover_url").transform(p => ` - background-image: url('${p || player.cover_path || '/home/nathan/Pictures/symbols/audio.png'}'); - background-size: contain; - background-repeat: no-repeat; - background-position: center; - `), - }) - -} - - -function PlayerGUI(player) { - - - return Widget.Box({ - class_name: "playerbox", - height_request: 200, - vexpand: false, - vertical: true, - children: [ - Widget.Box({ - vertical: false, - margin: 15, - hpack: "start", - spacing: 20, - children: [ - PlayerImg(player), - Widget.Box({ - vertical: true, - children: [ - Widget.Label({ - hpack: "start", - max_width_chars: 30, - truncate: "end", - label: player.bind('track-title').as(t => t) - }), - Widget.Label({ - hpack: "start", - max_width_chars: 30, - truncate: "end", - label: player.bind("track_artists").transform(a => a.join(", ")), - wrap: true, - }), - Widget.Label({ - hpack: "start", - max_width_chars: 30, - truncate: "end", - label: player.bind('track-album').as(t => t) - }), - ] - }) - ], - - }), - - Widget.Slider({ - class_name: "position", - draw_value: false, - on_change: ({ value }) => player.position = value * player.length, - visible: player.bind("length").as(l => l > 0), - setup: self => { - function update() { - const value = player.position / player.length - self.value = value > 0 ? value : 0 - } - self.hook(player, update) - self.hook(player, update, "position") - self.poll(1000, update) - }, - }), - - Widget.Box({ - vertical: false, - hpack: "center", - spacing: 20, - children: [ - Widget.Button({ - child: Widget.Icon({ icon: 'media-skip-backward-symbolic'}), - on_primary_click: () => player.previous() - }), - Widget.Button({ - child: Widget.Icon({ icon: player.bind("play_back_status").transform(s => { - switch (s) { - case "Playing": return 'media-playback-pause-symbolic' - case "Paused": - case "Stopped": return 'media-playback-start-symbolic' - } - }), - }), - on_primary_click: () => player.playPause(), - }), - Widget.Button({ - child: Widget.Icon({ icon: 'media-skip-forward-symbolic'}), - on_primary_click: () => player.next() - }) - ] - }) - ], - setup: self => { - - }, - }) -} - -export function Players() { - - const plrs = mpris.bind('players') - .as(p => p.map((v) => PlayerGUI(v))) - - return Widget.Box({ - vertical: true, - children: plrs, - }) -} diff --git a/home-manager/nix-on-droid/dotfiles/ags/notif.js b/home-manager/nix-on-droid/dotfiles/ags/notif.js deleted file mode 100755 index e3134f2..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/notif.js +++ /dev/null @@ -1,22 +0,0 @@ -const notifications = await Service.import("notifications") - - - -// we don't need dunst or any other notification daemon -// because the Notifications module is a notification daemon itself -export default function Notification() { - const popups = notifications.bind("popups") - return Widget.EventBox({ - class_name: "notificationbutton", - visible: true, - on_primary_click: () => {}, - child: Widget.Icon({ - icon: "preferences-system-notifications-symbolic", - }), - - }) -} - -// Widget.Label({ -// label: popups.as(p => p[0]?.summary || ""), -// }), diff --git a/home-manager/nix-on-droid/dotfiles/ags/notification.js b/home-manager/nix-on-droid/dotfiles/ags/notification.js deleted file mode 100755 index 2971403..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/notification.js +++ /dev/null @@ -1,131 +0,0 @@ -const notifications = await Service.import("notifications") - -/** @param {import('resource:///com/github/Aylur/ags/service/notifications.js').Notification} n */ -function NotificationIcon({ app_entry, app_icon, image }) { - if (image) { - return Widget.Box({ - css: `background-image: url("${image}");` - + "background-size: contain;" - + "background-repeat: no-repeat;" - + "background-position: center;", - }) - } - - let icon = "dialog-information-symbolic" - if (Utils.lookUpIcon(app_icon)) - icon = app_icon - - if (app_entry && Utils.lookUpIcon(app_entry)) - icon = app_entry - - return Widget.Box({ - child: Widget.Icon(icon), - }) -} - -/** @param {import('resource:///com/github/Aylur/ags/service/notifications.js').Notification} n */ -function Notification(n) { - const icon = Widget.Box({ - vpack: "start", - class_name: "icon", - child: NotificationIcon(n), - }) - - const title = Widget.Label({ - class_name: "title", - xalign: 0, - justification: "left", - hexpand: true, - max_width_chars: 24, - truncate: "end", - wrap: true, - label: n.summary, - use_markup: true, - }) - - const body = Widget.Label({ - class_name: "body", - hexpand: true, - use_markup: true, - xalign: 0, - justification: "left", - label: n.body, - wrap: true, - }) - - const actions = Widget.Box({ - class_name: "actions", - children: n.actions.map(({ id, label }) => Widget.Button({ - class_name: "action-button", - on_clicked: () => { - n.invoke(id) - n.dismiss() - }, - hexpand: true, - child: Widget.Label(label), - })), - }) - - return Widget.EventBox( - { - attribute: { id: n.id }, - on_primary_click: n.dismiss, - }, - Widget.Box( - { - class_name: `notification ${n.urgency}`, - vertical: true, - }, - Widget.Box([ - icon, - Widget.Box( - { vertical: true }, - title, - body, - ), - ]), - actions, - ), - ) -} - -export function NotificationPopups(monitor = 0) { - const list = Widget.Box({ - vertical: true, - children: notifications.popups.map(Notification), - }) - - function onNotified(_, /** @type {number} */ id) { - const n = notifications.getNotification(id) - if (n) - list.children = [Notification(n), ...list.children] - } - - function onDismissed(_, /** @type {number} */ id) { - list.children.find(n => n.attribute.id === id)?.destroy() - } - - list.hook(notifications, onNotified, "notified") - .hook(notifications, onDismissed, "dismissed") - - return Widget.Window({ - monitor, - name: `notifications${monitor}`, - class_name: "notification-popups", - anchor: ["top", "right"], - layer: "overlay", - child: Widget.Box({ - css: "min-width: 2px; min-height: 2px;", - class_name: "notifications", - vertical: true, - child: list, - - /** this is a simple one liner that could be used instead of - hooking into the 'notified' and 'dismissed' signals. - but its not very optimized becuase it will recreate - the whole list everytime a notification is added or dismissed */ - // children: notifications.bind('popups') - // .as(popups => popups.map(Notification)) - }), - }) -} \ No newline at end of file diff --git a/home-manager/nix-on-droid/dotfiles/ags/power.js b/home-manager/nix-on-droid/dotfiles/ags/power.js deleted file mode 100755 index 9b08d00..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/power.js +++ /dev/null @@ -1,44 +0,0 @@ - - - -function Power() { - - - return Widget.Box({ - vertical: false, - spacing: 8, - children: [ - Widget.EventBox({ - child: Widget.Icon({icon: 'system-reboot-symbolic'}), - margin_right: 10, - class_name: 'restart', - tooltip_text: 'restart', - on_primary_click: () => {App.Quit(); Utils.execAsync('reboot')}, - }), - Widget.EventBox({ - child: Widget.Icon({icon: 'system-log-out-symbolic'}), - margin_right: 10, - class_name: 'logout', - tooltip_text: 'log out', - on_primary_click: () => {App.Quit(); Utils.execAsync('loginctl kill-session self')}, - }), - Widget.EventBox({ - child: Widget.Icon({icon: 'system-lock-screen-symbolic'}), - margin_right: 10, - class_name: 'lockscreen', - tooltip_text: 'lock screen', - on_primary_click: () => {Utils.exec('swaylock')}, - }), - Widget.EventBox({ - child: Widget.Icon({icon: 'system-shutdown-symbolic'}), - margin_right: 10, - class_name: 'poweroff', - tooltip_text: 'shutdown', - on_primary_click: () => {App.Quit(); Utils.execAsync('shutdown now')}, - }) - ], - }) -} - - -export default Power \ No newline at end of file diff --git a/home-manager/nix-on-droid/dotfiles/ags/settings.js b/home-manager/nix-on-droid/dotfiles/ags/settings.js deleted file mode 100755 index b8ef2a4..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/settings.js +++ /dev/null @@ -1,125 +0,0 @@ -const audio = await Service.import("audio") -const battery = await Service.import("battery") -const mpris = await Service.import("mpris") - -import Bluetooth from "./bluetooth.js" -import WifiIndicator from "./wifi.js" -import { Players } from "./media.js" - -export function Volume() { - const icons = { - 101: "high", - 67: "high", - 34: "medium", - 1: "low", - 0: "muted", - } - - function getIcon() { - const icon = audio.speaker.is_muted ? 0 : [101, 67, 34, 1, 0].find( - threshold => threshold <= audio.speaker.volume * 100) - - return `audio-volume-${icons[icon]}-symbolic` - } - - - return Widget.EventBox({ - tooltip_text: '', - setup: (self) => self.hook(audio.speaker, () => { - self.tooltip_text = `Volume: ${(100 * audio.speaker.volume).toFixed(0)}%` - }), - child: Widget.Icon({ - class_name: "volume", - icon: Utils.watch(getIcon(), audio.speaker, getIcon), - }) - }) - -} - -// const slider = Widget.Slider({ -// hexpand: true, -// draw_value: false, -// inverted: true, -// on_change: ({ value }) => audio.speaker.volume = value, -// setup: (self) => self.hook(audio.speaker, () => { -// self.value = audio.speaker.volume || 0 -// }), -// }) - - -export function BatteryLabel() { - const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0) - const icon = battery.bind("percent").as(p => - `battery-${p > 90 ? "full" : p > 70 ? "good" : p > 50 ? "medium" : p > 30 ? "low" : p > 10 ? "caution" : "empty"}-symbolic`) - - return Widget.Box({ - class_name: "battery", - visible: battery.bind("available"), - child: Widget.EventBox({ - child: Widget.Icon({ icon }), - tooltip_text: value.as(p => `Battery: ${(p * 100).toFixed(0)}%`) - }), - }) -} - -function Panel() { - return Widget.Box({ - height_request: 200, - css: 'background: black;', - }) -} - -export function SettingsWindow(monitor = 0) { - return Widget.Window({ - monitor, - name: `Settings-${monitor}`, - anchor: ["top", "bottom", "right"], - margins: [50, 0, 10, 0], - width_request: 400, - exclusivity: "ignore", - layer: "top", - class_name: "SettingsWindow", - child: Widget.Box({ - class_name: "settings_window", - child: Widget.Scrollable({ - vscroll: "always", - hscroll: "never", - hexpand: true, - vexpand: true, - margin: 20, - child: Widget.Box({ - vertical: true, - children: [ - Panel(), - Players() - ] - }), - }), - }), - }) -} - - -export default function Settings() { - - - return Widget.Button({ - tooltip_text: 'Settings', - attribute: false, - margin_right: 8, - child: Widget.Box({ - spacing: 8, - children: [ - Bluetooth(), - WifiIndicator(), - BatteryLabel(), - Volume(), - ], - }), - on_clicked: (self) => { - self.attribute = !self.attribute - - App.toggleWindow(App.windows[1].name) - }, - }) -} diff --git a/home-manager/nix-on-droid/dotfiles/ags/style.css b/home-manager/nix-on-droid/dotfiles/ags/style.css deleted file mode 100755 index 898f47f..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/style.css +++ /dev/null @@ -1,174 +0,0 @@ - - - - -window.bar { - background-color: rgb(36, 40, 59); - color: rgb(200, 200, 200); - -} - -window.win { - background-color: transparent; - color: rgb(200, 200, 200); -} - -.booox { - color: white; - background-color: white; - -} - -.playerbox { - background-color: rgb(73, 81, 121); - color:rgb(73, 81, 121); - border: 3px solid black; - border-radius: 15px; -} - -.launcher { - color: aqua; - background: none; - border: none; - -} - -box { - color: aqua; -} - - -Window.SettingsWindow { - background-color: black; - color: black; -} -.settings_window { - background-color: rgb(36, 40, 59); - color: teal; - border-radius: 15px; -} - -.focused { - color: aqua; -} - -.other { - color: teal; -} - -.media { - color: aqua; -} - -.media:active { - background-color: aqua; -} - -button { - min-width: 0; - padding-top: 0; - padding-bottom: 0; - background: none; - border: none; - padding: 0px; - padding-left: 5px; - padding-right: 5px; - color: aqua; -} - -button:active { - background-color: aqua; -} - -button:hover { - border-bottom: 3px solid teal; -} - -label { - font-weight: bold; -} - -.workspaces button.focused { - border-bottom: 3px solid aqua; -} - -.client-title { - color: rgb(200, 200, 200); -} - -.clock { - color: rgb(200, 200, 200); -} - -.notification { - color: yellow; -} - -levelbar block, -highlight { - min-height: 4px; -} - -/************************************/ - -window.notification-popups box.notifications { - padding: .5em; -} - -.icon { - min-width: 68px; - min-height: 68px; - margin-right: 1em; -} - -.icon image { - font-size: 58px; - /* to center the icon */ - margin: 5px; - color: yellow; -} - -.icon box { - min-width: 68px; - min-height: 68px; - border-radius: 7px; -} - -.notificationbutton { - color: teal; -} - -.notification { - min-width: 350px; - border-radius: 11px; - padding: 1em; - margin: .5em; - border: 1px solid blue; - background-color: rgb(36, 40, 59); -} - -.notification.critical { - border: 1px solid lightcoral; -} - -.title { - color: black; - font-size: 1.4em; -} - -.body { - color: red; -} - -.actions .action-button { - margin: 0 .4em; - margin-top: .8em; -} - -.actions .action-button:first-child { - margin-left: 0; -} - -.actions .action-button:last-child { - margin-right: 0; -} \ No newline at end of file diff --git a/home-manager/nix-on-droid/dotfiles/ags/systemtray.js b/home-manager/nix-on-droid/dotfiles/ags/systemtray.js deleted file mode 100755 index e69de29..0000000 diff --git a/home-manager/nix-on-droid/dotfiles/ags/wifi.js b/home-manager/nix-on-droid/dotfiles/ags/wifi.js deleted file mode 100755 index e095291..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/wifi.js +++ /dev/null @@ -1,30 +0,0 @@ -const network = await Service.import('network') - -export default function WifiIndicator() { - return Widget.Box({ - child: Widget.EventBox({ - child: Widget.Icon({ - icon: 'network-wireless-disconnected-symbolic', - }), - - setup: self => self.hook(network.wifi, () => { - self.child.icon = network.wifi.icon_name == 'network-wireless-disabled-symbolic' ? 'network-wireless-disconnected-symbolic' : network.wifi.icon_name - self.tooltip_text = network.wifi.ssid ? network.wifi.ssid : network.wifi.internet - }), - - tooltip_text: 'disconnected', - }), - }) -} - -// const WiredIndicator = () => Widget.Icon({ -// icon: network.wired.bind('icon_name'), -// }) - -// const NetworkIndicator = () => Widget.Stack({ -// children: { -// wifi: WifiIndicator(), -// wired: WiredIndicator(), -// }, -// shown: network.bind('primary').as(p => p || 'wifi'), -// }) diff --git a/home-manager/nix-on-droid/dotfiles/ags/workspaces.js b/home-manager/nix-on-droid/dotfiles/ags/workspaces.js deleted file mode 100755 index eab7ea3..0000000 --- a/home-manager/nix-on-droid/dotfiles/ags/workspaces.js +++ /dev/null @@ -1,37 +0,0 @@ -const hyprland = await Service.import("hyprland") - - -function ClientTitle() { - return Widget.Label({ - class_name: "client-title", - max_width_chars: 30, - truncate: "end", - label: hyprland.active.client.bind("title"), - }) -} - - -function Workspaces() { - const activeId = hyprland.active.workspace.bind("id") - const workspaces = hyprland.bind("workspaces") - .as(ws => ws.map(({ id }) => id > 0 ? Widget.Button({ - on_clicked: () => hyprland.messageAsync(`dispatch workspace ${id}`), - child: Widget.Label(`${id}`), - class_name: activeId.as(i => `${i === id ? "focused" : "other"}`), - margin_left: 10, - }) : null - ).sort((a, b) => { return a && b ? Number(a.child.label) - Number(b.child.label) : a ? -1 : 1 })) - - return Widget.CenterBox({ - - spacing: 8, - start_widget: Widget.Box({ - class_name: "workspaces", - spacing: 0, - children: workspaces - }), - end_widget: ClientTitle(), - }) -} - -export default Workspaces diff --git a/home-manager/nix-on-droid/dotfiles/default.nix b/home-manager/nix-on-droid/dotfiles/default.nix index 504a6f0..50c8cfc 100644 --- a/home-manager/nix-on-droid/dotfiles/default.nix +++ b/home-manager/nix-on-droid/dotfiles/default.nix @@ -1,11 +1,7 @@ { config, lib, ... }: { home.file = { - ".config/ags" = { source = ./ags; recursive = true; }; - ".config/hypr" = { source = ./hypr; recursive = true; }; - ".config/swaylock" = { source = ./swaylock; recursive = true; }; ".config/wal/templates" = { source = ./wal/templates; recursive = true; }; - ".config/wayvnc" = { source = ./wayvnc; recursive = true; }; "Pictures/Wallpaper" = { source = ./Wallpaper; recursive = true; }; }; diff --git a/home-manager/nix-on-droid/dotfiles/hypr/main.conf b/home-manager/nix-on-droid/dotfiles/hypr/main.conf deleted file mode 100644 index 5e429b2..0000000 --- a/home-manager/nix-on-droid/dotfiles/hypr/main.conf +++ /dev/null @@ -1,281 +0,0 @@ - -#------------------------------------------------# -# _ _ _ _ # -#| | | | | | | | # -#| |___| |_ _ ____ _ _| | __ _.-.___ ___| | # -#| ___ | | | | _ \| |/ | |/ _` | _ \/ _ | # -#| | | | |_| | |_) | /| | (_| | | | | (_| | # -#|_| |_|\__, | __/|__| |_|\__,_|_| |_|\___/_| # -# |___/|_| # -# # -#------------------------------------------------# - -exec-once=onSystemStart - -# Some default env vars. -env = XCURSOR_SIZE,16 - -source = ./otf.conf -source = ~/.cache/wal/colors-hypr.conf - -# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ -input { - kb_layout = us - kb_variant = - kb_model = - kb_options = - kb_rules = - - follow_mouse = 1 - - touchpad { - natural_scroll = yes - } - - sensitivity = 0 # -1.0 - 1.0, 0 means no modification. -} - -cursor { - no_hardware_cursors = true -} - -general { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - - gaps_in = 5 - gaps_out = 4 - border_size = 2 - col.active_border = $color1 $color5 100deg - col.inactive_border = $color0 - - layout = dwindle -} -decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more - - rounding = 2 - - blur { - enabled = false - } - - - #drop_shadow = yes - #shadow_range = 4 - #shadow_render_power = 3 - #col.shadow = rgba(1a1a1aee) -} - -animations { - enabled = yes - - # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more - - bezier = myBezier, 0.05, 0.9, 0.1, 1.05 - - animation = windows, 1, 7, myBezier - animation = windowsOut, 1, 7, default, popin 80% - animation = border, 1, 10, default - animation = borderangle, 1, 8, default - animation = fade, 1, 7, default - animation = workspaces, 1, 6, default -} - - - -dwindle { - # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more - pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below - preserve_split = yes # you probably want this -} - -master { - # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more - new_status = "master" -} - -gestures { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - workspace_swipe = off -} - -misc { - disable_hyprland_logo = false - disable_splash_rendering = true - force_default_wallpaper = 2 -} - -# Binds -$mainMod = ALT - -bind = $mainMod, E, exec, colorPrefix kitty - -bind = $mainMod, B, exec, firefox - -bind = $mainMod SHIFT, B, exec, firefox --private-window - -bind = $mainMod, Q, killactive, - -bind = $mainMod, R, exec, colorPrefix kitty -e _systemRebuild - -bind = $mainMod SHIFT, R, exec, colorPrefix kitty -e _homeRebuild - -bind = $mainMod, C, exec, colorPrefix kitty -e bash -c "cd ~/Projects/System; nvim ~/Projects/System/flake.nix" - -bind = $mainMod, F, exec, thunar -bind = $mainMod SHIFT, F, fullscreen - -bind = $mainMod, semicolon, exec, colorPrefix kitty -e nvim ~ - -bind = $mainMod, Insert, exec, libreoffice & - -bind = $mainMod, H, exec, bluetoothctl connect 88:D0:39:F9:83:CE - -bind = $mainMod, V, togglefloating, - -bind = $mainMod SHIFT, V, exec, vlc & - -bind = , Menu, exec, rofi -show drun - -bind = $mainMod, Menu, exec, killall .ags-wrapped; ags & - -bind = $mainMod, P, pseudo, # dwindle - -bind = $mainMod, Z, togglesplit, # dwindle - -bind = $mainMod, M, exec, spotify - -bind = $mainMod SHIFT, M, exec, firefox --new-window soundcloud.com/you/library - -bind = $mainMod CTRL, M, exec, colorPrefix kitty -e ncmpcpp -s browser - -bind = $mainMod, XF86AudioPlay, exec, mpc load casual - -bind = , XF86AudioPlay, exec, playerctl play-pause - -bind = , XF86AudioPause, exec, playerctl pause -bind = $mainMod, F9, exec, playerctl pause - -bind = , XF86AudioNext, exec, playerctl next - -bind = , XF86AudioPrev, exec, playerctl previous - -bind = , XF86Launch2, exec, steam & -bind = $mainMod, XF86Launch2, exec, prismlauncher - -bind = CTRL SHIFT, XF86Launch2, exec, if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1; else hyprctl keyword monitor eDP-1,1920x1080@300,0x0,1; fi - -bind = , XF86Calculator, exec, geogebra - -bind = $mainMod SHIFT, Print, exec, firefox --new-window localhost:631 -bind = , Print, exec, grim -g "$(slurp)" - -bind = $mainMod, Return, exec, vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland & - -bind = $mainMod CTRL, Return, exec, firefox --new-window https://discord.com/app - -# Move focus with mainMod + arrow keys -bind = $mainMod, A, movefocus, l -bind = $mainMod, D, movefocus, r -bind = $mainMod, W, movefocus, u -bind = $mainMod, S, movefocus, d -# Switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 - -bind = $mainMod, Home, workspace, 11 - -# Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspace, 1 -bind = $mainMod SHIFT, 2, movetoworkspace, 2 -bind = $mainMod SHIFT, 3, movetoworkspace, 3 -bind = $mainMod SHIFT, 4, movetoworkspace, 4 -bind = $mainMod SHIFT, 5, movetoworkspace, 5 -bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod SHIFT, 7, movetoworkspace, 7 -bind = $mainMod SHIFT, 8, movetoworkspace, 8 -bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 - -bind = $mainMod SHIFT, Home, movetoworkspace, 11 - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, right, workspace, e+1 -bind = $mainMod, left, workspace, e-1 - -#switch network connections -bind = CTRL SHIFT, Escape, exec, nmcli device down wlo1 -bind = CTRL SHIFT, 0, exec, nmcli device down wlo1; nmcli connection up Hotspot -bind = CTRL SHIFT, 1, exec, nmcli device wifi connect EagleNet password ~?C##@ZiH -bind = CTRL SHIFT, 2, exec, nmcli device down wlo1; nmcli device wifi connect CXNK00813829 password a8d859c8cfb420ab -bind = CTRL SHIFT, 3, exec, nmcli device down wlo1; nmcli device wifi connect ATT9MhT2ql password 325qxr89u?3t - -#brightness keys -bind = , XF86MonBrightnessUp, exec, brightnessctl set +10% -bind = , XF86MonBrightnessDown, exec, brightnessctl set 10%- - -#volume keys -binde = , XF86AudioRaiseVolume, exec, amixer -D default sset Master 10%+ -binde = , XF86AudioLowerVolume, exec, amixer -D default sset Master 10%- -bind = , XF86AudioMute, exec, amixer -D default sset Master toggle - - -#screen lock key -bind = $mainMod, F12, exec, swaylock - -#logout shortcut -bind = CTRL ALT, Delete, exec, loginctl kill-session self - - -# Move/resize windows with mainMod + LMB/RMB and dragging -bind = $mainMod SHIFT, W, movewindow, u -bind = $mainMod SHIFT, S, movewindow, d -bind = $mainMod SHIFT, A, movewindow, l -bind = $mainMod SHIFT, D, movewindow, r -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod SHIFT, mouse:272, resizewindow - -$scratchpadsize = size 60% 80% -$scratchpad = class:^(scratchpad)$ - -windowrulev2 = float, $scratchpad -windowrulev2 = $scratchpadsize, $scratchpad -windowrulev2 = workspace special silent, $scratchpad - -$kitty = class:^(scratchpad-kitty)$ - -windowrulev2 = float, $kitty -windowrulev2 = $scratchpadsize, $kitty -windowrulev2 = workspace special silent, $kitty -$nvim = class:^(scratchpad-nvim)$ - -windowrulev2 = float, $nvim -windowrulev2 = $scratchpadsize, $nvim -windowrulev2 = workspace special silent, $nvim - -bind = $mainMod SHIFT, N, exec, colorPrefix pypr toggle nvim -bind = $mainMod SHIFT, E, exec, colorPrefix pypr toggle free - - -bind = CTRL SHIFT, Home, exec, ssh -i ~/.ssh/key nathan@69.150.99.129 -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen -bind = CTRL SHIFT, End, exec, ssh -i ~/.ssh/key nathan@173.242.244.184 -fL 5900:localhost:5900 sleep 10; vncviewer localhost:5900 -fullscreen -bind = CTRL SHIFT, Home, submap, clean -bind = CTRL SHIFT, End, submap, clean - - -bind = $mainMod CTRL, Home, submap, clean - -submap = clean - -bind = $mainMod CTRL, Home, submap, reset - -submap = reset - - diff --git a/home-manager/nix-on-droid/dotfiles/hypr/otf.conf b/home-manager/nix-on-droid/dotfiles/hypr/otf.conf deleted file mode 100644 index 8b13789..0000000 --- a/home-manager/nix-on-droid/dotfiles/hypr/otf.conf +++ /dev/null @@ -1 +0,0 @@ - diff --git a/home-manager/nix-on-droid/dotfiles/hypr/pyprland.toml b/home-manager/nix-on-droid/dotfiles/hypr/pyprland.toml deleted file mode 100644 index f8e2fc0..0000000 --- a/home-manager/nix-on-droid/dotfiles/hypr/pyprland.toml +++ /dev/null @@ -1,22 +0,0 @@ - [pyprland] - plugins = [ - "scratchpads" - ] - - [scratchpads.nvim] - animation = "fromTop" - command = "kitty --class scratchpad-nvim -e nvim ~" - lazy = false - class = "scratchpad-nvim" - margin = 100 - multi = true - excludes = "*" - - [scratchpads.free] - animation = "fromBottom" - command = "kitty --class scratchpad" - class = "scratchpad" - lazy = false - margin = 100 - multi = true - excludes = "*" diff --git a/home-manager/nix-on-droid/dotfiles/swaylock/config b/home-manager/nix-on-droid/dotfiles/swaylock/config deleted file mode 100755 index 2c26b68..0000000 --- a/home-manager/nix-on-droid/dotfiles/swaylock/config +++ /dev/null @@ -1,16 +0,0 @@ -indicator -ignore-empty-password -indicator-thickness=10 -indicator-radius=100 -image=~/.cache/bg -clock -ring-color=33ddff55 -key-hl-color=dd4444 -line-color=00000000 -inside-color=00000088 -text-color=00a6f0 -text-clear-color=daa520 -ring-clear-color=002251 -separator-color=00000000 -grace=2 -fade-in=0.5 diff --git a/home-manager/nix-on-droid/dotfiles/wal/templates/colors-ags.css b/home-manager/nix-on-droid/dotfiles/wal/templates/colors-ags.css deleted file mode 100755 index f2c0906..0000000 --- a/home-manager/nix-on-droid/dotfiles/wal/templates/colors-ags.css +++ /dev/null @@ -1,161 +0,0 @@ - - - - -window.bar {{ - background-color: {color1.rgba}; - color: {color1.rgba}; - opacity: 1; - -}} - -.playerbox {{ - background-color: {color2}; - color:rgb(73, 81, 121); - border: 3px solid black; - border-radius: 15px; -}} - -.launcher {{ - background: none; - border: none; -}} - -box {{ - color: {color11}; -}} - - -Window.SettingsWindow {{ - background-color: black; - color: black; -}} -.settings_window {{ - background-color: {color1.rgba}; - border-radius: 15px; -}} - -.focused {{ - color: {color11}; -}} - -.other {{ - color: {color3}; -}} - -.media {{ - color: {color11}; -}} - -.media:active {{ - background-color: {color11}; -}} - -button {{ - min-width: 0; - padding-top: 0; - padding-bottom: 0; - background: none; - border: none; - padding: 0px; - padding-left: 5px; - padding-right: 5px; - color: {color11}; -}} - -button:active {{ - background-color: {color11}; -}} - -button:hover {{ - border-bottom: 3px solid {color3}; -}} - -label {{ - font-weight: bold; -}} - -.workspaces button.focused {{ - border-bottom: 3px solid {color11}; -}} - -.client-title {{ - color: {color11}; -}} - -.clock {{ - color: {color11}; -}} - -.notification {{ - color: yellow; -}} - -levelbar block, -highlight {{ - min-height: 4px; -}} - -/************************************/ - -window.notification-popups box.notifications {{ - padding: .5em; -}} - -.icon {{ - min-width: 68px; - min-height: 68px; - margin-right: 1em; -}} - -.icon image {{ - font-size: 58px; - /* to center the icon */ - margin: 5px; - color: yellow; -}} - -.icon box {{ - min-width: 68px; - min-height: 68px; - border-radius: 7px; -}} - -.notificationbutton {{ - color: {color3}; -}} - -.notification {{ - min-width: 350px; - border-radius: 11px; - padding: 1em; - margin: .5em; - border: 1px solid blue; - background-color: {color2}; -}} - -.notification.critical {{ - border: 1px solid lightcoral; -}} - -.title {{ - color: aqua; - font-size: 1.4em; -}} - -.body {{ - color: teal; -}} - -.actions .action-button {{ - margin: 0 .4em; - margin-top: .8em; -}} - -.actions .action-button:first-child {{ - margin-left: 0; -}} - -.actions .action-button:last-child {{ - margin-right: 0; -}} diff --git a/home-manager/nix-on-droid/dotfiles/wal/templates/colors-discord.css b/home-manager/nix-on-droid/dotfiles/wal/templates/colors-discord.css deleted file mode 100644 index b726dd1..0000000 --- a/home-manager/nix-on-droid/dotfiles/wal/templates/colors-discord.css +++ /dev/null @@ -1,23 +0,0 @@ ---accent-color: {color7}; ---border-color: {color3}; ---background-1: rgba({color0.rgb}, calc({alpha} / 175)); ---background-2: transparent; ---background-mentioned: {color3} !important; ---background-mentioned-hover: {color3} !important; ---background-modifier-hover: {color6} !important; ---background-modifier-active: {color3} !important; ---text-normal: {color1} !important; ---text-positive: {color2} !important; ---text-muted: {color3} !important; ---text-link: {color4} !important; ---button-background: {color5} !important; ---button-background-hover: {color0} !important; ---button-background-active: {color0} !important; ---button-accent-hover: {color0} !important; ---button-accent-active: {color5} !important; ---button-destructive: {color5} !important; ---button-destructive-hover: {color4} !important; ---button-destructive-active: {color4} !important; ---settings-icon-color: {color0} !important; ---tab-selected: {color2} !important; ---switch: {color1} !important; diff --git a/home-manager/nix-on-droid/dotfiles/wal/templates/colors-hypr.conf b/home-manager/nix-on-droid/dotfiles/wal/templates/colors-hypr.conf deleted file mode 100644 index c1ccbaf..0000000 --- a/home-manager/nix-on-droid/dotfiles/wal/templates/colors-hypr.conf +++ /dev/null @@ -1,18 +0,0 @@ -$foregroundCol = 0xff{foreground.strip} -$backgroundCol = 0xff{background.strip} -$color0 = 0xff{color0.strip} -$color1 = 0xff{color1.strip} -$color2 = 0xff{color2.strip} -$color3 = 0xff{color3.strip} -$color4 = 0xff{color4.strip} -$color5 = 0xff{color5.strip} -$color6 = 0xff{color6.strip} -$color7 = 0xff{color7.strip} -$color8 = 0xff{color8.strip} -$color9 = 0xff{color9.strip} -$color10 = 0xff{color10.strip} -$color11 = 0xff{color11.strip} -$color12 = 0xff{color12.strip} -$color13 = 0xff{color13.strip} -$color14 = 0xff{color14.strip} -$color15 = 0xff{color15.strip} diff --git a/home-manager/nix-on-droid/dotfiles/wayvnc/config b/home-manager/nix-on-droid/dotfiles/wayvnc/config deleted file mode 100644 index c240f24..0000000 --- a/home-manager/nix-on-droid/dotfiles/wayvnc/config +++ /dev/null @@ -1,6 +0,0 @@ -use_relative_paths=true -address=0.0.0.0 -enable_auth=false -username=nathan -password=//falconAdjacent42 -rsa_private_key_file=rsa_key.pem diff --git a/home-manager/nix-on-droid/dotfiles/wayvnc/rsa_key.pem b/home-manager/nix-on-droid/dotfiles/wayvnc/rsa_key.pem deleted file mode 100644 index fdcdea6..0000000 --- a/home-manager/nix-on-droid/dotfiles/wayvnc/rsa_key.pem +++ /dev/null @@ -1,39 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -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 ------END RSA PRIVATE KEY----- diff --git a/home-manager/nix-on-droid/dotfiles/wayvnc/rsa_key.pem.pub b/home-manager/nix-on-droid/dotfiles/wayvnc/rsa_key.pem.pub deleted file mode 100644 index 852b274..0000000 --- a/home-manager/nix-on-droid/dotfiles/wayvnc/rsa_key.pem.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCyRlNZ+ePi5QOw+rnV4BeTFd64d7FPYfhDewUuCc/4HXO/2Z5iBB4Mry1I3Tz0q6TPqNgD9Z3xTrqKrRMocayCP8Ci0vTQpqf4nvmG6+c75psaOQii+Xv7P4T3CeqWbFsULyvnEPmdpBvAv5MqMabqNwjok+nf4YjYwycLphhQ7xmuezorqZv9ME2Ny0efcMZEv1AXSf8siU6FW/5WQGIyO9qdrbOjth0Q+YQ0bwc8hHq1FAj+AjxQTGWAvh3o7tHElMCiAgSetnGwcAA6ebMNVcinedK6Dimx6IdsBz05U2ifmI1nehEr9JBZ2RVL/gdn9f4xkuHbrv7as5kQDzyJzDc4h523TiXfeXxkBSUnj84qk96yi1RG92Rhg8IftRyD1MEtEnF6Ri4nEZXmKHiKZYVGQbOgYoETkPuJimmMNbBVSZyTdI8xpcgDGM13FKBiHzhiy+6G3acGgjez4PjKgGp9fvp87Po6xAcg67Fjc8oznsSDDi74jvN/PbuWC3U= root@homebox diff --git a/home-manager/nix-on-droid/impermanence/default.nix b/home-manager/nix-on-droid/impermanence/default.nix deleted file mode 100644 index 890e161..0000000 --- a/home-manager/nix-on-droid/impermanence/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ config, lib, inputs, ... }: { - - imports = [ - inputs.impermanence.nixosModules.home-manager.impermanence - ]; - - options.homeconfig.impermanence.enable = lib.options.mkOption { - type = lib.types.bool; - default = true; - }; - - config = lib.mkIf config.homeconfig.impermanence.enable { - - home.persistence."/persist/home/nathan" = { - - directories = [ - "Documents" - "Music" - "Pictures/Photos" - "Projects" - "Videos" - ".ssh" - ".local/share/zoxide" - ".config/sops" - ]; - files = [ - ".zsh_history" - ]; - allowOther = true; - }; - - }; -} diff --git a/home-manager/nix-on-droid/programs/ags/default.nix b/home-manager/nix-on-droid/programs/ags/default.nix deleted file mode 100644 index d6dd04d..0000000 --- a/home-manager/nix-on-droid/programs/ags/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ config, lib, pkgs, inputs, ... }: { - - imports = [ inputs.ags.homeManagerModules.default ]; - - options.homeconfig.ags.enable = lib.options.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.homeconfig.ags.enable { - programs.ags = { - enable = true; - - extraPackages = with pkgs; [ - gtksourceview - webkitgtk - accountsservice - ]; - }; - - home.file.".config/ags/launcher.js".text = /*javascript*/ '' - function Launcher() { - return Widget.EventBox({ - class_name: "launcher", - hpack: "center", - child: Widget.Icon({ - icon: '${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake.png', - css: 'font-size: 24px;' - }), - on_primary_click: () => {Utils.execAsync('rofi -show drun')}, - margin_left: 10, - }) - } - - export default Launcher - ''; - - }; -} diff --git a/home-manager/nix-on-droid/programs/firefox/default.nix b/home-manager/nix-on-droid/programs/firefox/default.nix deleted file mode 100644 index 5c0d5c5..0000000 --- a/home-manager/nix-on-droid/programs/firefox/default.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ config, lib, pkgs, inputs, ... }: { - - options.homeconfig.firefox.enable = lib.options.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.homeconfig.firefox.enable { - - programs.firefox = { - - enable = true; - package = pkgs.firefox-wayland; - - profiles.nathan = { - search = { - default = "DuckDuckGo"; - privateDefault = "DuckDuckGo"; - }; - bookmarks = [ - - { - name = "toolbar"; - toolbar = true; - bookmarks = [ - { - name = "NixOS Search - Packages"; - url = "https://search.nixos.org/packages"; - } - ]; - } - ]; - - extensions = with inputs.firefox-addons.packages.${pkgs.system}; [ - ublock-origin - keepassxc-browser - pywalfox - ]; - }; - }; - }; -} diff --git a/home-manager/nix-on-droid/programs/hyprland/default.nix b/home-manager/nix-on-droid/programs/hyprland/default.nix deleted file mode 100644 index 4518151..0000000 --- a/home-manager/nix-on-droid/programs/hyprland/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, lib, pkgs, ... }: { - - options.homeconfig.hyprland.enable = lib.options.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.homeconfig.hyprland.enable { - - home.sessionVariables.NIX_OZONE_WL = "1"; - - programs.kitty.enable = lib.mkDefault true; - - home.packages = with pkgs; [ - pyprland - ]; - - wayland.windowManager.hyprland = { - - enable = true; - - systemd.variables = [ "--all" ]; - - extraConfig = let - monitor = if config.homeconfig.host == "laptop" then '' - monitor=eDP-1,1920x1080@60,0x0,1 - '' else if config.homeconfig.host == "homebox" then '' - monitor=HEADLESS-2,1920x1080@60,0x0,1 - '' else ''''; - in '' - source = /home/nathan/.config/hypr/main.conf - '' + monitor; - - }; - }; - -} diff --git a/home-manager/nix-on-droid/programs/rofi/default.nix b/home-manager/nix-on-droid/programs/rofi/default.nix deleted file mode 100644 index 34814e9..0000000 --- a/home-manager/nix-on-droid/programs/rofi/default.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ config, lib, pkgs, ... }: { - - options.homeconfig.rofi.enable = lib.options.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.homeconfig.rofi.enable { - programs.rofi = { - - enable = true; - package = pkgs.rofi-wayland; - - cycle = true; - - theme = "/home/nathan/.cache/wal/colors-rofi-dark.rasi"; - }; - }; -} - diff --git a/home-manager/nix-on-droid/programs/swaylock/default.nix b/home-manager/nix-on-droid/programs/swaylock/default.nix deleted file mode 100644 index d2841fb..0000000 --- a/home-manager/nix-on-droid/programs/swaylock/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, lib, pkgs, ... }: { - - options.homeconfig.swaylock.enable = lib.options.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.homeconfig.swaylock.enable { - - home.packages = with pkgs; [ swaylock-effects ]; - }; -} diff --git a/home-manager/nix-on-droid/programs/wayvnc/default.nix b/home-manager/nix-on-droid/programs/wayvnc/default.nix deleted file mode 100644 index e99be07..0000000 --- a/home-manager/nix-on-droid/programs/wayvnc/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, lib, pkgs, ... }: { - - options.homeconfig.wayvnc.enable = lib.options.mkOption { - type = lib.types.bool; - default = false; - }; - - config = lib.mkIf config.homeconfig.wayvnc.enable { - home.packages = with pkgs; [ - wayvnc - novnc - ]; - }; -} diff --git a/home-manager/nix-on-droid/services/default.nix b/home-manager/nix-on-droid/services/default.nix index d2e0900..7af78d4 100644 --- a/home-manager/nix-on-droid/services/default.nix +++ b/home-manager/nix-on-droid/services/default.nix @@ -1,5 +1,4 @@ { ... }: { imports = [ - ./mpd ]; } diff --git a/home-manager/nix-on-droid/services/mpd/default.nix b/home-manager/nix-on-droid/services/mpd/default.nix deleted file mode 100644 index cc5f70b..0000000 --- a/home-manager/nix-on-droid/services/mpd/default.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ config, lib, pkgs, ... }: { - - options = { - homeconfig.mpd.enable = lib.options.mkOption { - type = lib.types.bool; - default = false; - }; - }; - - config = lib.mkIf config.homeconfig.mpd.enable { - services.mpd = { - enable = true; - network.startWhenNeeded = true; - network.port = 6600; - network.listenAddress = "127.0.0.1"; - musicDirectory = "/home/nathan/Music"; - extraConfig = '' - audio_output { - type "pipewire" - name "Audio1" - } - audio_output { - type "fifo" - name "visualizer" - path "/tmp/mpd.fifo" - format "44100:16:1" - } - ''; - }; - - services.mpdris2 = { - enable = true; - mpd.host = "127.0.0.1"; - mpd.port = 6600; - package = pkgs.mpdris2; - mpd.musicDirectory = "/home/nathan/Music"; - notifications = true; - }; - }; - -}