mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-05 15:16:23 +01:00
Compare commits
4 commits
3c11d4177b
...
fcb7c0cd68
Author | SHA1 | Date | |
---|---|---|---|
fcb7c0cd68 | |||
3157730a5f | |||
d3d62ce5a5 | |||
a29f210273 |
58
flake.lock
58
flake.lock
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722960479,
|
"lastModified": 1724537630,
|
||||||
"narHash": "sha256-NhCkJJQhD5GUib8zN9JrmYGMwt4lCRp6ZVNzIiYCl0Y=",
|
"narHash": "sha256-gpqINM71zp3kw5XYwUXa84ZtPnCmLLnByuFoYesT1bY=",
|
||||||
"owner": "ipetkov",
|
"owner": "ipetkov",
|
||||||
"repo": "crane",
|
"repo": "crane",
|
||||||
"rev": "4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4",
|
"rev": "3e08f4b1fc9aaede5dd511d8f5f4ef27501e49b0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -28,11 +28,11 @@
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
"rust-analyzer-src": "rust-analyzer-src"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723185066,
|
"lastModified": 1724567349,
|
||||||
"narHash": "sha256-u7guFfIrfspwUp6/SEWCDhs2tVoE1fcgft0Fw7LdNEU=",
|
"narHash": "sha256-w2G1EJlGvgRSC1OAm2147mCzlt6ZOWIiqX/TSJUgrGE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "fenix",
|
"repo": "fenix",
|
||||||
"rev": "d5f1b280af93acddbcce948d946bb5db2f8035fe",
|
"rev": "71fe264f6e208831aa0e7e54ad557a283c375014",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -104,11 +104,11 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723218034,
|
"lastModified": 1724401716,
|
||||||
"narHash": "sha256-I6hMy00IkfQRcKVFVciHcZcCvuPmdnW/f58Xkstl13Y=",
|
"narHash": "sha256-LXTYUVhv6Kz9Iy9DxXSI0J+2/hunUj2fj0Kvw2eDarQ=",
|
||||||
"owner": "helix-editor",
|
"owner": "helix-editor",
|
||||||
"repo": "helix",
|
"repo": "helix",
|
||||||
"rev": "e604d9f8e0fea2223a357be7c9dc6088daef47e7",
|
"rev": "620dfceb849d6b68d41d4f7678bb4675009fef4d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -124,11 +124,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723015306,
|
"lastModified": 1724435763,
|
||||||
"narHash": "sha256-jQnFEtH20/OsDPpx71ntZzGdRlpXhUENSQCGTjn//NA=",
|
"narHash": "sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e",
|
"rev": "c2cd2a52e02f1dfa1c88f95abeb89298d46023be",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -140,11 +140,11 @@
|
||||||
"lix": {
|
"lix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722484894,
|
"lastModified": 1723511168,
|
||||||
"narHash": "sha256-mmbf3xFov+q8h+44xx3jI/RQnIqhSbVa6ljWYV/jF3c=",
|
"narHash": "sha256-XDcqLVPcsMhORerIPuQ1XNALtDvG6QRA2dKyNrccXyg=",
|
||||||
"rev": "a3ab2cc78a736109435f3cc8e1364fcc366c6c97",
|
"rev": "f9a3bf6ccccf8ac6b1604c1a2980e3a565ae4f44",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/a3ab2cc78a736109435f3cc8e1364fcc366c6c97.tar.gz"
|
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/f9a3bf6ccccf8ac6b1604c1a2980e3a565ae4f44.tar.gz?rev=f9a3bf6ccccf8ac6b1604c1a2980e3a565ae4f44"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
@ -161,11 +161,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722485024,
|
"lastModified": 1723511483,
|
||||||
"narHash": "sha256-+7RReWaFQUO8MfAhJYNm4FkALuM3rPGy2AlXXv9Jmc8=",
|
"narHash": "sha256-rT/OkVXKkns2YvyF1nFvl+8Gc3sld1c1sXPtGkbqaDY=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e350380d72f94035c309e19fda2fd550f6ab7376",
|
"rev": "cecf70b77539c1a593f60ec9d0305b5e537ab6a9",
|
||||||
"revCount": 102,
|
"revCount": 106,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.lix.systems/lix-project/nixos-module"
|
"url": "https://git.lix.systems/lix-project/nixos-module"
|
||||||
},
|
},
|
||||||
|
@ -205,11 +205,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722813957,
|
"lastModified": 1724224976,
|
||||||
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
|
"narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
|
"rev": "c374d94f1536013ca8e92341b540eba4c22f9c62",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -235,11 +235,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable-small": {
|
"nixpkgs-unstable-small": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723197662,
|
"lastModified": 1724558323,
|
||||||
"narHash": "sha256-NSvqhZYv0LY2eh0a3yoAvJjGlWeOLSjmPpivSnY9pXg=",
|
"narHash": "sha256-uPXidysk1BXSayGzpxDW8JUgGvLWS+L1CTlBV3xcQB4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0048951e7a3eba3dce8bf6ba893390d29375c5d0",
|
"rev": "ba0c72cea47a45556ccd5bc566433bd1242a0f93",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -265,11 +265,11 @@
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723124382,
|
"lastModified": 1724480527,
|
||||||
"narHash": "sha256-WdJYEBlc8qsif+y4qnkjaeEpDmOZhz8qA6i/2n1q2kw=",
|
"narHash": "sha256-C+roFDGk6Bn/C58NGpyt7cneLCetdRMUfFTkm3O4zWM=",
|
||||||
"owner": "rust-lang",
|
"owner": "rust-lang",
|
||||||
"repo": "rust-analyzer",
|
"repo": "rust-analyzer",
|
||||||
"rev": "dab022fb3127466e47e29e40769b11174b3e0ac3",
|
"rev": "74a6427861eb8d1e3b7c6090b2c2890ff4c53e0e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
dmenu = "${pkgs.rofi}/bin/rofi -theme gruvbox-dark -dmenu -p dunst";
|
dmenu = "${pkgs.rofi}/bin/rofi -theme gruvbox-dark -dmenu -p dunst";
|
||||||
browser = "${pkgs.librewolf}/bin/librewolf";
|
browser = "${pkgs.firefox}/bin/firefox";
|
||||||
mouse_left_click = "context";
|
mouse_left_click = "context";
|
||||||
mouse_middle_click = "close_current";
|
mouse_middle_click = "close_current";
|
||||||
background = "#282828";
|
background = "#282828";
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./xmobar
|
./xmobar
|
||||||
./polybar.nix
|
./polybar.nix
|
||||||
|
./eww
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
.topbar {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font: 14pt "FiraCode Nerd Font";
|
||||||
|
}
|
|
@ -0,0 +1,85 @@
|
||||||
|
(defwindow topBar
|
||||||
|
:monitor 0
|
||||||
|
:stacking "fg"
|
||||||
|
:windowtype "normal"
|
||||||
|
:wm-ignore true
|
||||||
|
:exclusive true
|
||||||
|
:geometry (geometry
|
||||||
|
:width "100%"
|
||||||
|
:height "32px"
|
||||||
|
:anchor "top center")
|
||||||
|
(topBar))
|
||||||
|
|
||||||
|
(defwidget topBar []
|
||||||
|
(overlay
|
||||||
|
:class "topBar"
|
||||||
|
(centerbox
|
||||||
|
(box
|
||||||
|
:halign "start"
|
||||||
|
:spacing 12
|
||||||
|
:space-evenly false
|
||||||
|
(label :text " ")
|
||||||
|
(cpu)
|
||||||
|
(sep)
|
||||||
|
(mem)
|
||||||
|
)
|
||||||
|
(box
|
||||||
|
:halign "center"
|
||||||
|
(label :text "Hi, jade! :3")
|
||||||
|
)
|
||||||
|
(box
|
||||||
|
:halign "end"
|
||||||
|
(time)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
(box
|
||||||
|
:class "transFlag"
|
||||||
|
:height 1
|
||||||
|
( flagEl :color "#5BCEFA")
|
||||||
|
( flagEl :color "#F5A9B8")
|
||||||
|
( flagEl :color "#FFFFFF")
|
||||||
|
( flagEl :color "#F5A9B8")
|
||||||
|
( flagEl :color "#5BCEFA")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
(defwidget sep []
|
||||||
|
(label :text "|")
|
||||||
|
)
|
||||||
|
|
||||||
|
(defwidget time []
|
||||||
|
(label
|
||||||
|
:markup {
|
||||||
|
formattime(
|
||||||
|
EWW_TIME,
|
||||||
|
"<span foreground=\"#d65d0e\"></span> %Y<span foreground=\"#7c6f64\">-</span>%m<span foreground=\"#7c6f64\">-</span>%d <span foreground=\"#d65d0e\"></span> %H<span foreground=\"#7c6f64\">:</span>%M<span foreground=\"#7c6f64\">:</span>%S "
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
(defwidget cpu []
|
||||||
|
(box
|
||||||
|
:class "cpuIndicator"
|
||||||
|
(label
|
||||||
|
:markup "<span foreground=\"#d65d0e\"></span> ${strlength(round(EWW_CPU.avg, 0)) == 1 ? " ${round(EWW_CPU.avg, 0)}" : round(EWW_CPU.avg, 0)}<span foreground=\"#7c6f64\">%</span>"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
(defwidget mem []
|
||||||
|
(box
|
||||||
|
:class "memIndicator"
|
||||||
|
(label
|
||||||
|
:markup "<span foreground=\"#d65d0e\"> </span> ${round(EWW_RAM.used_mem_perc, 0)}<span foreground=\"#7c6f64\">%</span>"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
(defwidget flagEl [color]
|
||||||
|
(box
|
||||||
|
:style "border-bottom: 2px solid ${color}"
|
||||||
|
:halign "fill"
|
||||||
|
)
|
||||||
|
)
|
6
modules/desktop-environment/home/panels/eww/default.nix
Normal file
6
modules/desktop-environment/home/panels/eww/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ ... }: {
|
||||||
|
programs.eww = {
|
||||||
|
enable = true;
|
||||||
|
configDir = ./configDir;
|
||||||
|
};
|
||||||
|
}
|
23
modules/desktop-environment/home/panels/eww/scripts/bat.nu
Normal file
23
modules/desktop-environment/home/panels/eww/scripts/bat.nu
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env nu
|
||||||
|
|
||||||
|
const ICONS = [
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
[ ]
|
||||||
|
];
|
||||||
|
|
||||||
|
def get_bat_percent [path: string] {
|
||||||
|
let energy_full = open $"/sys/class/power_supply/($path)/energy_full" | into float;
|
||||||
|
let energy_now = open $"/sys/class/power_supply/($path)/energy_now" | into float;
|
||||||
|
|
||||||
|
($energy_now / $energy_full) * 100
|
||||||
|
}
|
||||||
|
|
|
@ -20,6 +20,8 @@ in
|
||||||
signal-desktop
|
signal-desktop
|
||||||
mumble
|
mumble
|
||||||
element-desktop
|
element-desktop
|
||||||
|
# nheko
|
||||||
|
# iamb
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
helix-inline-diags,
|
helix-inline-diags,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home-manager.users.jade = {pkgs, ...}: {
|
home-manager.users.jade = {
|
||||||
|
pkgs,
|
||||||
|
pkgs-stable,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home = {
|
home = {
|
||||||
sessionVariables.EDITOR = "hx";
|
sessionVariables.EDITOR = "hx";
|
||||||
packages = [
|
packages = [
|
||||||
|
@ -11,7 +15,7 @@
|
||||||
pkgs.vscode-langservers-extracted
|
pkgs.vscode-langservers-extracted
|
||||||
pkgs.nodePackages.typescript-language-server
|
pkgs.nodePackages.typescript-language-server
|
||||||
pkgs.emmet-language-server
|
pkgs.emmet-language-server
|
||||||
pkgs.typst-lsp
|
pkgs-stable.typst-lsp
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
|
|
Loading…
Reference in a new issue