diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..24a8e879 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.png filter=lfs diff=lfs merge=lfs -text diff --git a/flake.nix b/flake.nix index 450b16da..2709ce57 100644 --- a/flake.nix +++ b/flake.nix @@ -345,7 +345,7 @@ }; nixos_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isNix) devices; - linux_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isLinux) devices; + # linux_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isLinux) devices; darwin_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isDarwin) devices; rpi_devices = nixpkgs.lib.attrsets.filterAttrs (n: x: x.isArm && x.isLinux) devices; @@ -353,7 +353,7 @@ inherit inputs; }; in - rec { + { nixosConfigurations = (import ./nixos { inherit inputs nixpkgs home-manager overlays nur; diff --git a/home/services/eww.nix b/home/services/eww.nix index d88a9c02..fa8427f7 100644 --- a/home/services/eww.nix +++ b/home/services/eww.nix @@ -1,19 +1,7 @@ -{ - pkgs, - device, - lib, - ... -}: let - activate_linux = pkgs.fetchFromGitHub { - owner = "Nycta-b424b3c7"; - repo = "eww_activate-linux"; - rev = "master"; - sha256 = "sha256-CHNkRYR4F9JGMrNubHu+XzkwwI3IHzh93nuS7/Plhe4="; - }; -in { +{device, ...}: { programs.eww = { enable = device.is "ryu"; enableFishIntegration = true; - configDir = activate_linux; + configDir = ./eww; }; } diff --git a/home/services/eww/README.md b/home/services/eww/README.md new file mode 100644 index 00000000..d815547f --- /dev/null +++ b/home/services/eww/README.md @@ -0,0 +1,5 @@ +# "Activate Linux" + +"Activate Linux" text for [Eww](https://github.com/elkowar/eww/) + +![Activate Linux](activate-linux.png) diff --git a/home/services/eww/activate-linux.png b/home/services/eww/activate-linux.png new file mode 100644 index 00000000..486e8332 --- /dev/null +++ b/home/services/eww/activate-linux.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5fdce1655d3e6247cbc646cdb010dfdf15cef00ae79749d4029949dfcd0a5af +size 170661 diff --git a/home/services/eww/eww.scss b/home/services/eww/eww.scss new file mode 100644 index 00000000..b0de5506 --- /dev/null +++ b/home/services/eww/eww.scss @@ -0,0 +1,7 @@ +.activate-linux { + color: rgba(250, 250, 250, 0.5); + + &.background { + background: none; + } +} diff --git a/home/services/eww/eww.yuck b/home/services/eww/eww.yuck new file mode 100644 index 00000000..905680ce --- /dev/null +++ b/home/services/eww/eww.yuck @@ -0,0 +1,13 @@ +(defwidget activate-linux [] + (box + :orientation "v" + :halign "start" + :valign "start" + (label :xalign 50 :markup "Activate Linux") + (label :xalign 50 :text "Go to Settings to activate Linux"))) + +(defwindow activate-linux + :monitor 0 + :stacking "fg" + :geometry (geometry :x "8px" :y "32px" :width "250px" :anchor "bottom right") + (activate-linux))