nixos: update code tooling setup
This commit is contained in:
@@ -1,11 +1,36 @@
|
|||||||
{ pkgs, config, inputs, makeEnable, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
makeEnable,
|
||||||
|
...
|
||||||
|
}:
|
||||||
makeEnable config "myModules.code" true {
|
makeEnable config "myModules.code" true {
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
hardware.uinput.enable = lib.mkIf config.myModules.desktop.enable true;
|
||||||
|
|
||||||
|
programs.ydotool = lib.mkIf config.myModules.desktop.enable {
|
||||||
|
enable = true;
|
||||||
|
group = "input";
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.sharedModules = lib.mkIf config.myModules.desktop.enable [
|
||||||
|
{
|
||||||
|
xdg.configFile."codex-desktop/settings.json".text =
|
||||||
|
(builtins.toJSON {
|
||||||
|
"codex-linux-computer-use-ui-enabled" = true;
|
||||||
|
})
|
||||||
|
+ "\n";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs;
|
||||||
|
[
|
||||||
# LLM Tools
|
# LLM Tools
|
||||||
antigravity
|
antigravity
|
||||||
claude-code
|
claude-code
|
||||||
@@ -82,10 +107,16 @@ makeEnable config "myModules.code" true {
|
|||||||
nixd
|
nixd
|
||||||
nil
|
nil
|
||||||
alejandra
|
alejandra
|
||||||
] ++ (if pkgs.stdenv.hostPlatform.system == "x86_64-linux" then with pkgs; [
|
]
|
||||||
|
++ (
|
||||||
|
if pkgs.stdenv.hostPlatform.system == "x86_64-linux"
|
||||||
|
then
|
||||||
|
with pkgs; [
|
||||||
# purescript
|
# purescript
|
||||||
purescript
|
purescript
|
||||||
# Broken
|
# Broken
|
||||||
# spago
|
# spago
|
||||||
] else []);
|
]
|
||||||
|
else []
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
6
nixos/flake.lock
generated
6
nixos/flake.lock
generated
@@ -1217,11 +1217,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777434099,
|
"lastModified": 1777725675,
|
||||||
"narHash": "sha256-GutKXyfGI7o89Dge4bP0yt0CQn1rqA6LyYDOH4GemdE=",
|
"narHash": "sha256-nZtehV0SrY5GsAaxRJHBV7Ne9Pc4KJytEdEy6DGn/1k=",
|
||||||
"owner": "colonelpanic8",
|
"owner": "colonelpanic8",
|
||||||
"repo": "keepbook",
|
"repo": "keepbook",
|
||||||
"rev": "240fe454c26e7dbdd25a2fa4f0b436bf1c4f937b",
|
"rev": "c719a94d0338f77510e1c53b3076fbd49af74486",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
switch *args:
|
switch *args:
|
||||||
sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false {{args}}
|
env PATH=/run/wrappers/bin:$PATH sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false \
|
||||||
|
--override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \
|
||||||
|
--override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
|
||||||
|
{{args}}
|
||||||
|
|
||||||
switch-remote *args:
|
switch-remote *args:
|
||||||
# Switch using the remote master flake.
|
# Switch using the remote master flake.
|
||||||
@@ -7,7 +10,10 @@ switch-remote *args:
|
|||||||
|
|
||||||
switch-local *args:
|
switch-local *args:
|
||||||
# Backwards-compat alias for local switch.
|
# Backwards-compat alias for local switch.
|
||||||
sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false {{args}}
|
env PATH=/run/wrappers/bin:$PATH sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false \
|
||||||
|
--override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \
|
||||||
|
--override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
|
||||||
|
{{args}}
|
||||||
|
|
||||||
switch-local-taffybar *args:
|
switch-local-taffybar *args:
|
||||||
# Like `switch-remote`, but use the local taffybar checkout (useful when hacking on it).
|
# Like `switch-remote`, but use the local taffybar checkout (useful when hacking on it).
|
||||||
@@ -17,9 +23,10 @@ switch-local-taffybar *args:
|
|||||||
systemctl status nixos-rebuild-switch-to-configuration.service --no-pager >&2 || true; \
|
systemctl status nixos-rebuild-switch-to-configuration.service --no-pager >&2 || true; \
|
||||||
while systemctl is-active --quiet nixos-rebuild-switch-to-configuration.service; do sleep 1; done; \
|
while systemctl is-active --quiet nixos-rebuild-switch-to-configuration.service; do sleep 1; done; \
|
||||||
fi'
|
fi'
|
||||||
sudo env IMALISON_TAFFYBAR_LIVE_CHECKOUT=/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
|
env PATH=/run/wrappers/bin:$PATH sudo env IMALISON_TAFFYBAR_LIVE_CHECKOUT=/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
|
||||||
nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#" --impure --option warn-dirty false \
|
nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#" --impure --option warn-dirty false \
|
||||||
--override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \
|
--override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \
|
||||||
|
--override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
|
||||||
{{args}}
|
{{args}}
|
||||||
|
|
||||||
remote-switch host *args:
|
remote-switch host *args:
|
||||||
|
|||||||
Reference in New Issue
Block a user