Skip to content

Commit

Permalink
feat: some agenix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Oct 31, 2023
1 parent 683b1e1 commit eeab964
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 188 deletions.
180 changes: 36 additions & 144 deletions flake.lock

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

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
url = "github:viperML/nh";
inputs.nixpkgs.follows = "nixpkgs";
};
ragenix = {
url = "github:yaxitech/ragenix";
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
Expand Down
1 change: 1 addition & 0 deletions home/impermanence.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ _: {
".config/WebCord"
".config/easyeffects"
".config/BraveSoftware/"
".config/spotify-tui"
".cache/BraveSoftware/"
".cache/nix"
".cache/thunderbird/"
Expand Down
43 changes: 6 additions & 37 deletions home/rice/hyprland/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,6 @@
pkgs,
...
}: let
# thanks vi-tality
propaganda = pkgs.writeTextFile {
name = "propaganda";
text = ''
Nix advantages:
- Correct and complete packaging
- Immutable & reproducible results
- Easy to cross and static compile
- Source-based (you can alter packages without forking anything)
- Single package manager to rule them all! (C, Python, Docker, NodeJS, etc)
- Great for development, easily switches between dev envs with direnv
- Easy to try out packages without installing using `nix shell` or `nix run`
- allows to create scripts that can do and depend on anything, so long as the host has nix, it'll download things automatically for them
- Uses binary caches so you almost never need to compile anything
- Easy to set up a binary cache
- Easy to set up remote building
- Excellent testing infrastructure
- Portable - runs on Linux and macOS
- Can be built statically and run anywhere without root permissions
- Mix and match different package versions without conflicts
- Flakes let you pin versions to specific revisions
NixOS advantages:
- Declarative configuration
- Meaning easier to configure your system(s)
- Easier to change, manage and maintain the configuration
- Easier to back up and share with people
- Easy to deploy machines and their configuration
- Out of the box Rollbacks.
- Configuration options for many programs & services
- Free of side effects - Actually uninstalls packages and their dependencies
- Easy to set up VMs
- People can test each other's configurations using `nix run` and `nix shell` by just having access to the source
'';
};
pointer = config.home.pointerCursor;
in {
# mostly borrwed from https://github.com/fufexan/dotfiles/blob/main/home/wayland/hyprland/config.nix (and raf)
Expand All @@ -47,7 +12,8 @@ in {
settings = {
# define the mod key
"$MOD" = "SUPER";
"$scratchpad" = "title:^(scratchpad)$";
"$scratchpad" = "title:^.*scratchpad.*$";
"$spotify" = "title:^.*scratchpad-spotify.*$";
"$pavucontrol" = "class:^(pavucontrol)$";

exec-once = [
Expand Down Expand Up @@ -249,6 +215,9 @@ in {
"workspace special silent,$scratchpad"
"center,$scratchpad"

"bordercolor rgb(a6e3a1),$spotify"
"bordersize 4,$spotify"

# telegram media viewer
"float, title:^(Media viewer)$"

Expand Down Expand Up @@ -347,7 +316,7 @@ in {
animation = "fromTop";
};
spotify = {
command = "foot --title scratchpad -e spt";
command = "foot --title scratchpad-spotify -e spt";
margin = 50;
unfocus = "hide";
animation = "fromTop";
Expand Down
Loading

0 comments on commit eeab964

Please sign in to comment.