Compare commits
1 commit
5358188ad1
...
5b0f568ca2
Author | SHA1 | Date | |
---|---|---|---|
5b0f568ca2 |
2 changed files with 22 additions and 20 deletions
4
justfile
4
justfile
|
@ -3,10 +3,10 @@ default:
|
||||||
|
|
||||||
# Update a specific flake input
|
# Update a specific flake input
|
||||||
update input:
|
update input:
|
||||||
nix flake lock --update-input "{{input}}" --commit-lock-file
|
nix flake lock --update-input {{input}} --commit-lock-file
|
||||||
|
|
||||||
build-vm:
|
build-vm:
|
||||||
nixos-rebuild build-vm --fallback --flake .#vm --print-build-logs
|
nixos-rebuild build-vm --flake .#vm --print-build-logs
|
||||||
|
|
||||||
run-vm: build-vm
|
run-vm: build-vm
|
||||||
QEMU_OPTS="$QEMU_OPTS_WL" result/bin/run-nixos-vm
|
QEMU_OPTS="$QEMU_OPTS_WL" result/bin/run-nixos-vm
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
config = lib.mkIf (config.jhome.enable && config.jhome.gui.enable && cfg.enable) {
|
config = lib.mkIf (config.jhome.enable && config.jhome.gui.enable && cfg.enable) {
|
||||||
# Window Manager
|
# Window Manager
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
inherit (cfg) enable;
|
inherit (cfg.sway) enable;
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
inherit (config.jhome.gui) terminal;
|
inherit (config.jhome.gui) terminal;
|
||||||
|
@ -30,7 +30,7 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
modifier = "Mod4";
|
modifier = "Mod 4";
|
||||||
inherit terminal menu;
|
inherit terminal menu;
|
||||||
# Appearance
|
# Appearance
|
||||||
bars = [ ]; # Waybar is started as a systemd service
|
bars = [ ]; # Waybar is started as a systemd service
|
||||||
|
@ -73,7 +73,8 @@ in
|
||||||
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
(cmdAlways "${pkgs.writers.writeDash "configure-gtk" ''
|
(cmdAlways (
|
||||||
|
pkgs.writers.writeDash "configure-gtk" ''
|
||||||
export XDG_DATA_DIRS="${datadir}:$XDG_DATA_DIRS"
|
export XDG_DATA_DIRS="${datadir}:$XDG_DATA_DIRS"
|
||||||
|
|
||||||
gnome_schema=org.gnome.desktop.interface
|
gnome_schema=org.gnome.desktop.interface
|
||||||
|
@ -89,7 +90,8 @@ in
|
||||||
${pkgs.glib}/bin/gsettings set "$gnome_schema" cursor-theme "$cursor_theme"
|
${pkgs.glib}/bin/gsettings set "$gnome_schema" cursor-theme "$cursor_theme"
|
||||||
${pkgs.glib}/bin/gsettings set "$gnome_schema" font-name "$font_name"
|
${pkgs.glib}/bin/gsettings set "$gnome_schema" font-name "$font_name"
|
||||||
${pkgs.glib}/bin/gsettings set "$gnome_schema" color-scheme prefer-dark
|
${pkgs.glib}/bin/gsettings set "$gnome_schema" color-scheme prefer-dark
|
||||||
''}")
|
''
|
||||||
|
))
|
||||||
]
|
]
|
||||||
++ (builtins.map cmdAlways cfg.exec.always)
|
++ (builtins.map cmdAlways cfg.exec.always)
|
||||||
++ (builtins.map cmdOnce cfg.exec.once);
|
++ (builtins.map cmdOnce cfg.exec.once);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue