Add sway and waybar; add personal scripts (hopefully)
diff --git a/src/apps/personal/sway.nix b/src/apps/personal/sway.nix
new file mode 100644
index 0000000..255560b
--- /dev/null
+++ b/src/apps/personal/sway.nix
@@ -0,0 +1,20 @@
+{ pkgs, ... }: {
+ wayland.windowManager.sway = {
+ enable = true;
+ wrapperFeatures.gtk = true;
+ };
+
+ home.packages = with pkgs; [
+ swaylock
+ swayidle
+ wl-clipboard
+ ]
+
+ systemd.user.targets.sway-session = {
+ description = "Sway compositor session";
+ documentation = [ "man:systemd.special(7)" ];
+ bindsTo = [ "graphical-session.target" ];
+ wants = [ "graphical-session-pre.target" ];
+ after = [ "graphical-session-pre.target" ];
+ };
+}
\ No newline at end of file
diff --git a/src/apps/personal/waybar.nix b/src/apps/personal/waybar.nix
new file mode 100644
index 0000000..ca9e419
--- /dev/null
+++ b/src/apps/personal/waybar.nix
@@ -0,0 +1,5 @@
+{ ... }: {
+ programs.waybar.enable = true;
+ programs.waybar.settings = []; # TODO: Make settings
+ programs.waybar.style = null; # TODO: Style waybar
+}
diff --git a/src/home.nix b/src/home.nix
index 8a11c25..bc82f11 100644
--- a/src/home.nix
+++ b/src/home.nix
@@ -2,9 +2,10 @@
let
variables = import ./common/variables.nix;
personalPackages = import ./utils/nixFilesIn.nix lib ./apps/personal;
+ personalScripts = import ./utils/nixFilesIn.nix lib ./scripts/personal;
overlays = import ./utils/nixFilesIn.nix lib ./apps/personal/overlays;
in {
- imports = personalPackages;
+ imports = personalPackages ++ personalScripts;
nixpkgs.overlays = map (f: import f) overlays;
@@ -27,6 +28,5 @@
zip
element
tdesktop
- ]; # Use *only* for packages that need no configuration;
- # other packages should go in ./apps/personal/
+ ]; # Legacy field; please don't add new packages here, instead create a file in ./apps/personal
}
\ No newline at end of file
diff --git a/src/scripts/personal/profile.nix b/src/scripts/personal/profile.nix
new file mode 100644
index 0000000..c759cf6
--- /dev/null
+++ b/src/scripts/personal/profile.nix
@@ -0,0 +1,5 @@
+{ lib, ... }: {
+ lib.writeText."/home/${variables}/.profile" = ''
+
+ ''
+}
\ No newline at end of file