Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueljg committed Mar 12, 2024
1 parent 54b7779 commit c359ded
Show file tree
Hide file tree
Showing 11 changed files with 482 additions and 16 deletions.
42 changes: 37 additions & 5 deletions flake.lock

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

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
inputs.nixpkgs.follows = "nixpkgs";
};

my-web-app = {
url = "path:/home/ejg/getting-started-app";
};

# inputs.bandcamp-artist-dl = {
# url = "path:/home/ejg/bandcamp-artist-dl";
# inputs.nixpkgs.follows = "nixpkgs";
Expand Down
1 change: 1 addition & 0 deletions modules/_oakleaf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_: { }
2 changes: 1 addition & 1 deletion modules/oakleaf/_spec-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
my.xsession.windowManager.i3.config = {
startup =
let
images = lib.concatMapStringsSep " " (_: "~/papes/") [
images = lib.concatMapStringsSep " " (pape: "~/papes/${pape}") [
"tavern.jpg"
"rocknroll-futon-day.jpg"
"girl-beach.jpg"
Expand Down
15 changes: 15 additions & 0 deletions modules/oakleaf/my-web-app.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ my-web-app, ... }: {
imports = [
my-web-app.nixosModules.default
];
services.my-web-app = {
enable = true;
reverseProxy = {
enable = true;
virtualHost = {
serverName = "webapp.emanueljg.com";
};
};
};
}

14 changes: 7 additions & 7 deletions modules/pc/i3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"${modifier}+Down" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
};
bars = [
{
fonts = {
names = [ "pango" ];
style = "monospace";
size = 19.0;
};
}
# {
# fonts = {
# names = [ "pango" ];
# style = "monospace";
# size = 19.0;
# };
# }
];
floating.criteria = [{ title = "YubiKey Onboarding"; }];
};
Expand Down
79 changes: 79 additions & 0 deletions modules/pc/polybar.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{ pkgs, config, ... }: {
my.services.polybar = with import ../themes/everforest/soft.nix; {
enable = true;
package = pkgs.polybarFull;
script = ''
# polybar center
'';
settings =
let
i3BarWidth = output:
let
workspaces = builtins.filter
(assign: (builtins.head assign.output) == output)
config.my.xsession.windowManager.i3.config.workspaceOutputAssign;
chars = builtins.foldl'
(a: b: a + builtins.stringLength b.workspace)
0
workspaces;
totalLength = chars * 13 + (builtins.length workspaces) * 2 * 12;
in
totalLength;
outputBar = output: attrs: attrs // {
monitor = "\${env:MONITOR:${output}}";
width = "${builtins.toString (i3BarWidth output)}px";

background = fg.red;
};
in
{
"bar/left" = outputBar "DVI-I-1-1"
{
height = "3%";
modules = {
left = "i3";
};
bottom = true;
offset = {
x = 20;
y = 20;
};
scroll = {
up = "#i3.prev";
down = "#i3.next";
};
font = [
"JetBrainsMono:pixelsize=16:weight=bold;3"
];
wm-restack = "i3";
override-redirect = true;
};
"module/i3" = {
type = "internal/i3";
pin-workspaces = true;

label =
let
default = {
foreground = fg.grey2;
padding = "12px";
text = "%name%";
format.padding = 0;
};
in
{
unfocused = default // {
background = bg.bg_dim;
};
focused = default // {
background = bg.bg_visual;
};
visible = default // {
background = bg.bg0;
};
};
};

};
};
}
2 changes: 1 addition & 1 deletion modules/void/deluge.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ config, ... }: {
services.deluge = {
enable = true;
enable = false;

web = {
enable = true;
Expand Down
Loading

0 comments on commit c359ded

Please sign in to comment.