improved organisation
moved host modules to hosts/modules and modified deploy script
This commit is contained in:
parent
9636eab7f6
commit
c3b02c5f7b
18 changed files with 27 additions and 20 deletions
16
deploy
16
deploy
|
|
@ -6,6 +6,7 @@ usage="Usage: $(basename $0) [OPTIONS]
|
||||||
Options:
|
Options:
|
||||||
-f, --fresh Remove old content in the nixstore (good for debugging)
|
-f, --fresh Remove old content in the nixstore (good for debugging)
|
||||||
-b, --bootloader Reinstall the bootloader
|
-b, --bootloader Reinstall the bootloader
|
||||||
|
-r, --remote Locally build and remotely deploy Colmena hive
|
||||||
-h, --help Show this message (^_^)"
|
-h, --help Show this message (^_^)"
|
||||||
|
|
||||||
# delete all cached entries
|
# delete all cached entries
|
||||||
|
|
@ -25,11 +26,26 @@ rebuild_flake () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deploy_hive () {
|
||||||
|
echo "[+] Adding keys to ssh-agent"
|
||||||
|
ssh-add ~/.ssh/id_hyrule
|
||||||
|
printf "\n"
|
||||||
|
|
||||||
|
git add . --verbose
|
||||||
|
# Deploy to all Colmena hives
|
||||||
|
colmena build --experimental-flake-eval
|
||||||
|
colmena apply --experimental-flake-eval
|
||||||
|
# colmena apply --on hyrule --experimental-flake-eval
|
||||||
|
}
|
||||||
|
|
||||||
# check which flags were given
|
# check which flags were given
|
||||||
flag_fresh=false
|
flag_fresh=false
|
||||||
flag_bootloader=false
|
flag_bootloader=false
|
||||||
for flag in "$@"; do
|
for flag in "$@"; do
|
||||||
case "$flag" in
|
case "$flag" in
|
||||||
|
-r|--remote)
|
||||||
|
deploy_hive
|
||||||
|
exit 0 ;;
|
||||||
-f|--fresh)
|
-f|--fresh)
|
||||||
flag_fresh=true ;;
|
flag_fresh=true ;;
|
||||||
-b|--bootloader)
|
-b|--bootloader)
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e # terminate if any command fails
|
|
||||||
|
|
||||||
echo "[+] Adding keys to ssh-agent"
|
|
||||||
ssh-add ~/.ssh/id_hyrule
|
|
||||||
printf "\n"
|
|
||||||
|
|
||||||
git add .
|
|
||||||
# Deploy to all Colmena hives
|
|
||||||
colmena build --experimental-flake-eval
|
|
||||||
colmena apply --experimental-flake-eval
|
|
||||||
# colmena apply --on hyrule --experimental-flake-eval
|
|
||||||
|
|
@ -1,24 +1,28 @@
|
||||||
import { AppLauncher } from "./widgets/applauncher.js"
|
import { AppLauncher } from "./widgets/applauncher.js"
|
||||||
import { Notifications } from "./widgets/notifications.js"
|
//import { Notifications } from "./widgets/notifications.js"
|
||||||
|
|
||||||
|
/*
|
||||||
const date = Variable('', {
|
const date = Variable('', {
|
||||||
poll: [1000, 'date'],
|
poll: [1000, 'date'],
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
const Bar = (monitor = 0) => Widget.Window({
|
const Bar = (monitor = 0) => Widget.Window({
|
||||||
monitor,
|
monitor,
|
||||||
name: 'bar${monitor}',
|
name: 'bar${monitor}',
|
||||||
anchor: ['top', 'left', 'right'],
|
anchor: ['top', 'left', 'right'],
|
||||||
child: Widget.Label({ label: date.bind() }),
|
child: Widget.Label({ label: date.bind() }),
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
|
|
||||||
App.config({
|
App.config({
|
||||||
style: "./style.css",
|
style: "./style.css",
|
||||||
// icons: "./assets",
|
// icons: "./assets",
|
||||||
windows: [
|
windows: [
|
||||||
Bar(),
|
//Bar(),
|
||||||
AppLauncher,
|
AppLauncher,
|
||||||
Notifications()
|
//Notifications()
|
||||||
]
|
]
|
||||||
// gtkTheme: "Adwaita-dark",
|
// gtkTheme: "Adwaita-dark",
|
||||||
// cursorTheme: "Qogir",
|
// cursorTheme: "Qogir",
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@ const WINDOW_NAME = "fullscreen";
|
||||||
|
|
||||||
const Fullscreen = (children) => Widget.Box({
|
const Fullscreen = (children) => Widget.Box({
|
||||||
vertical: true,
|
vertical: true,
|
||||||
css: "background-image: url('https://images2.alphacoders.com/135/1351579.png');"
|
css: "background-image: url('~/downloads/wallpaper/kill-my-firstborn/astronaut-pink-blue.png');",
|
||||||
+ "background-size: cover;"
|
//+ "background-size: cover;"
|
||||||
+ "background-position: center;"
|
//+ "background-position: center;"
|
||||||
+ "background-repeat: no-repeat;",
|
//+ "background-repeat: no-repeat;",
|
||||||
children: children,
|
children: children,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue