Skip to content

Commit 2545bf9

Browse files
committed
feat: update inputs
1 parent d2610da commit 2545bf9

11 files changed

Lines changed: 900 additions & 934 deletions

File tree

flake.lock

Lines changed: 707 additions & 829 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727

2828
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
2929
hyprland.inputs.nixpkgs.follows = "nixpkgs";
30-
hyprland-plugins.url =
31-
"git+https://github.com/redxtech/hyprland-plugins?ref=add-hyprselect-submodule&submodules=1";
30+
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
3231
hyprland-plugins.inputs.hyprland.follows = "hyprland";
3332

3433
nixos-generators.url = "github:nix-community/nixos-generators";
@@ -41,7 +40,7 @@
4140
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
4241

4342
limbo.url = "github:co-conspirators/limbo";
44-
limbo-rs.url = "git+file:///home/gabe/Code/limbo-rs";
43+
limbo-rs.url = "github:co-conspirators/limbo-rs";
4544

4645
tu.url = "github:redxtech/tu";
4746

@@ -63,11 +62,20 @@
6362
nur.url = "github:nix-community/NUR";
6463
};
6564

66-
outputs = inputs@{ self, nixpkgs, home-manager, flake-parts, hardware, ... }:
65+
outputs =
66+
inputs@{
67+
self,
68+
nixpkgs,
69+
home-manager,
70+
flake-parts,
71+
hardware,
72+
...
73+
}:
6774
let
6875
mkLib = nixpkgs: nixpkgs.lib.extend (final: prev: (import ./lib final));
6976
customLib = mkLib nixpkgs;
70-
in flake-parts.lib.mkFlake { inherit inputs; } {
77+
in
78+
flake-parts.lib.mkFlake { inherit inputs; } {
7179
imports = [
7280
./modules/flake/ci.nix
7381
./modules/flake/deploy.nix
@@ -80,7 +88,10 @@
8088
./modules/flake/shell.nix
8189
];
8290

83-
systems = [ "x86_64-linux" "aarch64-linux" ];
91+
systems = [
92+
"x86_64-linux"
93+
"aarch64-linux"
94+
];
8495

8596
flake = {
8697
nixosConfigurations = {
@@ -109,8 +120,17 @@
109120
lib = customLib;
110121
};
111122

112-
perSystem = { config, self', inputs', pkgs, system, ... }: {
113-
formatter = pkgs.nixpkgs-fmt;
114-
};
123+
perSystem =
124+
{
125+
config,
126+
self',
127+
inputs',
128+
pkgs,
129+
system,
130+
...
131+
}:
132+
{
133+
formatter = pkgs.nixpkgs-fmt;
134+
};
115135
};
116136
}

hosts/quasar/services/containers.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ in {
886886
};
887887

888888
watchtower = {
889-
image = "containrrr/watchtower:latest";
889+
image = "nickfedor/watchtower:latest";
890890
labels = mkAllLabels "watchtower" {
891891
name = "watchtower";
892892
group = "services";

modules/flake/overlays.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@
5050
inputs.solaar.packages.${final.stdenv.hostPlatform.system}.default;
5151

5252
# include plugins with thunar
53-
thunar = prev.xfce.thunar.override {
54-
thunarPlugins =
55-
[ prev.xfce.thunar-archive-plugin prev.xfce.thunar-volman ];
56-
};
53+
thunar =
54+
prev.thunar.override { thunarPlugins = [ prev.thunar-volman ]; };
5755

5856
zinit = prev.zinit.overrideAttrs (oldAttrs: {
5957
installPhase = ''

modules/home-manager/cli/default.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ in {
5454
packages = with pkgs;
5555
[
5656
age # encryption
57-
ani-cli # anime tool
57+
android-tools # android debug bridge
5858
appimage-run # run appimages
5959
atool # work with archives
6060
bitwarden-cli # password manager
@@ -70,7 +70,7 @@ in {
7070
dig # dns utils
7171
diffsitter # better diff
7272
distrobox # nice escape hatch, integrates docker images with my environment
73-
dogdns # better dig
73+
doggo # better dig
7474
dust # better du
7575
dua # better du
7676
ente-cli # manage ente from cli
@@ -106,13 +106,12 @@ in {
106106
micro # editor
107107
most # pager
108108
neofetch # system info
109-
nixfmt-classic # nix formatter
109+
nixfmt # nix formatter
110110
nixpkgs-review # nixpkgs PR reviewer
111111
nix-autobahn # dynamic executable helper
112112
nix-du # du for nix store
113113
nix-inspect # see which pkgs are in your PATH
114114
nix-update # update hashes in nix files
115-
omnix # better cli for nix
116115
onefetch # current repo info
117116
pciutils # pci info
118117
pfetch-rs # system info
@@ -143,7 +142,7 @@ in {
143142
xclip # clipboard manager
144143
xdg-utils # for xdg-open
145144
xdo # xdotool
146-
xfce.exo # protocol handler
145+
xfce4-exo # protocol handler
147146
xorg.xev # keyboard event viewer
148147
xorg.xmodmap # keyboard remapper
149148
yadm # dotfile manager

modules/home-manager/cli/fish.nix

Lines changed: 78 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
{ config, lib, pkgs, hostnames, ... }:
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
hostnames,
6+
...
7+
}:
28

39
let
410
inherit (lib) mkIf concatStringsSep;
511
cfg = config.cli;
612

713
language = name: text: text;
8-
hasPackage = pname:
9-
lib.any (p: p ? pname && p.pname == pname) config.home.packages;
14+
hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages;
1015

1116
hasRipgrep = hasPackage "ripgrep";
1217
hasNeovim = config.programs.neovim.enable;
13-
in {
18+
in
19+
{
1420
config = mkIf cfg.enable {
15-
home.packages = with pkgs; [ babelfish grc ];
21+
home.packages = with pkgs; [
22+
babelfish
23+
grc
24+
];
1625

1726
programs.fish = {
1827
enable = true;
@@ -24,8 +33,7 @@ in {
2433
nr = "nix run nixpkgs#";
2534
nsn = "nix shell nixpkgs#";
2635
nbn = "nix build nixpkgs#";
27-
nbp =
28-
"nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'";
36+
nbp = "nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'";
2937
nrr = "nixos-rebuild-remote";
3038

3139
# xmodmap
@@ -48,15 +56,13 @@ in {
4856
fish_greeting = "";
4957

5058
fish_user_key_bindings = language "fish" ''
51-
# fish_vi_key_bindings
52-
5359
# use search with tab complete - next best thing to fzf tab completion
54-
bind --mode insert \t complete-and-search
55-
bind --mode insert --key btab complete
56-
bind --mode visual \t complete-and-search
57-
bind --mode visual --key btab complete
58-
bind \t complete-and-search
59-
bind --key btab complete
60+
bind --mode insert tab complete
61+
bind --mode insert shift-tab complete-and-search
62+
bind --mode visual tab complete
63+
bind --mode visual shift-tab complete-and-search
64+
bind tab complete
65+
bind shift-tab complete-and-search
6066
6167
# open command buffer in vim when alt+e is pressed
6268
bind \ee edit_command_buffer
@@ -179,8 +185,7 @@ in {
179185
};
180186

181187
# grep using ripgrep and pass to nvim
182-
nvimrg =
183-
mkIf (hasNeovim && hasRipgrep) "nvim -q (rg --vimgrep $argv | psub)";
188+
nvimrg = mkIf (hasNeovim && hasRipgrep) "nvim -q (rg --vimgrep $argv | psub)";
184189

185190
# prints the command to the screen, colorized it would be when executed
186191
# at the command line, then executes the command.
@@ -231,8 +236,10 @@ in {
231236
'';
232237
};
233238

234-
plugins = with pkgs;
235-
with fishPlugins; [
239+
plugins =
240+
with pkgs;
241+
with fishPlugins;
242+
[
236243
{
237244
name = "fisher";
238245
src = fetchFromGitHub {
@@ -426,29 +433,57 @@ in {
426433
};
427434

428435
# file writing
429-
xdg.configFile."fish/env.secrets.fish".text = let
430-
inherit (builtins) concatStringsSep elemAt map;
431-
cat = pkgs.coreutils + "/bin/cat";
432-
mkSecret = entry:
433-
let
434-
name = elemAt entry 0;
435-
secret = elemAt entry 1;
436-
path = config.sops.secrets.${secret}.path;
437-
in ''set --export ${name} "$(${cat} ${path} 2>/dev/null)"'';
438-
secrets = [
439-
[ "YOUTUBE_API_KEY" "youtube" ]
440-
[ "BW_SESSION" "bw" ]
441-
[ "CACHIX_AUTH_TOKEN" "cachix" ]
442-
[ "CACHIX_ACTIVATE_TOKEN" "cachix-activate" ]
443-
[ "HASS_SERVER" "hass_url" ]
444-
[ "HASS_TOKEN" "hass_token" ]
445-
[ "OPENROUTER_KEY" "openrouter_key" ]
446-
[ "OPENAI_KEY" "openai_key" ]
447-
];
448-
envFile = concatStringsSep "\n" (map mkSecret secrets);
449-
in ''
450-
${envFile}
451-
set --export NIX_CONFIG "access-tokens = github.com=$(${cat} ${config.sops.secrets.nix-github-token.path} 2>/dev/null)"
452-
'';
436+
xdg.configFile."fish/env.secrets.fish".text =
437+
let
438+
inherit (builtins) concatStringsSep elemAt map;
439+
cat = pkgs.coreutils + "/bin/cat";
440+
mkSecret =
441+
entry:
442+
let
443+
name = elemAt entry 0;
444+
secret = elemAt entry 1;
445+
path = config.sops.secrets.${secret}.path;
446+
in
447+
''set --export ${name} "$(${cat} ${path} 2>/dev/null)"'';
448+
secrets = [
449+
[
450+
"YOUTUBE_API_KEY"
451+
"youtube"
452+
]
453+
[
454+
"BW_SESSION"
455+
"bw"
456+
]
457+
[
458+
"CACHIX_AUTH_TOKEN"
459+
"cachix"
460+
]
461+
[
462+
"CACHIX_ACTIVATE_TOKEN"
463+
"cachix-activate"
464+
]
465+
[
466+
"HASS_SERVER"
467+
"hass_url"
468+
]
469+
[
470+
"HASS_TOKEN"
471+
"hass_token"
472+
]
473+
[
474+
"OPENROUTER_KEY"
475+
"openrouter_key"
476+
]
477+
[
478+
"OPENAI_KEY"
479+
"openai_key"
480+
]
481+
];
482+
envFile = concatStringsSep "\n" (map mkSecret secrets);
483+
in
484+
''
485+
${envFile}
486+
set --export NIX_CONFIG "access-tokens = github.com=$(${cat} ${config.sops.secrets.nix-github-token.path} 2>/dev/null)"
487+
'';
453488
};
454489
}

modules/home-manager/desktop/apps/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ in {
7070
vesktop # better discord client
7171
vlc # video player
7272
warp # file transfer
73-
xfce.exo # file opener
73+
xfce4-exo # file opener
7474
] ++ config.desktop.apps;
7575

7676
services.playerctld = { enable = true; };

modules/home-manager/desktop/services.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ in {
5050

5151
vicinae = {
5252
enable = true;
53-
autoStart = true;
53+
systemd.enable = true;
5454

5555
settings = {
5656
faviconService = "twenty"; # twenty | google | none

0 commit comments

Comments
 (0)