summary refs log tree commit diff
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-03-23 15:12:31 +0200
committertzlil <tzlils@protonmail.com>2023-03-23 15:12:31 +0200
commitde6461f9adf9b46c15b7f608290a1c8a35ebc829 (patch)
tree38a9a32ac38c81898f331886760ea5396275cb3b
parentb13bc7eee160922057992a21198897b580a35e8e (diff)
add wlgreet config
-rw-r--r--hosts/vm/disko.nix2
-rw-r--r--mixins/greet.nix32
-rw-r--r--mixins/sway.nix2
3 files changed, 33 insertions, 3 deletions
diff --git a/hosts/vm/disko.nix b/hosts/vm/disko.nix
index 6affd39..b7785d9 100644
--- a/hosts/vm/disko.nix
+++ b/hosts/vm/disko.nix
@@ -1,5 +1,5 @@
 {inputs, ...}: let
-  device = "/dev/vda";
+  device = "/dev/sda";
 in {
   imports = [
     inputs.disko.nixosModules.disko
diff --git a/mixins/greet.nix b/mixins/greet.nix
index fe2c825..2da474b 100644
--- a/mixins/greet.nix
+++ b/mixins/greet.nix
@@ -7,7 +7,37 @@
   user = "tzlil";
 
   users.users.greeter.packages = [pkgs.sway];
-  greet = "${pkgs.greetd.gtkgreet.out}/bin/gtkgreet";
+  greet = "${pkgs.greetd.wlgreet.out}/bin/wlgreet -e ${pkgs.writeText "config.toml" "
+[background]
+red = 0
+green = 0
+blue = 0
+opacity = 0.9
+
+[headline]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0
+
+[prompt]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0
+
+[promptErr]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0
+
+[border]
+red = 1.0
+green = 1.0
+blue = 1.0
+opacity = 1.0
+  "})}";
 
   kiosk = command: "${pkgs.cage.out}/bin/cage -- ${command}";
 in {
diff --git a/mixins/sway.nix b/mixins/sway.nix
index 3345a4c..e559602 100644
--- a/mixins/sway.nix
+++ b/mixins/sway.nix
@@ -58,7 +58,7 @@ in {
         interval = 60
         format = "%a %Y-%m-%d %H:%M"
       '';
-      programs.mako.enable = true;
+      services.mako.enable = true;
       home.packages = with pkgs; [
         grim
         slurp