Skip to content

Commit

Permalink
Deploying to template from @ a4eaed6 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
dmadisetti committed Dec 1, 2023
1 parent 8df7334 commit c0ce255
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
6 changes: 3 additions & 3 deletions dot/config/eww/widgets.yuck
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
(defwidget sliders_side []
(box :orientation "v" :space-evenly "false" :class "sliders-side"
(box :orientation "h" :class "slider-vol-side" :space-evenly "false"
(box :class "label-vol-side" "")
(box :class "label-vol-side" "")
(scale :min 0 :max 101 :value volume :onchange "amixer -D pulse sset Master {}%"))
(box :orientation "h" :class "slider-bright-side" :space-evenly "false"
(box :class "label-bright-side" "")
(box :class "label-bright-side" "")
(scale :min 0 :max 101 :value bright :onchange "brightnessctl s {}%"))
(box :orientation "h" :class "slider-ram-side" :space-evenly "false"
(box :class "label-ram-side" "")
(box :class "label-ram-side" "")
(scale :min 0 :active "false" :max 101 :value ram-used))
(box :orientation "h" :class "slider-battery-side" :space-evenly "false"
(box :class "label-battery-side" bat-icon)
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion nix/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,19 @@
# users.mutableUsers = false;
boot.isContainer = isContainer;
users.users."${user}" =
if !config.boot.isContainer then {
(if !config.boot.isContainer then {
isNormalUser = true;
uid = 1337;
shell = pkgs.fish;
extraGroups = [ "wheel" "tty" "audio" "video" "plugdev" "docker" ];
} else {
isNormalUser = true;
}) // {
# If provided then provision.
openssh.authorizedKeys.keys =
if self.inputs.sensitive.lib ? "ssh-keys" then
self.inputs.sensitive.lib.ssh-keys
else [ ];
};
# Make plugdev and docker if they do not exist
users.groups = {
Expand Down
2 changes: 1 addition & 1 deletion nix/common/harden.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
};

security.pki.certificateFiles = (if (sensitive.lib ? "certificates") then
(lib.catAttrs "cert" (lib.attrValues sensitive.lib.certificates)) else []);
(lib.catAttrs "cert" (lib.attrValues sensitive.lib.certificates)) else [ ]);
}

0 comments on commit c0ce255

Please sign in to comment.