remove nixpkgs channels which are not needed anymore

This commit is contained in:
Ingolf Wagner 2024-06-07 14:25:34 +02:00
parent c5b5857a39
commit bd674ce4eb
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
18 changed files with 41 additions and 102 deletions

View file

@ -630,38 +630,6 @@
"type": "github"
}
},
"nixpkgs-legacy_2105": {
"locked": {
"lastModified": 1659914493,
"narHash": "sha256-lkA5X3VNMKirvA+SUzvEhfA7XquWLci+CGi505YFAIs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "022caabb5f2265ad4006c1fa5b1ebe69fb0c3faf",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-21.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-legacy_2205": {
"locked": {
"lastModified": 1685573264,
"narHash": "sha256-Zffu01pONhs/pqH07cjlF10NnMDLok8ix5Uk4rhOnZQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "380be19fbd2d9079f677978361792cb25e8a3635",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-22.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-legacy_2211": {
"locked": {
"lastModified": 1688392541,
@ -678,22 +646,6 @@
"type": "github"
}
},
"nixpkgs-legacy_2305": {
"locked": {
"lastModified": 1704290814,
"narHash": "sha256-LWvKHp7kGxk/GEtlrGYV68qIvPHkU9iToomNFGagixU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "70bdadeb94ffc8806c0570eb5c2695ad29f0e421",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-legacy_2311": {
"locked": {
"lastModified": 1717530100,
@ -950,10 +902,7 @@
"nixos-anywhere": "nixos-anywhere",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_5",
"nixpkgs-legacy_2105": "nixpkgs-legacy_2105",
"nixpkgs-legacy_2205": "nixpkgs-legacy_2205",
"nixpkgs-legacy_2211": "nixpkgs-legacy_2211",
"nixpkgs-legacy_2305": "nixpkgs-legacy_2305",
"nixpkgs-legacy_2311": "nixpkgs-legacy_2311",
"overviewer": "overviewer",
"permown": "permown",

View file

@ -22,10 +22,7 @@
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-legacy_2105.url = "github:nixos/nixpkgs/nixos-21.05";
nixpkgs-legacy_2205.url = "github:nixos/nixpkgs/nixos-22.05";
nixpkgs-legacy_2211.url = "github:nixos/nixpkgs/nixos-22.11";
nixpkgs-legacy_2305.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs-legacy_2311.url = "github:nixos/nixpkgs/nixos-23.11";
nixos-hardware.url = "github:nixos/nixos-hardware";
nixos-anywhere.url = "github:nix-community/nixos-anywhere";
@ -112,10 +109,7 @@
, nixos-anywhere
, nixos-hardware
, nixpkgs
, nixpkgs-legacy_2105
, nixpkgs-legacy_2205
, nixpkgs-legacy_2211
, nixpkgs-legacy_2305
, nixpkgs-legacy_2311
, overviewer
, permown
@ -147,15 +141,14 @@
];
overlays = [
(_self: _super: {
# todo : remove this, we are on unstable in the future
unstable = import nixpkgs {
legacy_2211 = import nixpkgs-legacy_2211 {
inherit system;
config.allowUnfree = true;
};
legacy_2311 = import nixpkgs-legacy_2311 {
inherit system;
config.allowUnfree = true;
};
legacy_2205 = import nixpkgs-legacy_2205 { inherit system; };
legacy_2211 = import nixpkgs-legacy_2211 { inherit system; };
legacy_2305 = import nixpkgs-legacy_2305 { inherit system; };
legacy_2311 = import nixpkgs-legacy_2311 { inherit system; };
polygon-art = polygon-art.packages.${system};
landingpage = landingpage.packages.${system}.plain;
kmonad = kmonad.packages.${system}.kmonad;
@ -224,7 +217,7 @@
];
})
# configure nix
({ pkgs, ... }:
({ pkgs, lib, ... }:
{
nix.settings.substituters = [ "https://cache.nixos.org/" ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
@ -232,6 +225,10 @@
# no channesl needed this way
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
documentation.nixos.enable = true;
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 10;
boot.loader.generic-extlinux-compatible.configurationLimit = lib.mkDefault 10;
boot.loader.grub.configurationLimit = lib.mkDefault 10;
})
# some modules I always use
permown.nixosModules.permown

View file

@ -10,7 +10,7 @@
# only needed if you have an UHK
hardware.keyboard.uhk.enable = true;
environment.systemPackages = [ pkgs.unstable.uhk-agent ];
environment.systemPackages = [ pkgs.uhk-agent ];
users.users.mainUser.extraGroups = [ "input" ];
services.xserver = {

View file

@ -3,7 +3,7 @@
with lib;
let
obs-cmd = pkgs.unstable.rustPlatform.buildRustPackage
obs-cmd = pkgs.rustPlatform.buildRustPackage
rec {
pname = "obs-cmd";
version = "v0.15.2";
@ -128,8 +128,8 @@ in
boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
environment.systemPackages = with pkgs; [
unstable.youtube-dl
unstable.yt-dlp
youtube-dl
yt-dlp
mplayer
mpv
mpvReview
@ -140,7 +140,7 @@ in
# obs studio stuff
unstable.obs-cli
obs-cli
v4l-utils
obs-cmd

View file

@ -38,7 +38,7 @@ in
(mkIf config.components.monitor.opentelemetry.enable {
services.opentelemetry-collector = {
enable = true;
package = pkgs.unstable.opentelemetry-collector-contrib;
package = pkgs.opentelemetry-collector-contrib;
};
})

View file

@ -12,7 +12,7 @@ with lib;
(pkgs.writers.writeBashBin "heygpt" ''
export OPENAI_API_BASE="https://api.openai.com/v1"
export OPENAI_API_KEY=$(pass openai/apikey)
${lib.getExe pkgs.unstable.heygpt} "$@"
${lib.getExe pkgs.heygpt} "$@"
'')
(pkgs.writers.writeBashBin "heygpt-models" ''
export OPENAI_API_KEY=$(pass openai/apikey)

View file

@ -372,7 +372,7 @@ let
createDashboard = { json, name }:
let configuration = pkgs.writeText "config.yml" (builtins.toJSON json);
in pkgs.writers.writeBashBin name ''
${pkgs.unstable.wtf}/bin/wtfutil --config=${toString configuration}
${pkgs.wtf}/bin/wtfutil --config=${toString configuration}
'';
in
@ -387,7 +387,7 @@ in
services.upower.enable = true;
environment.systemPackages = [
pkgs.unstable.wtf
pkgs.wtf
(createDashboard {
json = qJson;
name = "q";

View file

@ -31,9 +31,9 @@ with lib;
killall
nix-tree
unstable.vulnix
vulnix
(writers.writeBashBin "vulnix-system" ''
${unstable.vulnix}/bin/vulnix --profile /nix/var/nix/profiles/system
${vulnix}/bin/vulnix --profile /nix/var/nix/profiles/system
'')
];

View file

@ -36,8 +36,8 @@
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
#package = pkgs.unstable.atuin;
package = pkgs.unstable.atuin.overrideAttrs (_old: {
#package = pkgs.atuin;
package = pkgs.atuin.overrideAttrs (_old: {
# as cursed as doing mitigations=off in the kernel command line
patches = [ "${assets}/0001-make-atuin-on-zfs-fast-again.patch" ];
});

View file

@ -10,22 +10,21 @@ with lib;
home.packages = [
# general
unstable.jetbrains.idea-ultimate
jetbrains.idea-ultimate
#vscode
jetbrains.mps
unstable.jetbrains.datagrip
jetbrains.datagrip
# Rust
# ----
unstable.jetbrains.clion
jetbrains.clion
gcc
rustup
# Python
# ------
unstable.jetbrains.pycharm-professional
jetbrains.pycharm-professional
# planing
((ganttproject-bin.override {
@ -87,14 +86,14 @@ with lib;
miller
# nomad
unstable.nomad
unstable.vault
unstable.consul
nomad
vault
consul
wander
# terraform
unstable.terragrunt
unstable.terraform
terragrunt
terraform
terraform-docs
awscli2
@ -102,7 +101,7 @@ with lib;
python3Full
pipenv
unstable.mdbook
mdbook
nodePackages.prettier
shfmt

View file

@ -42,7 +42,7 @@ with lib;
nginx-config-formatter
unstable.yt-dlp
yt-dlp
OSCAR

View file

@ -74,7 +74,7 @@ in
taskwarrior-hooks
(pkgs.writeShellScriptBin "tsak" ''${pkgs.taskwarrior}/bin/task "$@"'')
unstable.vit
vit
(pkgs.writers.writeBashBin "active" "${taskwarrior-tui}/bin/taskwarrior-tui -r active")
(pkgs.writers.writeBashBin "todo" "${taskwarrior-tui}/bin/taskwarrior-tui -r todo")

View file

@ -19,7 +19,7 @@ with lib;
bitwarden
unstable.yt-dlp
yt-dlp
# office
pdfarranger

View file

@ -5,9 +5,9 @@
youtube-dl
ipset # for sshguard
unstable.vulnix
vulnix
(pkgs.writers.writeBashBin "vulnix-system" ''
${pkgs.unstable.vulnix}/bin/vulnix --profile /nix/var/nix/profiles/system
${pkgs.vulnix}/bin/vulnix --profile /nix/var/nix/profiles/system
'')
];

View file

@ -26,7 +26,7 @@ in
serviceConfig = {
Type = "simple";
WorkingDirectory = "/srv/audiobookshelf";
ExecStart = "${unstable.audiobookshelf}/bin/audiobookshelf --port ${toString port}";
ExecStart = "${audiobookshelf}/bin/audiobookshelf --port ${toString port}";
ExecReload = "${util-linux}/bin/kill -HUP $MAINPID";
Restart = "always";
User = config.users.users.audiobookshelf.name;

View file

@ -1,7 +1,7 @@
{ config, pkgs, assets, ... }: {
services.atuin = {
enable = true;
package = pkgs.unstable.atuin.overrideAttrs (_old: {
package = pkgs.atuin.overrideAttrs (_old: {
# as cursed as doing mitigations=off in the kernel command line
patches = [ "${assets}/0001-make-atuin-on-zfs-fast-again.patch" ];
});

View file

@ -3,6 +3,6 @@
services.vault = {
enable = true;
#adress = "chungus.private:8200";
package = pkgs.unstable.vault;
package = pkgs.vault;
};
}

View file

@ -34,12 +34,6 @@
#environment.variables.NIX_PATH = lib.mkForce "/var/src";
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
# how much configurations should be kept?
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 3;
boot.loader.generic-extlinux-compatible.configurationLimit = lib.mkDefault 3;
boot.loader.grub.configurationLimit = lib.mkDefault 3;
# Machines should be fast by default
# ----------------------------------
powerManagement.cpuFreqGovernor = lib.mkOverride 1001 "ondemand";