mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2025-06-10 15:04:35 +02:00
modularize nix version choice
This commit is contained in:
parent
df6cecdc98
commit
1e4fd788ed
5 changed files with 32 additions and 4 deletions
home-manager/modules
|
@ -60,6 +60,10 @@ with lib;
|
|||
default = false;
|
||||
description = "Whether to enable noise suppression or not";
|
||||
};
|
||||
nixVersion = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.nixVersions.latest;
|
||||
};
|
||||
};
|
||||
nixGLPrefix = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
|
|
|
@ -24,7 +24,6 @@ in
|
|||
home.packages =
|
||||
with pkgs;
|
||||
[
|
||||
pkgs.nixVersions.latest # because remotely invoked updates are fun ;)
|
||||
up
|
||||
htop
|
||||
rustc
|
||||
|
@ -52,7 +51,7 @@ in
|
|||
(pkgs.writeShellScriptBin "yt-dlp-audio" (builtins.readFile ./../scripts/yt-dlp-audio.sh))
|
||||
(pkgs.writeShellScriptBin "nix-shell-init" (builtins.readFile ./../scripts/nix-shell-init.sh))
|
||||
(pkgs.writeShellScriptBin "http-server" ''
|
||||
${pkgs.caddy}/bin/caddy file-server --listen :2345
|
||||
${pkgs.caddy}/bin/caddy file-server --listen :2345z
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "nix-build-default" ''
|
||||
nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue