Allow unfree packages with "run" and "shell" commands
Some checks failed
Update Nix Flake / update-flake (push) Failing after 16s
Some checks failed
Update Nix Flake / update-flake (push) Failing after 16s
This commit is contained in:
@@ -43,14 +43,14 @@ with lib; {
|
|||||||
cd $argv
|
cd $argv
|
||||||
'';
|
'';
|
||||||
run = ''
|
run = ''
|
||||||
nix run nixpkgs#"$argv[1]" -- $argv[2..-1]
|
nix run --impure nixpkgs#"$argv[1]" -- $argv[2..-1]
|
||||||
'';
|
'';
|
||||||
shell = ''
|
shell = ''
|
||||||
set args
|
set args
|
||||||
for arg in $argv
|
for arg in $argv
|
||||||
set args $args nixpkgs#$arg
|
set args $args nixpkgs#$arg
|
||||||
end
|
end
|
||||||
nix shell $args
|
nix shell --impure $args
|
||||||
'';
|
'';
|
||||||
fish_user_key_bindings = ''
|
fish_user_key_bindings = ''
|
||||||
bind ctrl-space 'zi; commandline -f repaint'
|
bind ctrl-space 'zi; commandline -f repaint'
|
||||||
|
|||||||
@@ -24,6 +24,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# To allow unfree with 'nix run'
|
||||||
|
xdg.configFile."nixpkgs/config.nix".text = ''
|
||||||
|
{ allowUnfree = true; }
|
||||||
|
'';
|
||||||
|
|
||||||
colorscheme.name = "catppuccin-mocha";
|
colorscheme.name = "catppuccin-mocha";
|
||||||
|
|
||||||
# systemd.user.startServices = "sd-switch"; # TODO: what is this
|
# systemd.user.startServices = "sd-switch"; # TODO: what is this
|
||||||
|
|||||||
Reference in New Issue
Block a user